Commit 63ba7c66d9f56e6e9ab82dab9b8e819c3a1f6f22
Committed by
Tom Rini
1 parent
73c1f4aff0
Exists in
master
and in
53 other branches
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>
Showing 1 changed file with 14 additions and 0 deletions Side-by-side Diff
include/configs/am335x_evm.h
... | ... | @@ -75,6 +75,15 @@ |
75 | 75 | "${optargs} " \ |
76 | 76 | "root=${nandroot} " \ |
77 | 77 | "rootfstype=${nandrootfstype}\0" \ |
78 | + "spiroot=/dev/mtdblock4 rw\0" \ | |
79 | + "spirootfstype=jffs2\0" \ | |
80 | + "spisrcaddr=0xe0000\0" \ | |
81 | + "spiimgsize=0x362000\0" \ | |
82 | + "spibusno=0\0" \ | |
83 | + "spiargs=setenv bootargs console=${console} " \ | |
84 | + "${optargs} " \ | |
85 | + "root=${spiroot} " \ | |
86 | + "rootfstype=${spirootfstype}\0" \ | |
78 | 87 | "bootenv=uEnv.txt\0" \ |
79 | 88 | "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \ |
80 | 89 | "importbootenv=echo Importing environment from mmc ...; " \ |
... | ... | @@ -92,6 +101,11 @@ |
92 | 101 | "nandboot=echo Booting from nand ...; " \ |
93 | 102 | "run nandargs; " \ |
94 | 103 | "nand read ${loadaddr} ${nandsrcaddr} ${nandimgsize}; " \ |
104 | + "bootm ${loadaddr}\0" \ | |
105 | + "spiboot=echo Booting from spi ...; " \ | |
106 | + "run spiargs; " \ | |
107 | + "sf probe ${spibusno}:0; " \ | |
108 | + "sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; " \ | |
95 | 109 | "bootm ${loadaddr}\0" \ |
96 | 110 | "ramboot=echo Booting from ramdisk ...; " \ |
97 | 111 | "run ramargs; " \ |