]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
misc: fuse: Update imx8 fuse driver for 8QM
authorYe Li <ye.li@nxp.com>
Sun, 3 May 2020 14:31:46 +0000 (22:31 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 10 May 2020 18:55:20 +0000 (20:55 +0200)
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>
drivers/misc/imx8/fuse.c

index 1309215d4d7ce4797c580b7cf071f5b1177014bc..4d7f2f524d0a2d9e8b62d74dce22f5f8feb53313 100644 (file)
@@ -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