Commit 484e0b05f2dca43a827c950c91b31e151b48a8ef
Committed by
Albert ARIBAUD
1 parent
bda7f435a2
Exists in
master
and in
54 other branches
SPEAr: Enable CONFIG_SYS_FLASH_PROTECTION
This patch enables flash protection(lock/unlock) for CFI devices. This is necessary because the Parallel NOR flash connected on the spear boards, M28W64, can be locked/unlocked on a sector basis. Moreover, all its sectors are in locked state at reset and these have to be unlocked explicitly before being erased or written. Signed-off-by: Vipin Kumar <vipin.kumar@st.com> Signed-off-by: Amit Virdi <amit.virdi@st.com> Acked-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
include/configs/spear3xx_evb.h
... | ... | @@ -111,6 +111,7 @@ |
111 | 111 | #define CONFIG_FLASH_CFI_DRIVER |
112 | 112 | |
113 | 113 | #if defined(CONFIG_SPEAR310) |
114 | +#define CONFIG_SYS_FLASH_PROTECTION | |
114 | 115 | #define CONFIG_SYS_FLASH_BASE 0x50000000 |
115 | 116 | #define CONFIG_SYS_CS1_FLASH_BASE 0x60000000 |
116 | 117 | #define CONFIG_SYS_CS2_FLASH_BASE 0x70000000 |
... | ... | @@ -126,6 +127,7 @@ |
126 | 127 | #define CONFIG_SYS_MAX_FLASH_BANKS 6 |
127 | 128 | |
128 | 129 | #elif defined(CONFIG_SPEAR320) |
130 | +#define CONFIG_SYS_FLASH_PROTECTION | |
129 | 131 | #define CONFIG_SYS_FLASH_BASE 0x44000000 |
130 | 132 | #define CONFIG_SYS_CS1_FLASH_BASE 0x45000000 |
131 | 133 | #define CONFIG_SYS_CS2_FLASH_BASE 0x46000000 |