summaryrefslogtreecommitdiff
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2014-03-11 11:34:26 +0530
committerLaxman Dewangan <ldewangan@nvidia.com>2014-03-12 02:12:02 -0700
commit5ce6ee8c703f9e1b094abf5953738fdf727dbbca (patch)
tree564f75991246aa1bc0449aeef130aa216b7f62d2 /include/linux/mfd
parentb1311d8afd840f5c66d51f27e3b56e72a34ebefc (diff)
mfd: as3722: implement otp version detection
Implement the otp version detection from the AMS PMIC device. Chip Revision ASCI_ID1 (90h) ASIC_ID2 (91h) ASIC_ID3 (CCh[7:4]) 1v0 0Ch 0h 0h 1v1 0Ch 1h 0h 1v2 0Ch 1h 0h 1v21 0Ch 1h 1h The detection of 1v1 and 1v2 is done using the platform data which sets as per the board-id. Change-Id: I3ca24206a48f3fc5101943627edbec42f0de9de2 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/379813 Reviewed-by: Bibek Basu <bbasu@nvidia.com> Tested-by: Bibek Basu <bbasu@nvidia.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/as3722.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/as3722.h b/include/linux/mfd/as3722.h
index 0cf40a0e3ef1..58f751ca00b8 100644
--- a/include/linux/mfd/as3722.h
+++ b/include/linux/mfd/as3722.h
@@ -155,6 +155,7 @@
#define AS3722_ASIC_ID2_REG 0x91
#define AS3722_LOCK_REG 0x9E
#define AS3722_FUSE15 0xAF
+#define AS3722_ASIC_ID3_REG 0xCC
#define AS3722_NCELL_MASK 0x03
#define AS3722_MAX_REGISTER 0xF4