aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/tps65090.h
diff options
context:
space:
mode:
authorDoug Anderson <dianders@chromium.org>2014-04-16 16:12:27 -0700
committerLee Jones <lee.jones@linaro.org>2014-04-23 12:32:19 +0100
commitc42ba72ec3a7a1b6aa30122931f1f4b91b601c31 (patch)
tree7c8eb878e231d35da4a3178db85046d91fd13830 /include/linux/mfd/tps65090.h
parentmfd: tps65090: Don't tell child devices we have an IRQ if we don't (diff)
downloadlinux-dev-c42ba72ec3a7a1b6aa30122931f1f4b91b601c31.tar.xz
linux-dev-c42ba72ec3a7a1b6aa30122931f1f4b91b601c31.zip
mfd: tps65090: Stop caching most registers
Nearly all of the registers in tps65090 combine control bits and status bits. Turn off caching of all registers except the select few that can be cached. In order to avoid adding more duplicate #defines, we also move some register offset definitions to the mfd driver (and resolve inconsistent names). Signed-off-by: Doug Anderson <dianders@chromium.org> Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/tps65090.h')
-rw-r--r--include/linux/mfd/tps65090.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/mfd/tps65090.h b/include/linux/mfd/tps65090.h
index 3f43069413e7..45f0f9d2ed25 100644
--- a/include/linux/mfd/tps65090.h
+++ b/include/linux/mfd/tps65090.h
@@ -64,6 +64,20 @@ enum {
TPS65090_REGULATOR_MAX,
};
+/* Register addresses */
+#define TPS65090_REG_INTR_STS 0x00
+#define TPS65090_REG_INTR_STS2 0x01
+#define TPS65090_REG_INTR_MASK 0x02
+#define TPS65090_REG_INTR_MASK2 0x03
+#define TPS65090_REG_CG_CTRL0 0x04
+#define TPS65090_REG_CG_CTRL1 0x05
+#define TPS65090_REG_CG_CTRL2 0x06
+#define TPS65090_REG_CG_CTRL3 0x07
+#define TPS65090_REG_CG_CTRL4 0x08
+#define TPS65090_REG_CG_CTRL5 0x09
+#define TPS65090_REG_CG_STATUS1 0x0a
+#define TPS65090_REG_CG_STATUS2 0x0b
+
struct tps65090 {
struct device *dev;
struct regmap *rmap;