diff options
author | 2014-04-16 16:12:27 -0700 | |
---|---|---|
committer | 2014-04-23 12:32:19 +0100 | |
commit | c42ba72ec3a7a1b6aa30122931f1f4b91b601c31 (patch) | |
tree | 7c8eb878e231d35da4a3178db85046d91fd13830 /include/linux/mfd | |
parent | mfd: tps65090: Don't tell child devices we have an IRQ if we don't (diff) | |
download | linux-c42ba72ec3a7a1b6aa30122931f1f4b91b601c31.tar.gz linux-c42ba72ec3a7a1b6aa30122931f1f4b91b601c31.tar.bz2 linux-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')
-rw-r--r-- | include/linux/mfd/tps65090.h | 14 |
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; |