diff options
author | Robin Gong <yibin.gong@nxp.com> | 2016-05-03 15:58:46 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2017-06-08 19:25:24 +0800 |
commit | f9e4f1a4f001346935253637c6e177362f65c324 (patch) | |
tree | fa3d1736d4e4b0c830f999f91b7f1a8246b9c024 /include | |
parent | 48e479bbf0e22f366445437d44c1069a76b7c75a (diff) |
MLK-12928-14 mfd: pf1550: add otp read interface
add otp read interface to let pf1550 regulator driver or other sub driver
to read out otp register.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/pf1550.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mfd/pf1550.h b/include/linux/mfd/pf1550.h index f19c4933d2d4..76f0ae843acf 100644 --- a/include/linux/mfd/pf1550.h +++ b/include/linux/mfd/pf1550.h @@ -121,6 +121,10 @@ enum pf1550_pmic_reg { PF1550_CHARG_REG_LED_CNFG = 0x9E, PF1550_CHARG_REG_CHGR_KEY2 = 0x9F, + PF1550_TEST_REG_FMRADDR = 0xC4, + PF1550_TEST_REG_FMRDATA = 0xC5, + PF1550_TEST_REG_KEY3 = 0xDF, + PF1550_PMIC_REG_END = 0xff, }; @@ -241,4 +245,7 @@ struct pf1550_dev { int irq; }; +int pf1550_read_otp(struct pf1550_dev *pf1550, unsigned int index, + unsigned int *val); + #endif /* __LINUX_MFD_PF1550_H */ |