summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorOpensource [Steve Twiss] <stwiss.opensource@diasemi.com>2014-02-14 14:08:11 +0000
committerLee Jones <lee.jones@linaro.org>2014-03-19 08:58:19 +0000
commitc1d12c784c49980e4cbe57b7e6cc14b406449099 (patch)
tree8a233f057b5c277eec6985347bd3dd583ddf7b04 /include/linux
parent82ae61c4b0ccfd55a31b3afc267953d0a0d416ad (diff)
downloadlinux-stable-c1d12c784c49980e4cbe57b7e6cc14b406449099.tar.gz
linux-stable-c1d12c784c49980e4cbe57b7e6cc14b406449099.tar.bz2
linux-stable-c1d12c784c49980e4cbe57b7e6cc14b406449099.zip
mfd: da9063: Add support for production silicon variant code
Add the correct silicon variant code ID (0x5) to the driver. This new code is the 'production' variant code ID for DA9063. This patch will remove the older variant code ID which matches the pre-production silicon ID (0x3) for the DA9063 chip. There is also some small amount of correction done in this patch: it splits the revision code and correctly names it according to the hardware specification and moves the dev_info() call before the variant ID test. Signed-off-by: Opensource [Steve Twiss] <stwiss.opensource@diasemi.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/da9063/core.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/mfd/da9063/core.h b/include/linux/mfd/da9063/core.h
index 2d2a0af675fd..00a9aac5d1e8 100644
--- a/include/linux/mfd/da9063/core.h
+++ b/include/linux/mfd/da9063/core.h
@@ -33,6 +33,10 @@ enum da9063_models {
PMIC_DA9063 = 0x61,
};
+enum da9063_variant_codes {
+ PMIC_DA9063_BB = 0x5
+};
+
/* Interrupts */
enum da9063_irqs {
DA9063_IRQ_ONKEY = 0,
@@ -72,7 +76,7 @@ struct da9063 {
/* Device */
struct device *dev;
unsigned short model;
- unsigned short revision;
+ unsigned char variant_code;
unsigned int flags;
/* Control interface */