diff mbox series

[1/2] misc: fuse: Update imx8 fuse driver for 8QM

Message ID 20200503143147.16144-1-peng.fan@nxp.com
State New
Headers show
Series [1/2] misc: fuse: Update imx8 fuse driver for 8QM | expand

Commit Message

Peng Fan May 3, 2020, 2:31 p.m. UTC
From: Ye Li <ye.li at nxp.com>

Add the second ECC fuse area for 8QM which is different with 8QXP

Signed-off-by: Ye Li <ye.li at nxp.com>
Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
 drivers/misc/imx8/fuse.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Stefano Babic May 11, 2020, 10:15 a.m. UTC | #1
> From: Ye Li <ye.li at nxp.com>
> Add the second ECC fuse area for 8QM which is different with 8QXP
> Signed-off-by: Ye Li <ye.li at nxp.com>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/drivers/misc/imx8/fuse.c b/drivers/misc/imx8/fuse.c
index 1309215d4d..4d7f2f524d 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