summaryrefslogtreecommitdiffstats
path: root/include/configs/at91sam9x5ek.h
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2012-12-06 21:37:04 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2013-01-12 13:18:50 +0100
commit961ffc7759b703e1c574280267e705f2e5f54432 (patch)
treefc8bd75b71de18f719bc5b98319073b253325bb9 /include/configs/at91sam9x5ek.h
parentfd70aa41468be4324275910f85578cb5be6a0439 (diff)
downloadblackbird-obmc-uboot-961ffc7759b703e1c574280267e705f2e5f54432.tar.gz
blackbird-obmc-uboot-961ffc7759b703e1c574280267e705f2e5f54432.zip
arm: at91sam9x5: add dataflash boot support
Add dataflash boot support on at91sam9x5ek board Signed-off-by: Bo Shen <voice.shen@atmel.com> Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'include/configs/at91sam9x5ek.h')
-rw-r--r--include/configs/at91sam9x5ek.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/configs/at91sam9x5ek.h b/include/configs/at91sam9x5ek.h
index f9e5a4a707..6fac5ac4eb 100644
--- a/include/configs/at91sam9x5ek.h
+++ b/include/configs/at91sam9x5ek.h
@@ -205,6 +205,16 @@
#define CONFIG_BOOTCOMMAND "sf probe 0; " \
"sf read 0x22000000 0x100000 0x300000; " \
"bootm 0x22000000"
+#elif defined(CONFIG_SYS_USE_DATAFLASH)
+/* bootstrap + u-boot + env + linux in data flash */
+#define CONFIG_ENV_IS_IN_SPI_FLASH
+#define CONFIG_ENV_OFFSET 0x4200
+#define CONFIG_ENV_SIZE 0x4200
+#define CONFIG_ENV_SECT_SIZE 0x210
+#define CONFIG_ENV_SPI_MAX_HZ 30000000
+#define CONFIG_BOOTCOMMAND "sf probe 0; " \
+ "sf read 0x22000000 0x84000 0x294000; " \
+ "bootm 0x22000000"
#else /* CONFIG_SYS_USE_MMC */
/* bootstrap + u-boot + env + linux in mmc */
#define CONFIG_ENV_IS_IN_MMC
OpenPOWER on IntegriCloud