[U-Boot] [PATCH 1/1] am335x_evm: Add am335x_evm_usbspl boot target
Tom Rini
trini at ti.com
Tue Jan 22 23:59:28 CET 2013
With USB SPL support, we need to trim out some features in order to fit
within our memory constraints. To allow for the most re-use of the
resulting binary, we drop out CPSW ethernet and UART support, along with
the extra environment settings as those are unused by SPL.
Signed-off-by: Tom Rini <trini at ti.com>
---
boards.cfg | 1 +
include/configs/am335x_evm.h | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/boards.cfg b/boards.cfg
index b519bc4..fb0b9ac 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -236,6 +236,7 @@ am335x_evm_uart2 arm armv7 am335x ti
am335x_evm_uart3 arm armv7 am335x ti am33xx am335x_evm:SERIAL4,CONS_INDEX=4
am335x_evm_uart4 arm armv7 am335x ti am33xx am335x_evm:SERIAL5,CONS_INDEX=5
am335x_evm_uart5 arm armv7 am335x ti am33xx am335x_evm:SERIAL6,CONS_INDEX=6
+am335x_evm_usbspl arm armv7 am335x ti am33xx am335x_evm:SERIAL1,CONS_INDEX=1,SPL_USBETH_SUPPORT
highbank arm armv7 highbank - highbank
mx51_efikamx arm armv7 mx51_efikamx genesi mx5 mx51_efikamx:MACH_TYPE=MACH_TYPE_MX51_EFIKAMX,IMX_CONFIG=board/genesi/mx51_efikamx/imximage_mx.cfg
mx51_efikasb arm armv7 mx51_efikamx genesi mx5 mx51_efikamx:MACH_TYPE=MACH_TYPE_MX51_EFIKASB,IMX_CONFIG=board/genesi/mx51_efikamx/imximage_sb.cfg
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 391f705..f35ab82 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -239,7 +239,6 @@
#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x20000
#define CONFIG_SYS_SPI_U_BOOT_SIZE 0x40000
#define CONFIG_SPL_MUSB_NEW_SUPPORT
-#define CONFIG_SPL_USBETH_SUPPORT
#define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds"
#define CONFIG_SPL_BOARD_INIT
@@ -320,6 +319,12 @@
#ifdef CONFIG_SPL_BUILD
/* disable host part of MUSB in SPL */
#undef CONFIG_MUSB_HOST
+/* Disable SPI and CPSW ethernet support so we can fit. */
+#ifdef CONFIG_SPL_USBETH_SUPPORT
+#undef CONFIG_SPL_ETH_SUPPORT
+#undef CONFIG_SPL_YMODEM_SUPPORT
+#undef CONFIG_EXTRA_ENV_SETTINGS
+#endif
#endif
/* Unsupported features */
--
1.7.9.5
More information about the U-Boot
mailing list