From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Pont Date: Mon, 30 Jun 2014 10:55:03 +0100 Subject: [U-Boot] [PATCH 2/2] ARM: atmel: sama5d3xek: enable NOR flash support In-Reply-To: <1403252161-20526-3-git-send-email-voice.shen@atmel.com> References: <1403252161-20526-1-git-send-email-voice.shen@atmel.com> <1403252161-20526-3-git-send-email-voice.shen@atmel.com> Message-ID: <00ef01cf9449$6378fa70$2a6aef50$@pont@sdcsystems.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Bo, > -/* No NOR flash */ > +/* NOR flash */ > +#define CONFIG_CMD_FLASH > + > +#ifdef CONFIG_CMD_FLASH > +#define CONFIG_SYS_FLASH_CFI > +#define CONFIG_FLASH_CFI_DRIVER > +#define CONFIG_SYS_FLASH_BASE 0x10000000 > +#define CONFIG_SYS_MAX_FLASH_SECT 0x20000 > +#define CONFIG_SYS_MAX_FLASH_BANKS 1 > +#else > #define CONFIG_SYS_NO_FLASH > +#endif The NOR flash device on the SAMA5D3x CPU modules supports hardware sector protection and according to the flash datasheet: "All blocks power-up in a locked state to protect array data from being altered during power transitions". In order to make your patch set work: #define CONFIG_SYS_FLASH_PROTECTION needs adding into the include/configs/sama5d3xek.h file. Andy.