]> git.sur5r.net Git - u-boot/commitdiff
am335x: configs: Fix usb ether boot support
authorLokesh Vutla <lokeshvutla@ti.com>
Wed, 9 Mar 2016 10:09:33 +0000 (15:39 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 16 Mar 2016 01:30:16 +0000 (21:30 -0400)
CONFIG_SPL_NET_VCI_STRING is available only with BOOTP. So if
CMD_DHCP is enabled for SPL in usb ether boot, it will not pass
the right vendor name and failing to download the right file.
Also all the net CMD_* are not required in SPL builds. So defining
these only for non-SPL builds.

Reported-by: Yan Liu <yan-liu@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Sekhar Nori <nsekhar@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/configs/ti_am335x_common.h

index edbd8205495ee7f5ca723b0b5ebf331256ebdcc3..4535b8cbea5c2ff0fa52cbe125cb2413285f8d27 100644 (file)
@@ -28,6 +28,7 @@
 #endif
 #define CONFIG_SYS_NS16550_CLK         48000000
 
+#ifndef CONFIG_SPL_BUILD
 /* Network defines. */
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_MII
 #define CONFIG_BOOTP_SUBNETMASK
 #define CONFIG_NET_RETRY_COUNT         10
 #define CONFIG_CMD_PING
-#define CONFIG_DRIVER_TI_CPSW          /* Driver for IP block */
 #define CONFIG_MII                     /* Required in net/eth.c */
+#endif
 
+#define CONFIG_DRIVER_TI_CPSW          /* Driver for IP block */
 /*
  * RTC related defines. To use bootcount you must set bootlimit in the
  * environment to a non-zero value and enable CONFIG_BOOTCOUNT_LIMIT