am43xx_evm_qspiboot: Disable MMC/USB in SPL for size

The following commit[1] defined CPSW for CONFIG_QSPI_BOOT, but for other
configs CPSW remains disabled. Hence, doing a undef of CPSW whereever
required rather than defining it for only QSPI_BOOT.

[1] c812c28 configs: am43x-evm: change uboot offset

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
Sourav Poddar 2014-01-29 22:43:29 +05:30 committed by Tom Rini
parent a0d0aa9cc2
commit aa153dbdc2
1 changed files with 8 additions and 4 deletions

View File

@ -114,8 +114,16 @@
*/
#if defined(CONFIG_QSPI_BOOT)
#ifdef CONFIG_SPL_BUILD
/*
* QSPI flash block size is 64KiB in size. Hence, the SPL partition is
* limited to 64KiB. In order to fit within this constraint we need to
* disable MMC and USB host/gadget support in the SPL binary.
*/
#undef CONFIG_SPL_MMC_SUPPORT
#undef CONFIG_SPL_USB_SUPPORT
#undef CONFIG_SPL_USB_HOST_SUPPORT
#endif
#define CONFIG_ENV_IS_IN_SPI_FLASH
#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
#define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED
@ -270,8 +278,6 @@
BOOTCMD_NAND
#endif
#ifdef CONFIG_QSPI_BOOT
#if !defined(CONFIG_SPL_BUILD)
/* Enhance our eMMC support / experience. */
#define CONFIG_CMD_GPT
#define CONFIG_EFI_PARTITION
@ -302,8 +308,6 @@
#define CONFIG_SPL_ETH_SUPPORT
#define CONFIG_SPL_NET_SUPPORT
#define CONFIG_SYS_RX_ETH_BUFFER 64
#endif
#endif
/* NAND support */
#ifdef CONFIG_NAND