aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/imx8/fuse.c
diff options
context:
space:
mode:
authorYe Li2020-05-03 22:31:46 +0800
committerStefano Babic2020-05-10 20:55:20 +0200
commite5e95ecf1e32ab9433f2bd987c4f6cba6cf84376 (patch)
tree0a3749a64d6098546ba28c430e471ab8d130633d /drivers/misc/imx8/fuse.c
parentdc597d1d408422e3c5d1adc43297f927bb7ca4c9 (diff)
misc: fuse: Update imx8 fuse driver for 8QM
Add the second ECC fuse area for 8QM which is different with 8QXP Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/misc/imx8/fuse.c')
-rw-r--r--drivers/misc/imx8/fuse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/misc/imx8/fuse.c b/drivers/misc/imx8/fuse.c
index 1309215d4d7..4d7f2f524d0 100644
--- a/drivers/misc/imx8/fuse.c
+++ b/drivers/misc/imx8/fuse.c
@@ -15,8 +15,13 @@ DECLARE_GLOBAL_DATA_PTR;
#define FSL_ECC_WORD_START_1 0x10
#define FSL_ECC_WORD_END_1 0x10F
+#ifdef CONFIG_IMX8QM
+#define FSL_ECC_WORD_START_2 0x1A0
+#define FSL_ECC_WORD_END_2 0x1FF
+#elif defined(CONFIG_IMX8QXP)
#define FSL_ECC_WORD_START_2 0x220
#define FSL_ECC_WORD_END_2 0x31F
+#endif
#define FSL_QXP_FUSE_GAP_START 0x110
#define FSL_QXP_FUSE_GAP_END 0x21F