From: Andy Pont <andy.pont@sdcsystems.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] ARM: atmel: sama5d3xek: enable NOR flash support
Date: Mon, 30 Jun 2014 10:55:03 +0100 [thread overview]
Message-ID: <00ef01cf9449$6378fa70$2a6aef50$@pont@sdcsystems.com> (raw)
In-Reply-To: <1403252161-20526-3-git-send-email-voice.shen@atmel.com>
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.
next prev parent reply other threads:[~2014-06-30 9:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-20 8:15 [U-Boot] [PATCH 0/2] ARM: atmel: sama5d3xek: enable NOR flash support Bo Shen
2014-06-20 8:16 ` [U-Boot] [PATCH 1/2] ARM: atmel: sama5d3xek: add nor flash init function Bo Shen
2014-06-20 8:16 ` [U-Boot] [PATCH 2/2] ARM: atmel: sama5d3xek: enable NOR flash support Bo Shen
2014-06-30 9:55 ` Andy Pont [this message]
2014-06-30 10:01 ` Bo Shen
2014-06-30 10:46 ` Andy Pont
2014-07-01 3:52 ` Bo Shen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='00ef01cf9449$6378fa70$2a6aef50$@pont@sdcsystems.com' \
--to=andy.pont@sdcsystems.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox