diff options
author | Opensource [Steve Twiss] <stwiss.opensource@diasemi.com> | 2014-02-14 09:08:11 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-03-19 04:58:19 -0400 |
commit | c1d12c784c49980e4cbe57b7e6cc14b406449099 (patch) | |
tree | 8a233f057b5c277eec6985347bd3dd583ddf7b04 /include/linux/mfd | |
parent | 82ae61c4b0ccfd55a31b3afc267953d0a0d416ad (diff) |
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/mfd')
-rw-r--r-- | include/linux/mfd/da9063/core.h | 6 |
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 { | |||
33 | PMIC_DA9063 = 0x61, | 33 | PMIC_DA9063 = 0x61, |
34 | }; | 34 | }; |
35 | 35 | ||
36 | enum da9063_variant_codes { | ||
37 | PMIC_DA9063_BB = 0x5 | ||
38 | }; | ||
39 | |||
36 | /* Interrupts */ | 40 | /* Interrupts */ |
37 | enum da9063_irqs { | 41 | enum da9063_irqs { |
38 | DA9063_IRQ_ONKEY = 0, | 42 | DA9063_IRQ_ONKEY = 0, |
@@ -72,7 +76,7 @@ struct da9063 { | |||
72 | /* Device */ | 76 | /* Device */ |
73 | struct device *dev; | 77 | struct device *dev; |
74 | unsigned short model; | 78 | unsigned short model; |
75 | unsigned short revision; | 79 | unsigned char variant_code; |
76 | unsigned int flags; | 80 | unsigned int flags; |
77 | 81 | ||
78 | /* Control interface */ | 82 | /* Control interface */ |