From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Wed, 7 Mar 2012 15:25:38 +0100 Subject: [U-Boot] [PATCH 17/25] SPEAr: Enable CONFIG_SYS_FLASH_PROTECTION In-Reply-To: <1331121854-20494-18-git-send-email-amit.virdi@st.com> References: <1331121854-20494-1-git-send-email-amit.virdi@st.com> <1331121854-20494-18-git-send-email-amit.virdi@st.com> Message-ID: <201203071525.38337.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 07 March 2012 13:04:06 Amit Virdi wrote: > From: Vipin Kumar > > 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 > Signed-off-by: Amit Virdi > --- > include/configs/spear3xx_evb.h | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/include/configs/spear3xx_evb.h > b/include/configs/spear3xx_evb.h index 84fad0c..e827a33 100644 > --- a/include/configs/spear3xx_evb.h > +++ b/include/configs/spear3xx_evb.h > @@ -113,6 +113,7 @@ > #define CONFIG_FLASH_CFI_DRIVER > > #if defined(CONFIG_SPEAR310) > +#define CONFIG_SYS_FLASH_PROTECTION 1 > #define CONFIG_SYS_FLASH_BASE 0x50000000 > #define CONFIG_SYS_CS1_FLASH_BASE 0x60000000 > #define CONFIG_SYS_CS2_FLASH_BASE 0x70000000 > @@ -128,6 +129,7 @@ > #define CONFIG_SYS_MAX_FLASH_BANKS 6 > > #elif defined(CONFIG_SPEAR320) > +#define CONFIG_SYS_FLASH_PROTECTION 1 Remove the "1"'s above. Other that that: Acked-by: Stefan Roese Thanks, Stefan -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de