diff options
author | Antti Palosaari <crope@iki.fi> | 2016-12-09 15:11:09 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-02-03 06:55:46 -0200 |
commit | e11415c811047189a132c61c4c838ed7fd8431c8 (patch) | |
tree | 062d6b6e594302ca1e74908c281316d9703d0c44 /drivers/media/tuners/mt2060_priv.h | |
parent | d4c554c374f3b7dd1d4e2560c303f050b318420b (diff) | |
download | op-kernel-dev-e11415c811047189a132c61c4c838ed7fd8431c8.zip op-kernel-dev-e11415c811047189a132c61c4c838ed7fd8431c8.tar.gz |
[media] mt2060: implement sleep
I saw from ZyDAS ZD1301 sniffs it sets chip sleeping by using
REG_MISC_CTRL. That has very huge effect for power management, around
0.9W. Sleep is still disabled for all the old hardware just to avoid
possible regression as meaning of register bits are unknown.
I tested it also with some other devices and it seems to be working,
but I still consider it to be too risky to change it default.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/tuners/mt2060_priv.h')
-rw-r--r-- | drivers/media/tuners/mt2060_priv.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/tuners/mt2060_priv.h b/drivers/media/tuners/mt2060_priv.h index cc738aa..a6c931c 100644 --- a/drivers/media/tuners/mt2060_priv.h +++ b/drivers/media/tuners/mt2060_priv.h @@ -98,6 +98,14 @@ struct mt2060_priv { u32 frequency; u16 if1_freq; u8 fmfreq; + + /* + * Use REG_MISC_CTRL register for sleep. That drops sleep power usage + * about 0.9W (huge!). Register bit meanings are unknown, so let it be + * disabled by default to avoid possible regression. Convert driver to + * i2c model in order to enable it. + */ + bool sleep; }; #endif |