| /OK3568_Linux_fs/kernel/drivers/pwm/ |
| H A D | pwm-renesas-tpu.c | 72 struct tpu_device *tpu; member 94 void __iomem *base = pwm->tpu->base + TPU_CHANNEL_OFFSET in tpu_pwm_write() 105 dev_dbg(&pwm->tpu->pdev->dev, "%u: configuring pin as %s\n", in tpu_pwm_set_pin() 132 spin_lock_irqsave(&pwm->tpu->lock, flags); in tpu_pwm_start_stop() 133 value = ioread16(pwm->tpu->base + TPU_TSTR); in tpu_pwm_start_stop() 140 iowrite16(value, pwm->tpu->base + TPU_TSTR); in tpu_pwm_start_stop() 141 spin_unlock_irqrestore(&pwm->tpu->lock, flags); in tpu_pwm_start_stop() 150 pm_runtime_get_sync(&pwm->tpu->pdev->dev); in tpu_pwm_timer_start() 151 ret = clk_prepare_enable(pwm->tpu->clk); in tpu_pwm_timer_start() 153 dev_err(&pwm->tpu->pdev->dev, "cannot enable clock\n"); in tpu_pwm_timer_start() [all …]
|
| H A D | Makefile | 40 obj-$(CONFIG_PWM_RENESAS_TPU) += pwm-renesas-tpu.o
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/rf/halrf_8852b/ |
| H A D | halrf_set_pwr_table_8852b.c | 65 struct rtw_tpu_info *tpu = &rf->hal_com->band[phy].rtw_tpu_i; in halrf_set_power_by_rate_to_struct_8852b() local 66 struct rtw_tpu_pwr_by_rate_info *rate = &tpu->rtw_tpu_pwr_by_rate_i; in halrf_set_power_by_rate_to_struct_8852b() 132 …tpu->pwr_ofst_mode[0] = halrf_get_power_by_rate(rf, phy, RF_PATH_A, RTW_DATA_RATE_HE_NSS1_MCS11, 0… in halrf_set_power_by_rate_to_struct_8852b() 133 …tpu->pwr_ofst_mode[1] = halrf_get_power_by_rate(rf, phy, RF_PATH_A, RTW_DATA_RATE_VHT_NSS1_MCS9, 0… in halrf_set_power_by_rate_to_struct_8852b() 134 tpu->pwr_ofst_mode[2] = halrf_get_power_by_rate(rf, phy, RF_PATH_A, RTW_DATA_RATE_MCS7, 0, 1) / 2; in halrf_set_power_by_rate_to_struct_8852b() 135 …tpu->pwr_ofst_mode[3] = halrf_get_power_by_rate(rf, phy, RF_PATH_A, RTW_DATA_RATE_OFDM54, 0, 1) / … in halrf_set_power_by_rate_to_struct_8852b() 136 tpu->pwr_ofst_mode[4] = halrf_get_power_by_rate(rf, phy, RF_PATH_A, RTW_DATA_RATE_CCK11, 0, 1) / 2; in halrf_set_power_by_rate_to_struct_8852b() 154 tpu->pwr_ofst_mode[4], in halrf_set_power_by_rate_to_struct_8852b() 155 tpu->pwr_ofst_mode[3], in halrf_set_power_by_rate_to_struct_8852b() 156 tpu->pwr_ofst_mode[2], in halrf_set_power_by_rate_to_struct_8852b() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/rf/halrf_8852b/ |
| H A D | halrf_set_pwr_table_8852b.c | 65 struct rtw_tpu_info *tpu = &rf->hal_com->band[phy].rtw_tpu_i; in halrf_set_power_by_rate_to_struct_8852b() local 66 struct rtw_tpu_pwr_by_rate_info *rate = &tpu->rtw_tpu_pwr_by_rate_i; in halrf_set_power_by_rate_to_struct_8852b() 132 …tpu->pwr_ofst_mode[0] = halrf_get_power_by_rate(rf, phy, RF_PATH_A, RTW_DATA_RATE_HE_NSS1_MCS11, 0… in halrf_set_power_by_rate_to_struct_8852b() 133 …tpu->pwr_ofst_mode[1] = halrf_get_power_by_rate(rf, phy, RF_PATH_A, RTW_DATA_RATE_VHT_NSS1_MCS9, 0… in halrf_set_power_by_rate_to_struct_8852b() 134 tpu->pwr_ofst_mode[2] = halrf_get_power_by_rate(rf, phy, RF_PATH_A, RTW_DATA_RATE_MCS7, 0, 1) / 2; in halrf_set_power_by_rate_to_struct_8852b() 135 …tpu->pwr_ofst_mode[3] = halrf_get_power_by_rate(rf, phy, RF_PATH_A, RTW_DATA_RATE_OFDM54, 0, 1) / … in halrf_set_power_by_rate_to_struct_8852b() 136 tpu->pwr_ofst_mode[4] = halrf_get_power_by_rate(rf, phy, RF_PATH_A, RTW_DATA_RATE_CCK11, 0, 1) / 2; in halrf_set_power_by_rate_to_struct_8852b() 154 tpu->pwr_ofst_mode[4], in halrf_set_power_by_rate_to_struct_8852b() 155 tpu->pwr_ofst_mode[3], in halrf_set_power_by_rate_to_struct_8852b() 156 tpu->pwr_ofst_mode[2], in halrf_set_power_by_rate_to_struct_8852b() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/bb/ |
| H A D | halbb_pwr_ctrl.c | 556 struct rtw_tpu_info *tpu = &bb->hal_com->band[bb->bb_phy_idx].rtw_tpu_i; in halbb_pwr_dbg() 557 struct rtw_tpu_pwr_by_rate_info *by_rate = &tpu->rtw_tpu_pwr_by_rate_i; in halbb_pwr_dbg() 558 struct rtw_tpu_pwr_imt_info *lmt = &tpu->rtw_tpu_pwr_imt_i; in halbb_pwr_dbg() 613 "dbg_en=%d, Locking driver set TPU = %d\n", val[0], tpu->normal_mode_lock_en); in halbb_pwr_dbg() 620 "%-10s {%d}\n", "[base_cw_0db]", tpu->base_cw_0db); in halbb_pwr_dbg() 624 halbb_print_sign_frac_digit2(bb, tpu->ofst_int, 8, 3)); in halbb_pwr_dbg() 628 halbb_print_sign_frac_digit2(bb, tpu->ref_pow_cck, 16, 2), in halbb_pwr_dbg() 629 tpu->ref_pow_cck_cw); in halbb_pwr_dbg() 633 halbb_print_sign_frac_digit2(bb, tpu->ref_pow_ofdm, 16, 2), in halbb_pwr_dbg() 634 tpu->ref_pow_ofdm_cw); in halbb_pwr_dbg() [all …]
|
| H A D | halbb_ul_tb_ctrl.c | 32 struct rtw_tpu_info *tpu = &bb->hal_com->band[bb->bb_phy_idx].rtw_tpu_i; in halbb_ul_tb_reset() local 38 tpu->tx_ptrn_shap_idx = bb_ul_tb->def_tri_idx; in halbb_ul_tb_reset() 47 struct rtw_tpu_info *tpu = &bb->hal_com->band[bb->bb_phy_idx].rtw_tpu_i; in halbb_ul_tb_chk() local 52 bb_ul_tb->def_tri_idx = tpu->tx_ptrn_shap_idx; in halbb_ul_tb_chk() 72 struct rtw_tpu_info *tpu = &bb->hal_com->band[bb->bb_phy_idx].rtw_tpu_i; in halbb_ul_tb_ctrl() local 133 tpu->tx_ptrn_shap_idx = 0; in halbb_ul_tb_ctrl() 136 tpu->tx_ptrn_shap_idx = bb_ul_tb->def_tri_idx; in halbb_ul_tb_ctrl() 137 BB_DBG(bb, DBG_UL_TB_CTRL, "Default tx_ptrn_shap_idx = %d\n", tpu->tx_ptrn_shap_idx); in halbb_ul_tb_ctrl()
|
| H A D | halbb_api.c | 1734 struct rtw_tpu_info *tpu = &bb->hal_com->band[phy_idx].rtw_tpu_i; in halbb_set_tx_pow_pattern_shap() local 1735 u8 shape_idx = tpu->tx_ptrn_shap_idx; in halbb_set_tx_pow_pattern_shap() 1771 struct rtw_tpu_info *tpu = &bb->hal_com->band[phy_idx].rtw_tpu_i; in halbb_set_tx_pow_ref() local 1780 halbb_set_tx_pow_ref_8852a_2(bb, tpu->ref_pow_ofdm, in halbb_set_tx_pow_ref() 1781 tpu->ref_pow_cck, in halbb_set_tx_pow_ref() 1782 tpu->ofst_int, in halbb_set_tx_pow_ref() 1783 tpu->base_cw_0db, in halbb_set_tx_pow_ref() 1784 tpu->tssi_16dBm_cw, in halbb_set_tx_pow_ref() 1785 &tpu->ref_pow_ofdm_cw, in halbb_set_tx_pow_ref() 1786 &tpu->ref_pow_cck_cw, in halbb_set_tx_pow_ref() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/bb/ |
| H A D | halbb_pwr_ctrl.c | 556 struct rtw_tpu_info *tpu = &bb->hal_com->band[bb->bb_phy_idx].rtw_tpu_i; in halbb_pwr_dbg() 557 struct rtw_tpu_pwr_by_rate_info *by_rate = &tpu->rtw_tpu_pwr_by_rate_i; in halbb_pwr_dbg() 558 struct rtw_tpu_pwr_imt_info *lmt = &tpu->rtw_tpu_pwr_imt_i; in halbb_pwr_dbg() 613 "dbg_en=%d, Locking driver set TPU = %d\n", val[0], tpu->normal_mode_lock_en); in halbb_pwr_dbg() 620 "%-10s {%d}\n", "[base_cw_0db]", tpu->base_cw_0db); in halbb_pwr_dbg() 624 halbb_print_sign_frac_digit2(bb, tpu->ofst_int, 8, 3)); in halbb_pwr_dbg() 628 halbb_print_sign_frac_digit2(bb, tpu->ref_pow_cck, 16, 2), in halbb_pwr_dbg() 629 tpu->ref_pow_cck_cw); in halbb_pwr_dbg() 633 halbb_print_sign_frac_digit2(bb, tpu->ref_pow_ofdm, 16, 2), in halbb_pwr_dbg() 634 tpu->ref_pow_ofdm_cw); in halbb_pwr_dbg() [all …]
|
| H A D | halbb_ul_tb_ctrl.c | 32 struct rtw_tpu_info *tpu = &bb->hal_com->band[bb->bb_phy_idx].rtw_tpu_i; in halbb_ul_tb_reset() local 38 tpu->tx_ptrn_shap_idx = bb_ul_tb->def_tri_idx; in halbb_ul_tb_reset() 47 struct rtw_tpu_info *tpu = &bb->hal_com->band[bb->bb_phy_idx].rtw_tpu_i; in halbb_ul_tb_chk() local 52 bb_ul_tb->def_tri_idx = tpu->tx_ptrn_shap_idx; in halbb_ul_tb_chk() 72 struct rtw_tpu_info *tpu = &bb->hal_com->band[bb->bb_phy_idx].rtw_tpu_i; in halbb_ul_tb_ctrl() local 133 tpu->tx_ptrn_shap_idx = 0; in halbb_ul_tb_ctrl() 136 tpu->tx_ptrn_shap_idx = bb_ul_tb->def_tri_idx; in halbb_ul_tb_ctrl() 137 BB_DBG(bb, DBG_UL_TB_CTRL, "Default tx_ptrn_shap_idx = %d\n", tpu->tx_ptrn_shap_idx); in halbb_ul_tb_ctrl()
|
| H A D | halbb_api.c | 1734 struct rtw_tpu_info *tpu = &bb->hal_com->band[phy_idx].rtw_tpu_i; in halbb_set_tx_pow_pattern_shap() local 1735 u8 shape_idx = tpu->tx_ptrn_shap_idx; in halbb_set_tx_pow_pattern_shap() 1771 struct rtw_tpu_info *tpu = &bb->hal_com->band[phy_idx].rtw_tpu_i; in halbb_set_tx_pow_ref() local 1780 halbb_set_tx_pow_ref_8852a_2(bb, tpu->ref_pow_ofdm, in halbb_set_tx_pow_ref() 1781 tpu->ref_pow_cck, in halbb_set_tx_pow_ref() 1782 tpu->ofst_int, in halbb_set_tx_pow_ref() 1783 tpu->base_cw_0db, in halbb_set_tx_pow_ref() 1784 tpu->tssi_16dBm_cw, in halbb_set_tx_pow_ref() 1785 &tpu->ref_pow_ofdm_cw, in halbb_set_tx_pow_ref() 1786 &tpu->ref_pow_cck_cw, in halbb_set_tx_pow_ref() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/mac/mac_ax/ |
| H A D | hw.c | 2010 u8 band, struct rtw_tpu_info *tpu) in mac_write_pwr_ofst_mode() argument 2017 s8 *tmp = &tpu->pwr_ofst_mode[0]; in mac_write_pwr_ofst_mode() 2030 s8 *tmp = &tpu->pwr_ofst_mode[0]; in mac_write_pwr_ofst_mode() 2041 u8 band, struct rtw_tpu_info *tpu) in mac_write_pwr_ofst_bw() argument 2048 s8 *tmp = &tpu->pwr_ofst_bw[0]; in mac_write_pwr_ofst_bw() 2061 s8 *tmp = &tpu->pwr_ofst_bw[0]; in mac_write_pwr_ofst_bw() 2072 u8 band, struct rtw_tpu_info *tpu) in mac_write_pwr_ref_reg() argument 2080 val32 |= (((tpu->ref_pow_ofdm & 0x1ff) << 9) | in mac_write_pwr_ref_reg() 2081 ((tpu->ref_pow_cck & 0x1ff))); in mac_write_pwr_ref_reg() 2094 val32 |= (((tpu->ref_pow_ofdm & 0x1ff) << 19) | in mac_write_pwr_ref_reg() [all …]
|
| H A D | hw.h | 606 u8 band, struct rtw_tpu_info *tpu); 629 u8 band, struct rtw_tpu_info *tpu); 652 u8 band, struct rtw_tpu_info *tpu); 675 u8 band, struct rtw_tpu_info *tpu); 698 u8 band, struct rtw_tpu_info *tpu); 721 u8 band, struct rtw_tpu_pwr_imt_info *tpu); 744 u8 band, struct rtw_tpu_pwr_by_rate_info *tpu);
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/mac/mac_ax/ |
| H A D | hw.c | 2010 u8 band, struct rtw_tpu_info *tpu) in mac_write_pwr_ofst_mode() argument 2017 s8 *tmp = &tpu->pwr_ofst_mode[0]; in mac_write_pwr_ofst_mode() 2030 s8 *tmp = &tpu->pwr_ofst_mode[0]; in mac_write_pwr_ofst_mode() 2041 u8 band, struct rtw_tpu_info *tpu) in mac_write_pwr_ofst_bw() argument 2048 s8 *tmp = &tpu->pwr_ofst_bw[0]; in mac_write_pwr_ofst_bw() 2061 s8 *tmp = &tpu->pwr_ofst_bw[0]; in mac_write_pwr_ofst_bw() 2072 u8 band, struct rtw_tpu_info *tpu) in mac_write_pwr_ref_reg() argument 2080 val32 |= (((tpu->ref_pow_ofdm & 0x1ff) << 9) | in mac_write_pwr_ref_reg() 2081 ((tpu->ref_pow_cck & 0x1ff))); in mac_write_pwr_ref_reg() 2094 val32 |= (((tpu->ref_pow_ofdm & 0x1ff) << 19) | in mac_write_pwr_ref_reg() [all …]
|
| H A D | hw.h | 606 u8 band, struct rtw_tpu_info *tpu); 629 u8 band, struct rtw_tpu_info *tpu); 652 u8 band, struct rtw_tpu_info *tpu); 675 u8 band, struct rtw_tpu_info *tpu); 698 u8 band, struct rtw_tpu_info *tpu); 721 u8 band, struct rtw_tpu_pwr_imt_info *tpu); 744 u8 band, struct rtw_tpu_pwr_by_rate_info *tpu);
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/timer/ |
| H A D | renesas,tpu.txt | 9 - compatible: must contain "renesas,tpu" 16 tpu: tpu@ffffe0 { 17 compatible = "renesas,tpu";
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/ |
| H A D | renesas,sysc-rmobile.txt | 94 tpu: pwm@e6600000 { 95 compatible = "renesas,tpu-r8a7740", "renesas,tpu";
|
| /OK3568_Linux_fs/kernel/arch/h8300/boot/dts/ |
| H A D | h8s_sim.dts | 71 tpu: timer@ffffe0 { label 72 compatible = "renesas,tpu";
|
| H A D | edosk2674.dts | 72 tpu: timer@ffffe0 { label 73 compatible = "renesas,tpu";
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | r8a7745-iwg22d-sodimm.dts | 58 pwms = <&tpu 3 5000000 PWM_POLARITY_INVERTED>; 231 function = "tpu"; 319 &tpu {
|
| H A D | r8a7740-armadillo800eva.dts | 137 pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>; 274 &tpu {
|
| /OK3568_Linux_fs/kernel/drivers/staging/gasket/ |
| H A D | Kconfig | 19 https://cloud.google.com/edge-tpu/ for more information.
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/ |
| H A D | hal_api_mac.c | 7522 struct rtw_tpu_info *tpu = &hal_com->band[band].rtw_tpu_i; in rtw_hal_mac_write_pwr_ofst_mode() local 7524 if (tpu->normal_mode_lock_en) in rtw_hal_mac_write_pwr_ofst_mode() 7527 mac->ops->write_pwr_ofst_mode(mac, band, tpu); in rtw_hal_mac_write_pwr_ofst_mode() 7537 struct rtw_tpu_info *tpu = &hal_com->band[band].rtw_tpu_i; in rtw_hal_mac_write_pwr_ofst_bw() local 7539 if (tpu->normal_mode_lock_en) in rtw_hal_mac_write_pwr_ofst_bw() 7542 mac->ops->write_pwr_ofst_bw(mac, band, tpu); in rtw_hal_mac_write_pwr_ofst_bw() 7552 struct rtw_tpu_info *tpu = &hal_com->band[band].rtw_tpu_i; in rtw_hal_mac_write_pwr_ref_reg() local 7554 if (tpu->normal_mode_lock_en) in rtw_hal_mac_write_pwr_ref_reg() 7557 mac->ops->write_pwr_ref_reg(mac, band, tpu); in rtw_hal_mac_write_pwr_ref_reg() 7567 struct rtw_tpu_info *tpu = &hal_com->band[band].rtw_tpu_i; in rtw_hal_mac_write_pwr_limit_en() local [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/ |
| H A D | hal_api_mac.c | 7538 struct rtw_tpu_info *tpu = &hal_com->band[band].rtw_tpu_i; in rtw_hal_mac_write_pwr_ofst_mode() local 7540 if (tpu->normal_mode_lock_en) in rtw_hal_mac_write_pwr_ofst_mode() 7543 mac->ops->write_pwr_ofst_mode(mac, band, tpu); in rtw_hal_mac_write_pwr_ofst_mode() 7553 struct rtw_tpu_info *tpu = &hal_com->band[band].rtw_tpu_i; in rtw_hal_mac_write_pwr_ofst_bw() local 7555 if (tpu->normal_mode_lock_en) in rtw_hal_mac_write_pwr_ofst_bw() 7558 mac->ops->write_pwr_ofst_bw(mac, band, tpu); in rtw_hal_mac_write_pwr_ofst_bw() 7568 struct rtw_tpu_info *tpu = &hal_com->band[band].rtw_tpu_i; in rtw_hal_mac_write_pwr_ref_reg() local 7570 if (tpu->normal_mode_lock_en) in rtw_hal_mac_write_pwr_ref_reg() 7573 mac->ops->write_pwr_ref_reg(mac, band, tpu); in rtw_hal_mac_write_pwr_ref_reg() 7583 struct rtw_tpu_info *tpu = &hal_com->band[band].rtw_tpu_i; in rtw_hal_mac_write_pwr_limit_en() local [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/rf/ |
| H A D | halrf_pwr_table.c | 1158 struct rtw_tpu_info *tpu = &rf->hal_com->band[phy_idx].rtw_tpu_i; in halrf_get_efuse_power_table_switch() local 1175 tpu->pwr_lmt_en = false; in halrf_get_efuse_power_table_switch() 1177 tpu->pwr_lmt_en = true; in halrf_get_efuse_power_table_switch() 1180 tpu->pwr_lmt_en = false; in halrf_get_efuse_power_table_switch() 1182 tpu->pwr_lmt_en = false; in halrf_get_efuse_power_table_switch() 1184 tpu->pwr_lmt_en = true; in halrf_get_efuse_power_table_switch()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/rf/ |
| H A D | halrf_pwr_table.c | 1158 struct rtw_tpu_info *tpu = &rf->hal_com->band[phy_idx].rtw_tpu_i; in halrf_get_efuse_power_table_switch() local 1175 tpu->pwr_lmt_en = false; in halrf_get_efuse_power_table_switch() 1177 tpu->pwr_lmt_en = true; in halrf_get_efuse_power_table_switch() 1180 tpu->pwr_lmt_en = false; in halrf_get_efuse_power_table_switch() 1182 tpu->pwr_lmt_en = false; in halrf_get_efuse_power_table_switch() 1184 tpu->pwr_lmt_en = true; in halrf_get_efuse_power_table_switch()
|