summaryrefslogtreecommitdiffstats
path: root/include/configs/am335x_evm.h
diff options
context:
space:
mode:
authorChase Maupin <Chase.Maupin@ti.com>2013-02-08 11:20:12 +0000
committerTom Rini <trini@ti.com>2013-02-18 13:51:20 -0500
commit63ba7c66d9f56e6e9ab82dab9b8e819c3a1f6f22 (patch)
treeb538a9fdbec5cab2db9efef25d711dbd89c5209a /include/configs/am335x_evm.h
parent73c1f4aff04dd468963457250e36048fb6ec2e14 (diff)
downloadblackbird-obmc-uboot-63ba7c66d9f56e6e9ab82dab9b8e819c3a1f6f22.tar.gz
blackbird-obmc-uboot-63ba7c66d9f56e6e9ab82dab9b8e819c3a1f6f22.zip
am335x_evm: Add SPI environment variables
* Added variables to support SPI booting * Note that the first 512KiB are reserved for 4 copies of SPL. Signed-off-by: Chase Maupin <Chase.Maupin@ti.com> Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'include/configs/am335x_evm.h')
-rw-r--r--include/configs/am335x_evm.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 77bd734e95..54707d45d3 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -75,6 +75,15 @@
"${optargs} " \
"root=${nandroot} " \
"rootfstype=${nandrootfstype}\0" \
+ "spiroot=/dev/mtdblock4 rw\0" \
+ "spirootfstype=jffs2\0" \
+ "spisrcaddr=0xe0000\0" \
+ "spiimgsize=0x362000\0" \
+ "spibusno=0\0" \
+ "spiargs=setenv bootargs console=${console} " \
+ "${optargs} " \
+ "root=${spiroot} " \
+ "rootfstype=${spirootfstype}\0" \
"bootenv=uEnv.txt\0" \
"loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
"importbootenv=echo Importing environment from mmc ...; " \
@@ -93,6 +102,11 @@
"run nandargs; " \
"nand read ${loadaddr} ${nandsrcaddr} ${nandimgsize}; " \
"bootm ${loadaddr}\0" \
+ "spiboot=echo Booting from spi ...; " \
+ "run spiargs; " \
+ "sf probe ${spibusno}:0; " \
+ "sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; " \
+ "bootm ${loadaddr}\0" \
"ramboot=echo Booting from ramdisk ...; " \
"run ramargs; " \
"bootm ${loadaddr}\0" \
OpenPOWER on IntegriCloud