imx8: fuse: fix fuse driver
authorMarcel Ziswiler <marcel@ziswiler.com>
Fri, 31 May 2019 16:00:19 +0000 (19:00 +0300)
committerStefano Babic <sbabic@denx.de>
Tue, 11 Jun 2019 08:42:48 +0000 (10:42 +0200)
This fixes the i.MX 8 fuse driver to actually build for i.MX 8QM as
well.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Max Krummenacher <max.krummenacher@toradex.com>
drivers/misc/imx8/fuse.c

index 29d2256a22de8bde47b9b339f4aa81e98256c964..2f2fad2c17c6448d2869658ee76eceae21b3146b 100644 (file)
@@ -15,13 +15,11 @@ DECLARE_GLOBAL_DATA_PTR;
 #define FSL_ECC_WORD_START_1    0x10
 #define FSL_ECC_WORD_END_1      0x10F
 
-#ifdef CONFIG_IMX8QXP
 #define FSL_ECC_WORD_START_2    0x220
 #define FSL_ECC_WORD_END_2      0x31F
 
 #define FSL_QXP_FUSE_GAP_START  0x110
 #define FSL_QXP_FUSE_GAP_END    0x21F
-#endif
 
 #define FSL_SIP_OTP_READ             0xc200000A
 #define FSL_SIP_OTP_WRITE            0xc200000B