]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: AM43xx: Add Ethernet boot support to SPL
authorMugunthan V N <mugunthanvnm@ti.com>
Tue, 18 Feb 2014 12:31:58 +0000 (07:31 -0500)
committerTom Rini <trini@ti.com>
Tue, 4 Mar 2014 14:42:07 +0000 (09:42 -0500)
Add Ethernet Boot support to SPL

Acked-by: Tom Rini <trini@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
board/ti/am43xx/board.c
include/configs/am43xx_evm.h

index 7a2806320dacd1652e291e6caf06a70f9a395d20..d7449770a3fd240edbe65fed8af8bb988ba1b514 100644 (file)
@@ -24,9 +24,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifndef CONFIG_SPL_BUILD
 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE;
-#endif
 
 /*
  * Read header information from EEPROM into global structure.
index aff17ee74e428a38bd50f971a0e36d7b5051434c..614857dd25cde0119599bd0f9a76c1d0c9f0e606 100644 (file)
        "run mmcboot;" \
        "run usbboot;"
 
+#endif
+
 /* CPSW Ethernet */
 #define CONFIG_CMD_NET
 #define CONFIG_CMD_DHCP
 #define CONFIG_NET_MULTI
 #define CONFIG_PHY_GIGE
 #define CONFIG_PHYLIB
+
+#define CONFIG_SPL_ENV_SUPPORT
+#define CONFIG_SPL_NET_VCI_STRING      "AM43xx U-Boot SPL"
+
+#define CONFIG_SPL_ETH_SUPPORT
+#define CONFIG_SPL_NET_SUPPORT
 #define CONFIG_SYS_RX_ETH_BUFFER       64
-#define CONFIG_PHY_ADDR                        16
 
-#endif
 #endif /* __CONFIG_AM43XX_EVM_H */