Home
last modified time | relevance | path

Searched refs:analog_write_reg8 (Results 1 – 19 of 19) sorted by relevance

/hal_telink-3.7.0/tlsr9/drivers/B91/
Dsys.c57 analog_write_reg8(0x8c,0x02); //<1>:reg_xo_en_clk_ana_ana=1 in sys_init()
64 analog_write_reg8(0x0c, 0x40); //poweron_dft: 0x44 --> 0x40. in sys_init()
67 analog_write_reg8(0x0a, power_mode);//poweron_dft: 0x90. in sys_init()
74 analog_write_reg8(0x0b, 0x3b); //poweron_dft: 0x7b -> 0x3b. in sys_init()
76 analog_write_reg8(0x05,analog_read_reg8(0x05) & (~BIT(3)));//poweron_dft: 0x02 -> 0x02. in sys_init()
78analog_write_reg8(0x06,analog_read_reg8(0x06) & ~(BIT(0) | vbat_v | BIT(6) | BIT(7)));//poweron_df… in sys_init()
83 analog_write_reg8(0x01, 0x45); //poweron_dft: 0x44 -> 0x45. in sys_init()
120analog_write_reg8(PM_ANA_REG_POWER_ON_CLR_BUF0, analog_read_reg8(PM_ANA_REG_POWER_ON_CLR_BUF0) | B… in sys_init()
129 analog_write_reg8(0x7d, 0x80); //power on baseband in sys_init()
133 analog_write_reg8(0x7d, 0x80); //poweron_dft: 0x03 -> 0x80. in sys_init()
Dlpc.c39 analog_write_reg8(0x0b,analog_read_reg8(0x0b)|0x08); in lpc_set_input_ref()
40 analog_write_reg8(0x0d,analog_read_reg8(0x0d)|0x80); in lpc_set_input_ref()
44 analog_write_reg8(0x0b,analog_read_reg8(0x0b)&0xf7); in lpc_set_input_ref()
45 analog_write_reg8(0x0d,analog_read_reg8(0x0d)&0x7f); in lpc_set_input_ref()
47 analog_write_reg8(0x0d,(analog_read_reg8(0x0d)&0x8f)|(ref<<4)); in lpc_set_input_ref()
Dclock.c80 analog_write_reg8(0x4e, sel_32k|(src<<7)); in clock_32k_init()
83 analog_write_reg8(0x05, power_32k|0x1);//32k xtal in clock_32k_init()
87 analog_write_reg8(0x05, power_32k|0x2);//32k rc in clock_32k_init()
133 analog_write_reg8(0x03,0x4f); //<7:6>current select in clock_kick_32k_xtal()
166 analog_write_reg8(0xc8, 0x80); in clock_cal_24m_rc()
169 analog_write_reg8(0x4f, analog_read_reg8(0x4f) | BIT(7) ); in clock_cal_24m_rc()
171 analog_write_reg8(0xc7, 0x0e); in clock_cal_24m_rc()
172 analog_write_reg8(0xc7, 0x0f); in clock_cal_24m_rc()
175 analog_write_reg8(0x52, cap); //write 24m cap into manual register in clock_cal_24m_rc()
177 analog_write_reg8(0x4f, analog_read_reg8(0x4f) & (~BIT(7)) ); in clock_cal_24m_rc()
[all …]
Dpm.c165 analog_write_reg8 (areg, val); in pm_set_gpio_wakeup()
176 analog_write_reg8 (areg, val); in pm_set_gpio_wakeup()
186 analog_write_reg8(0x81, ana_81 | BIT(6)); in pm_wait_bbpll_done()
194 analog_write_reg8(0x81, ana_81 & 0xbf); in pm_wait_bbpll_done()
200 analog_write_reg8(0x01, 0x46); in pm_wait_bbpll_done()
203 analog_write_reg8(0x01, 0x43); in pm_wait_bbpll_done()
206 analog_write_reg8(0x81, ana_81 & 0xbf); in pm_wait_bbpll_done()
224 analog_write_reg8(PM_ANA_REG_WD_CLR_BUF0, analog_38 & 0xfe); in pm_update_status_info()
227 analog_write_reg8(PM_ANA_REG_WD_CLR_BUF0,analog_38 & 0xfe); in pm_update_status_info()
228 analog_write_reg8(PM_ANA_REG_POWER_ON_CLR_BUF0, analog_39 | BIT(0)); in pm_update_status_info()
[all …]
Dadc.h160analog_write_reg8 (areg_adc_pga_ctrl, (analog_read_reg8(areg_adc_pga_ctrl)&(~FLD_SAR_ADC_POWER_DOW… in adc_power_on()
168analog_write_reg8 (areg_adc_pga_ctrl, (analog_read_reg8(areg_adc_pga_ctrl)|FLD_SAR_ADC_POWER_DOWN)… in adc_power_off()
201analog_write_reg8(areg_adc_clk_setting , analog_read_reg8(areg_adc_clk_setting ) | FLD_CLK_24M_TO_… in adc_clk_en()
209analog_write_reg8(areg_adc_clk_setting , analog_read_reg8(areg_adc_clk_setting ) & (~FLD_CLK_24M_T… in adc_clk_dis()
218 analog_write_reg8(areg_adc_sample_clk_div, div); in adc_set_clk()
226 analog_write_reg8(areg_adc_chn_en, FLD_ADC_CHN_EN_M | (ADC_MAX_STATE_NUM<<4) ); in adc_set_m_chn_en()
235 analog_write_reg8(areg_adc_res_m, (analog_read_reg8(areg_adc_res_m)&(~FLD_ADC_RES_M)) | res); in adc_set_resolution()
246 analog_write_reg8(areg_adc_tsmaple_m, sample_cycle); //optimize, <7:4> not cared in adc_set_tsample_cycle()
254analog_write_reg8(areg_temp_sensor_ctrl, (analog_read_reg8(areg_temp_sensor_ctrl)&(~FLD_TEMP_SENSO… in adc_temp_sensor_power_on()
262analog_write_reg8(areg_temp_sensor_ctrl, (analog_read_reg8(areg_temp_sensor_ctrl)|FLD_TEMP_SENSOR_… in adc_temp_sensor_power_off()
[all …]
Dlpc.h80 analog_write_reg8(0x07,(analog_read_reg8(0x07))|0x08); in lpc_power_down()
89 analog_write_reg8(0x06,analog_read_reg8(0x06) & 0xfd); in lpc_power_on()
99 analog_write_reg8(0x0d,(analog_read_reg8(0x0d) & 0xf8) | pin); in lpc_set_input_chn()
109 analog_write_reg8(0x0b,(analog_read_reg8(0x0b)&0xcf)|(divider<<4)); in lpc_set_scaling_coeff()
Dmdec.h39 analog_write_reg8(mdec_rst_addr,analog_read_reg8(mdec_rst_addr) | FLD_MDEC_RST); in mdec_reset()
40 analog_write_reg8(mdec_rst_addr,analog_read_reg8(mdec_rst_addr) & (~FLD_MDEC_RST)); in mdec_reset()
62 analog_write_reg8(reg_wakeup_status, (analog_read_reg8(reg_wakeup_status) | status)); in mdec_clr_irq_status()
Dgpio.c80 analog_write_reg8(areg_gpio_pc_ie, analog_read_reg8(areg_gpio_pc_ie)|bit); in gpio_input_en()
85 analog_write_reg8(areg_gpio_pd_ie, analog_read_reg8(areg_gpio_pd_ie)|bit); in gpio_input_en()
106 analog_write_reg8(areg_gpio_pc_ie, analog_read_reg8(areg_gpio_pc_ie)&(~bit)); in gpio_input_dis()
111 analog_write_reg8(areg_gpio_pd_ie, analog_read_reg8(areg_gpio_pd_ie)&(~bit)); in gpio_input_dis()
143 {analog_write_reg8(areg_gpio_pc_ds, analog_read_reg8(areg_gpio_pc_ds)|bit);} in gpio_ds_en()
145 {analog_write_reg8(areg_gpio_pd_ds, analog_read_reg8(areg_gpio_pd_ds)|bit);} in gpio_ds_en()
161 {analog_write_reg8(areg_gpio_pc_ds, analog_read_reg8(areg_gpio_pc_ds)&(~bit));} in gpio_ds_dis()
163 {analog_write_reg8(areg_gpio_pd_ds, analog_read_reg8(areg_gpio_pd_ds)&(~bit));} in gpio_ds_dis()
193 analog_write_reg8(areg_gpio_pc_ie, analog_read_reg8(areg_gpio_pc_ie) & (~bit)); in gpio_shutdown()
198 analog_write_reg8(areg_gpio_pd_ie, analog_read_reg8(areg_gpio_pd_ie) & (~bit)); in gpio_shutdown()
[all …]
Dadc.c150 analog_write_reg8(areg_adc_vref, v_ref); in adc_set_ref_voltage()
155 analog_write_reg8(areg_ain_scale , (analog_read_reg8( areg_ain_scale )&(0xC0)) | 0x3d ); in adc_set_ref_voltage()
162 analog_write_reg8( areg_ain_scale , (analog_read_reg8( areg_ain_scale )&(0xC0)) | 0x15 ); in adc_set_ref_voltage()
200analog_write_reg8( areg_ain_scale , (analog_read_reg8( areg_ain_scale )&(~FLD_SEL_AIN_SCALE)) | … in adc_set_scale_factor()
210analog_write_reg8(areg_adc_vref_vbat_div, (analog_read_reg8(areg_adc_vref_vbat_div)&(~FLD_ADC_VREF… in adc_set_vbat_divider()
337analog_write_reg8(areg_adc_data_sample_control,analog_read_reg8(areg_adc_data_sample_control) | FL… in adc_get_code()
339analog_write_reg8(areg_adc_data_sample_control,analog_read_reg8(areg_adc_data_sample_control) & (~… in adc_get_code()
Dgpio_default.h875 analog_write_reg8 (0x0e, PULL_WAKEUP_SRC_PA0 | in gpio_analog_resistance_init()
880 analog_write_reg8 (0x0f, PULL_WAKEUP_SRC_PA4 | in gpio_analog_resistance_init()
885 analog_write_reg8 (0x10, PULL_WAKEUP_SRC_PB0 | in gpio_analog_resistance_init()
890 analog_write_reg8 (0x11, PULL_WAKEUP_SRC_PB4 | in gpio_analog_resistance_init()
896 analog_write_reg8 (0x12, PULL_WAKEUP_SRC_PC0 | in gpio_analog_resistance_init()
901 analog_write_reg8 (0x13, PULL_WAKEUP_SRC_PC4 | in gpio_analog_resistance_init()
907 analog_write_reg8 (0x14, PULL_WAKEUP_SRC_PD0 | in gpio_analog_resistance_init()
912 analog_write_reg8 (0x15, PULL_WAKEUP_SRC_PD4 | in gpio_analog_resistance_init()
917 analog_write_reg8 (0x16, PULL_WAKEUP_SRC_PE0 | in gpio_analog_resistance_init()
922 analog_write_reg8 (0x17, PULL_WAKEUP_SRC_PE4 | in gpio_analog_resistance_init()
[all …]
Dusbhw.h395 analog_write_reg8 (0x0b, dat); in usb_dp_pullup_en()
407 analog_write_reg8(0x7d,analog_read_reg8(0x7d)&0xfd); in usb_power_on()
411 analog_write_reg8(0x7d,analog_read_reg8(0x7d)|0x02); in usb_power_on()
Dmdec.c41analog_write_reg8(mdec_rst_addr,(analog_read_reg8(mdec_rst_addr) & (~FLD_CLS_MDEC)) | pin);//A0/B7… in mdec_init()
Danalog.h77 _attribute_ram_code_sec_noinline_ void analog_write_reg8(unsigned char addr, unsigned char data);
Daudio.c308 analog_write_reg8(0x0c, analog_read_reg8(0x0c) & 0xf8); in audio_set_codec_supply()
309 analog_write_reg8(0x02,analog_read_reg8(0x02)|BIT(7)); in audio_set_codec_supply()
315 analog_write_reg8(0x0c, (analog_read_reg8(0x0c) & 0xf8) | 0x04); in audio_set_codec_supply()
316 analog_write_reg8(0x02,analog_read_reg8(0x02)&(~BIT(7))); in audio_set_codec_supply()
326 analog_write_reg8(0x0c, (analog_read_reg8(0x0c) & 0xf8) | 0x04); in audio_set_codec_supply()
327 analog_write_reg8(0x02,analog_read_reg8(0x02)|BIT(7)); in audio_set_codec_supply()
333 analog_write_reg8(0x0c, analog_read_reg8(0x0c) & 0xf8); in audio_set_codec_supply()
334 analog_write_reg8(0x02,analog_read_reg8(0x02)&(~BIT(7))); in audio_set_codec_supply()
Dpm.h212 analog_write_reg8(mdec_ctrl,((analog_read_reg8(mdec_ctrl) & (~0x0f)) | value)); in pm_set_mdec_value_wakeup()
Danalog.c126 void analog_write_reg8(unsigned char addr, unsigned char data){ in analog_write_reg8() function
Drf.c105 analog_write_reg8(0x8b,0x04);//FREQ_CORR_CFG2_1 in rf_mode_init()
/hal_telink-3.7.0/tlsr9/drivers/B91/ext_driver/
Dext_gpio.c58analog_write_reg8(base_ana_reg, (analog_read_reg8(base_ana_reg) & mask_not) | (r_val << shift_num)… in gpio_setup_up_down_resistor()
Dext_misc.h143 #define analog_write analog_write_reg8