]> git.sur5r.net Git - u-boot/commitdiff
am33xx: Add SPI SPL as an option
authorTom Rini <trini@ti.com>
Tue, 16 Oct 2012 13:06:07 +0000 (13:06 +0000)
committerTom Rini <trini@ti.com>
Thu, 25 Oct 2012 18:30:50 +0000 (11:30 -0700)
Add the required config.mk logic for this SoC as well as the BOOT_DEVICE
define.  Finally, enable the options on the am335x_evm.

Signed-off-by: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/am33xx/config.mk
arch/arm/include/asm/arch-am33xx/spl.h
include/configs/am335x_evm.h

index 5750bbdcb69a54d7e2ccfc523c6e7fe7e14d1c00..babf0eb5cc8d4895a9b8df0cb86400e792184898 100644 (file)
@@ -13,6 +13,7 @@
 #
 ifdef CONFIG_SPL_BUILD
 ALL-y  += $(OBJTREE)/MLO
+ALL-$(CONFIG_SPL_SPI_SUPPORT) += $(OBJTREE)/MLO.byteswap
 else
 ALL-y  += $(obj)u-boot.img
 endif
index 63ed10b257a01cacccc85858ffa6e09e116f80d1..644ff353febdfea316bc6d0978995367743faa82 100644 (file)
@@ -27,6 +27,7 @@
 #define BOOT_DEVICE_NAND       5
 #define BOOT_DEVICE_MMC1       8
 #define BOOT_DEVICE_MMC2       9       /* eMMC or daughter card */
+#define BOOT_DEVICE_SPI                11
 #define BOOT_DEVICE_UART       65
 #define BOOT_DEVICE_CPGMAC     70
 #define BOOT_DEVICE_MMC2_2      0xFF
index 9d807391bab29596cc5f275d8045be5e24d780c1..58d62d0c7d4ef15384a5bd2d77a183dfadcd4b44 100644 (file)
 #define CONFIG_SPL_NET_SUPPORT
 #define CONFIG_SPL_NET_VCI_STRING      "AM335x U-Boot SPL"
 #define CONFIG_SPL_ETH_SUPPORT
+#define CONFIG_SPL_SPI_SUPPORT
+#define CONFIG_SPL_SPI_FLASH_SUPPORT
+#define CONFIG_SPL_SPI_LOAD
+#define CONFIG_SPL_SPI_BUS             0
+#define CONFIG_SPL_SPI_CS              0
+#define CONFIG_SYS_SPI_U_BOOT_OFFS     0x20000
+#define CONFIG_SYS_SPI_U_BOOT_SIZE     0x40000
 #define CONFIG_SPL_LDSCRIPT            "$(CPUDIR)/omap-common/u-boot-spl.lds"
 
 /*