aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/tuners/mt2060_priv.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2016-12-09 15:11:09 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-02-03 06:55:46 -0200
commite11415c811047189a132c61c4c838ed7fd8431c8 (patch)
tree062d6b6e594302ca1e74908c281316d9703d0c44 /drivers/media/tuners/mt2060_priv.h
parent[media] MAINTAINERS: add zd1301 DVB USB interface driver (diff)
downloadwireguard-linux-e11415c811047189a132c61c4c838ed7fd8431c8.tar.xz
wireguard-linux-e11415c811047189a132c61c4c838ed7fd8431c8.zip
[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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/tuners/mt2060_priv.h b/drivers/media/tuners/mt2060_priv.h
index cc738aa82fe4..a6c931c1a5a7 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