diff mbox

[U-Boot,3/3] am43xx_evm: add eth boot support

Message ID 1433928857-5875-4-git-send-email-mugunthanvnm@ti.com
State Changes Requested
Delegated to: Tom Rini
Headers show

Commit Message

Mugunthan V N June 10, 2015, 9:34 a.m. UTC
add cpsw ethernet boot mode support to download spl and
u-boot.img via tftp protocol. Also adding a seperate config
for ethernet boot mode as the default build falcon mode and
environment on MMC is defined for ethernet boot mode
environment should be set to nowhere.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
---
 configs/am43xx_evm_ethboot_defconfig |  5 +++++
 include/configs/am43xx_evm.h         | 10 +++++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 configs/am43xx_evm_ethboot_defconfig

Comments

Tom Rini June 10, 2015, 6:56 p.m. UTC | #1
On Wed, Jun 10, 2015 at 03:04:17PM +0530, Mugunthan V N wrote:

> add cpsw ethernet boot mode support to download spl and
> u-boot.img via tftp protocol. Also adding a seperate config
> for ethernet boot mode as the default build falcon mode and
> environment on MMC is defined for ethernet boot mode
> environment should be set to nowhere.
> 
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>

The same comments apply here about re-using CONFIG_SPL_ETH_SUPPORT (and
then only set CONFIG_SPL_NET_SUPPORT and anything else).
diff mbox

Patch

diff --git a/configs/am43xx_evm_ethboot_defconfig b/configs/am43xx_evm_ethboot_defconfig
new file mode 100644
index 0000000..9e0af18
--- /dev/null
+++ b/configs/am43xx_evm_ethboot_defconfig
@@ -0,0 +1,5 @@ 
+CONFIG_ARM=y
+CONFIG_TARGET_AM43XX_EVM=y
+CONFIG_SPL=y
+CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,NAND,ETH_BOOT_SUPPORT"
+CONFIG_CMD_NET=y
diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
index 3bd9abd..1be8a20 100644
--- a/include/configs/am43xx_evm.h
+++ b/include/configs/am43xx_evm.h
@@ -314,11 +314,11 @@ 
 
 #endif
 
+#ifndef CONFIG_SPL_BUILD
 /* CPSW Ethernet */
 #define CONFIG_CMD_DHCP
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_MII
-#define CONFIG_DRIVER_TI_CPSW
 #define CONFIG_MII
 #define CONFIG_BOOTP_DEFAULT
 #define CONFIG_BOOTP_DNS
@@ -328,11 +328,19 @@ 
 #define CONFIG_BOOTP_SUBNETMASK
 #define CONFIG_NET_RETRY_COUNT		10
 #define CONFIG_PHY_GIGE
+#endif
+
+#define CONFIG_DRIVER_TI_CPSW
 #define CONFIG_PHYLIB
 
 #define CONFIG_SPL_ENV_SUPPORT
 #define CONFIG_SPL_NET_VCI_STRING	"AM43xx U-Boot SPL"
 
+#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_ETH_BOOT_SUPPORT)
+#undef CONFIG_ENV_IS_IN_FAT
+#define CONFIG_ENV_IS_NOWHERE
+#endif
+
 #define CONFIG_SPL_ETH_SUPPORT
 #define CONFIG_SPL_NET_SUPPORT
 #define CONFIG_SYS_RX_ETH_BUFFER	64