Lines Matching +full:mclk +full:- +full:div
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * bsbe1.h - ALPS BSBE1 tuner support
13 0x02, 0x30, /* MCLK = 88 MHz */
57 struct dtv_frontend_properties *p = &fe->dtv_property_cache; in alps_bsbe1_tuner_set_params()
60 u32 div; in alps_bsbe1_tuner_set_params() local
62 struct i2c_adapter *i2c = fe->tuner_priv; in alps_bsbe1_tuner_set_params()
64 if ((p->frequency < 950000) || (p->frequency > 2150000)) in alps_bsbe1_tuner_set_params()
65 return -EINVAL; in alps_bsbe1_tuner_set_params()
67 div = p->frequency / 1000; in alps_bsbe1_tuner_set_params()
68 data[0] = (div >> 8) & 0x7f; in alps_bsbe1_tuner_set_params()
69 data[1] = div & 0xff; in alps_bsbe1_tuner_set_params()
70 data[2] = 0x80 | ((div & 0x18000) >> 10) | 0x1; in alps_bsbe1_tuner_set_params()
73 if (fe->ops.i2c_gate_ctrl) in alps_bsbe1_tuner_set_params()
74 fe->ops.i2c_gate_ctrl(fe, 1); in alps_bsbe1_tuner_set_params()
76 return (ret != 1) ? -EIO : 0; in alps_bsbe1_tuner_set_params()
82 .mclk = 88000000UL,