Lines Matching refs:atbm8830_write_reg
26 static int atbm8830_write_reg(struct atbm_state *priv, u16 reg, u8 data) in atbm8830_write_reg() function
85 return atbm8830_write_reg(priv, REG_READ_LATCH, lock ? 1 : 0); in atbm8830_reglatch_lock()
98 atbm8830_write_reg(priv, REG_OSC_CLK, val); in set_osc_freq()
99 atbm8830_write_reg(priv, REG_OSC_CLK + 1, val >> 8); in set_osc_freq()
100 atbm8830_write_reg(priv, REG_OSC_CLK + 2, val >> 16); in set_osc_freq()
121 atbm8830_write_reg(priv, REG_TUNER_BASEBAND, 1); in set_if_freq()
122 atbm8830_write_reg(priv, REG_IF_FREQ, val); in set_if_freq()
123 atbm8830_write_reg(priv, REG_IF_FREQ+1, val >> 8); in set_if_freq()
124 atbm8830_write_reg(priv, REG_IF_FREQ+2, val >> 16); in set_if_freq()
128 atbm8830_write_reg(priv, REG_ADC_CONFIG, dat); in set_if_freq()
131 atbm8830_write_reg(priv, REG_TUNER_BASEBAND, 0); in set_if_freq()
136 atbm8830_write_reg(priv, REG_ADC_CONFIG, dat); in set_if_freq()
139 atbm8830_write_reg(priv, REG_SWAP_I_Q, 0x03); in set_if_freq()
141 atbm8830_write_reg(priv, REG_SWAP_I_Q, 0x01); in set_if_freq()
165 atbm8830_write_reg(priv, REG_AGC_MIN, min); in set_agc_config()
166 atbm8830_write_reg(priv, REG_AGC_MAX, max); in set_agc_config()
167 atbm8830_write_reg(priv, REG_AGC_HOLD_LOOP, hold_loop); in set_agc_config()
177 atbm8830_write_reg(priv, 0x099B + i, 0x08); in set_static_channel_mode()
179 atbm8830_write_reg(priv, 0x095B, 0x7F); in set_static_channel_mode()
180 atbm8830_write_reg(priv, 0x09CB, 0x01); in set_static_channel_mode()
181 atbm8830_write_reg(priv, 0x09CC, 0x7F); in set_static_channel_mode()
182 atbm8830_write_reg(priv, 0x09CD, 0x7F); in set_static_channel_mode()
183 atbm8830_write_reg(priv, 0x0E01, 0x20); in set_static_channel_mode()
186 atbm8830_write_reg(priv, 0x0B03, 0x0A); in set_static_channel_mode()
187 atbm8830_write_reg(priv, 0x0935, 0x10); in set_static_channel_mode()
188 atbm8830_write_reg(priv, 0x0936, 0x08); in set_static_channel_mode()
189 atbm8830_write_reg(priv, 0x093E, 0x08); in set_static_channel_mode()
190 atbm8830_write_reg(priv, 0x096E, 0x06); in set_static_channel_mode()
193 atbm8830_write_reg(priv, 0x0B09, 0x00); in set_static_channel_mode()
195 atbm8830_write_reg(priv, 0x0B0A, 0x08); in set_static_channel_mode()
205 atbm8830_write_reg(priv, REG_TS_SERIAL, cfg->serial_ts ? 1 : 0); in set_ts_config()
206 atbm8830_write_reg(priv, REG_TS_CLK_MODE, cfg->serial_ts ? 1 : 0); in set_ts_config()
208 atbm8830_write_reg(priv, REG_TS_SAMPLE_EDGE, in set_ts_config()
211 atbm8830_write_reg(priv, REG_TS_CLK_FREERUN, in set_ts_config()
237 atbm8830_write_reg(priv, 0x000A, 0); in atbm8830_init()
240 atbm8830_write_reg(priv, 0x020C, 11); in atbm8830_init()
243 atbm8830_write_reg(priv, REG_DEMOD_RUN, 1); in atbm8830_init()
415 return atbm8830_write_reg(priv, REG_I2C_GATE, enable ? 1 : 0); in atbm8830_i2c_gate_ctrl()