summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Gong <yibin.gong@nxp.com>2016-05-03 15:58:46 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:25:04 +0800
commitcf50a8b507f3ccd3b776682baa50b682a8abd84c (patch)
tree3f42facd70e4cf6c08a236d9dae428fae593b1c5 /include
parent0730a508951c9d79758c2daa760f503e9b745872 (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.h7
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 */