diff options
author | Andrew Shadura <andrew.shadura@collabora.co.uk> | 2016-05-24 15:56:19 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-06-07 18:13:06 +0200 |
commit | fc44902a0d447d561a6a30c8d3e3e1ecf535ff9d (patch) | |
tree | 0ad9254af3e255a302c2269e25e39cd29091427d /include | |
parent | 07aa030a18552bcb1e9de30e348c6b59f4ffb6a5 (diff) | |
download | u-boot-imx-fc44902a0d447d561a6a30c8d3e3e1ecf535ff9d.zip u-boot-imx-fc44902a0d447d561a6a30c8d3e3e1ecf535ff9d.tar.gz u-boot-imx-fc44902a0d447d561a6a30c8d3e3e1ecf535ff9d.tar.bz2 |
board: ge: bx50v3: make USB support optional and disabled by default
The USB support is only useful for development and shouldn't be enabled
in production, so it has to be disabled in U-boot by default.
Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/ge_bx50v3.h | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/include/configs/ge_bx50v3.h b/include/configs/ge_bx50v3.h index 53f8689..602763f 100644 --- a/include/configs/ge_bx50v3.h +++ b/include/configs/ge_bx50v3.h @@ -78,6 +78,7 @@ #define CONFIG_DOS_PARTITION /* USB Configs */ +#ifdef CONFIG_USB #define CONFIG_USB_EHCI #define CONFIG_USB_EHCI_MX6 #define CONFIG_USB_STORAGE @@ -99,6 +100,7 @@ #define CONFIG_G_DNL_VENDOR_NUM 0x0525 #define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5 #define CONFIG_G_DNL_MANUFACTURER "Advantech" +#endif /* Networking Configs */ #define CONFIG_FEC_MXC @@ -221,13 +223,7 @@ "bootm; " \ "fi;\0" \ -#define CONFIG_BOOTCOMMAND \ - "usb start; " \ - "setenv dev usb; " \ - "setenv devnum 0; " \ - "setenv rootdev sda1; " \ - "run tryboot; " \ - \ +#define CONFIG_MMCBOOTCOMMAND \ "setenv dev mmc; " \ "setenv rootdev mmcblk0p1; " \ \ @@ -241,9 +237,23 @@ "if mmc dev ${devnum}; then " \ "run tryboot; " \ "fi; " \ + +#define CONFIG_USBBOOTCOMMAND \ + "usb start; " \ + "setenv dev usb; " \ + "setenv devnum 0; " \ + "setenv rootdev sda1; " \ + "run tryboot; " \ \ + CONFIG_MMCBOOTCOMMAND \ "bmode usb; " \ +#ifdef CONFIG_CMD_USB +#define CONFIG_BOOTCOMMAND CONFIG_USBBOOTCOMMAND +#else +#define CONFIG_BOOTCOMMAND CONFIG_MMCBOOTCOMMAND +#endif + #define CONFIG_ARP_TIMEOUT 200UL /* Miscellaneous configurable options */ |