meta-bbb/recipes-bsp/u-boot/u-boot-2017.05/0001-Remove-unused-boot-options.patch
Thomas Klaehn 6a699aae0c u-boot: new boot loader
Used to force boot sd card

Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
2017-06-13 15:01:30 +02:00

105 lines
3.1 KiB
Diff

From b1b8a09752afa3a9ff3c75f002d4195cf7bfe30b Mon Sep 17 00:00:00 2001
From: Scott Ellis <scott@jumpnowtek.com>
Date: Sun, 14 May 2017 09:46:03 -0400
Subject: [PATCH 1/3] Remove unused boot options
---
configs/am335x_boneblack_defconfig | 44 +++++++++++++++++++-------------------
include/configs/am335x_evm.h | 2 ++
2 files changed, 24 insertions(+), 22 deletions(-)
diff --git a/configs/am335x_boneblack_defconfig b/configs/am335x_boneblack_defconfig
index d3cb828..9fae82d 100644
--- a/configs/am335x_boneblack_defconfig
+++ b/configs/am335x_boneblack_defconfig
@@ -5,13 +5,13 @@ CONFIG_TARGET_AM335X_EVM=y
# CONFIG_SPL_NAND_SUPPORT is not set
CONFIG_SPL_STACK_R_ADDR=0x82000000
CONFIG_DISTRO_DEFAULTS=y
-CONFIG_SYS_EXTRA_OPTIONS="EMMC_BOOT"
+CONFIG_SYS_EXTRA_OPTIONS="ENV_IS_NOWHERE"
CONFIG_SYS_CONSOLE_INFO_QUIET=y
CONFIG_VERSION_VARIABLE=y
CONFIG_ARCH_MISC_INIT=y
CONFIG_SPL=y
CONFIG_SPL_STACK_R=y
-CONFIG_SPL_MUSB_NEW_SUPPORT=y
+# CONFIG_SPL_MUSB_NEW_SUPPORT is not set
CONFIG_SPL_OS_BOOT=y
CONFIG_AUTOBOOT_KEYED=y
CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n"
@@ -20,30 +20,30 @@ CONFIG_AUTOBOOT_STOP_STR=" "
# CONFIG_CMD_IMLS is not set
CONFIG_CMD_ASKENV=y
# CONFIG_CMD_FLASH is not set
-CONFIG_CMD_GPT=y
+# CONFIG_CMD_GPT is not set
CONFIG_CMD_MMC=y
-CONFIG_CMD_SF=y
-CONFIG_CMD_SPI=y
+# CONFIG_CMD_SF is not set
+# CONFIG_CMD_SPI is not set
CONFIG_CMD_I2C=y
-CONFIG_CMD_USB=y
-CONFIG_CMD_DFU=y
+# CONFIG_CMD_USB is not set
+# CONFIG_CMD_DFU is not set
CONFIG_CMD_GPIO=y
# CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_EXT4_WRITE=y
-CONFIG_DFU_TFTP=y
-CONFIG_DFU_MMC=y
-CONFIG_DFU_RAM=y
+# CONFIG_CMD_EXT4_WRITE is not set
+# CONFIG_DFU_TFTP is not set
+# CONFIG_DFU_MMC is not set
+# CONFIG_DFU_RAM is not set
CONFIG_MMC_OMAP_HS=y
-CONFIG_SPI_FLASH=y
-CONFIG_SPI_FLASH_WINBOND=y
+# CONFIG_SPI_FLASH is not set
+# CONFIG_SPI_FLASH_WINBOND is not set
CONFIG_SYS_NS16550=y
-CONFIG_USB=y
-CONFIG_USB_MUSB_HOST=y
-CONFIG_USB_MUSB_GADGET=y
-CONFIG_USB_STORAGE=y
-CONFIG_USB_GADGET=y
-CONFIG_USB_GADGET_DOWNLOAD=y
-CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
-CONFIG_G_DNL_VENDOR_NUM=0x0451
-CONFIG_G_DNL_PRODUCT_NUM=0xd022
+# CONFIG_USB is not set
+# CONFIG_USB_MUSB_HOST is not set
+# CONFIG_USB_MUSB_GADGET is not set
+# CONFIG_USB_STORAGE is not set
+# CONFIG_USB_GADGET is not set
+# CONFIG_USB_GADGET_DOWNLOAD is not set
+# CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
+# CONFIG_G_DNL_VENDOR_NUM=0x0451
+# CONFIG_G_DNL_PRODUCT_NUM=0xd022
CONFIG_OF_LIBFDT=y
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index fc8a08f..d8c18da 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -254,6 +254,7 @@
#define CONFIG_SYS_TEXT_BASE 0x08000000
#endif
+#ifdef CONFIG_USB
/*
* USB configuration. We enable MUSB support, both for host and for
* gadget. We set USB0 as peripheral and USB1 as host, based on the
@@ -285,6 +286,7 @@
#define CONFIG_USB_ETH_RNDIS
#define CONFIG_USBNET_HOST_ADDR "de:ad:be:af:00:00"
#endif /* CONFIG_USB_MUSB_GADGET */
+#endif /* CONFIG_USB */
/*
* Disable MMC DM for SPL build and can be re-enabled after adding
--
2.7.4