From 7c368ed315067b68c45a8fa6ef73e91161a90b98 Mon Sep 17 00:00:00 2001 From: "Ye.Li" Date: Mon, 1 Jun 2015 13:43:26 +0800 Subject: MLK-11010 imx: mx7d: Fix EIMNOR lock issue on mx7d 19x19 lpddr3 board Since the flash blocks are locked at default , need to set "CONFIG_SYS_FLASH_PROTECTION" to unlock them before write/erase. The patch also add the pinmux for LBA (ADV) pin and set eimnor enabled at default. Signed-off-by: Ye.Li --- include/configs/mx7d_19x19_lpddr3_arm2.h | 2 ++ include/configs/mx7d_arm2.h | 1 + 2 files changed, 3 insertions(+) (limited to 'include/configs') diff --git a/include/configs/mx7d_19x19_lpddr3_arm2.h b/include/configs/mx7d_19x19_lpddr3_arm2.h index 67244a8..1c68ee1 100644 --- a/include/configs/mx7d_19x19_lpddr3_arm2.h +++ b/include/configs/mx7d_19x19_lpddr3_arm2.h @@ -50,6 +50,8 @@ #define CONFIG_SYS_USE_NAND #define CONFIG_ENV_IS_IN_NAND #else +#define CONFIG_SYS_USE_EIMNOR +#undef CONFIG_FEC_MXC #define CONFIG_ENV_IS_IN_MMC #endif diff --git a/include/configs/mx7d_arm2.h b/include/configs/mx7d_arm2.h index c19c751..39b5eb0 100644 --- a/include/configs/mx7d_arm2.h +++ b/include/configs/mx7d_arm2.h @@ -286,6 +286,7 @@ #define CONFIG_FLASH_CFI_DRIVER /* Use drivers/cfi_flash.c */ #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE /* Use buffered writes*/ #define CONFIG_SYS_FLASH_EMPTY_INFO +#define CONFIG_SYS_FLASH_PROTECTION #endif #ifdef CONFIG_SYS_USE_NAND -- cgit v1.1