diff options
author | Elaine Zhang <zhangqing@rock-chips.com> | 2017-08-21 03:28:34 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2017-08-21 08:53:57 +0100 |
commit | 9d6105e19f617406aea46dd19281080c7c5ae0d8 (patch) | |
tree | 8924acf417c433f6df3c88bfc5a9ecd333b6247c /include/linux/mfd/rk808.h | |
parent | 5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff) | |
download | lwn-9d6105e19f617406aea46dd19281080c7c5ae0d8.tar.gz lwn-9d6105e19f617406aea46dd19281080c7c5ae0d8.zip |
mfd: rk808: Fix up the chip id get failed
the rk8xx chip id is:
((MSB << 8) | LSB) & 0xfff0
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/rk808.h')
-rw-r--r-- | include/linux/mfd/rk808.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h index 83701ef7d3c7..54feb140c210 100644 --- a/include/linux/mfd/rk808.h +++ b/include/linux/mfd/rk808.h @@ -298,6 +298,7 @@ enum rk818_reg { #define VOUT_LO_INT BIT(0) #define CLK32KOUT2_EN BIT(0) +#define RK8XX_ID_MSK 0xfff0 enum { BUCK_ILMIN_50MA, BUCK_ILMIN_100MA, |