diff options
author | Antti Palosaari <crope@iki.fi> | 2017-06-14 02:42:52 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-06-20 16:25:40 +0300 |
commit | b2c952377593d0fe0bf1c8d27bd51678979ed34d (patch) | |
tree | 849422f2e275306d257dcf359c4d97355f93416d /drivers/media/dvb-frontends | |
parent | eaa455f023c3ac62f99dcb0aed1bd3986b61f71e (diff) | |
download | linux-b2c952377593d0fe0bf1c8d27bd51678979ed34d.tar.xz |
[media] af9013: remove unneeded register writes
Removed register writes are already chip defaults, are not required,
are set later or belong to AF9015 USB interface.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r-- | drivers/media/dvb-frontends/af9013.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/drivers/media/dvb-frontends/af9013.c b/drivers/media/dvb-frontends/af9013.c index 2b86688d73e0..5d61be45347a 100644 --- a/drivers/media/dvb-frontends/af9013.c +++ b/drivers/media/dvb-frontends/af9013.c @@ -895,11 +895,6 @@ static int af9013_init(struct dvb_frontend *fe) if (ret) goto err; - /* enable ADC */ - ret = regmap_write(state->regmap, 0xd73a, 0xa4); - if (ret) - goto err; - /* write API version to firmware */ ret = regmap_bulk_write(state->regmap, 0x9bf2, state->api_version, 4); if (ret) @@ -936,43 +931,6 @@ static int af9013_init(struct dvb_frontend *fe) if (ret) goto err; - /* set I2C master clock */ - ret = regmap_write(state->regmap, 0xd416, 0x14); - if (ret) - goto err; - - /* set 16 embx */ - ret = regmap_update_bits(state->regmap, 0xd700, 0x02, 0x02); - if (ret) - goto err; - - /* set no trigger */ - ret = regmap_update_bits(state->regmap, 0xd700, 0x04, 0x00); - if (ret) - goto err; - - /* set read-update bit for constellation */ - ret = regmap_update_bits(state->regmap, 0xd371, 0x02, 0x02); - if (ret) - goto err; - - /* settings for mp2if */ - if (state->ts_mode == AF9013_TS_MODE_USB) { - /* AF9015 split PSB to 1.5k + 0.5k */ - ret = regmap_update_bits(state->regmap, 0xd50b, 0x04, 0x04); - if (ret) - goto err; - } else { - /* AF9013 set mpeg to full speed */ - ret = regmap_update_bits(state->regmap, 0xd502, 0x10, 0x10); - if (ret) - goto err; - } - - ret = regmap_update_bits(state->regmap, 0xd520, 0x10, 0x10); - if (ret) - goto err; - /* load OFSM settings */ dev_dbg(&client->dev, "load ofsm settings\n"); len = ARRAY_SIZE(ofsm_init); |