U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/5] board/BuR: drop ETH-support in SPL-Stage
@ 2016-02-19 11:09 Hannes Schmelzer
  2016-02-19 11:09 ` [U-Boot] [PATCH 2/5] board/BuR: use default u-boot prompt on all B&R boards Hannes Schmelzer
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Hannes Schmelzer @ 2016-02-19 11:09 UTC (permalink / raw)
  To: u-boot

During very early prototype-phase we did boot the AM335x boards
initially from CPSW-EMAC.

Now we don't need this feature anymore.

So we drop it to save MLO-space and having therefore a more quickly
boot.

Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at>
---

 board/BuR/common/common.c           | 9 ++-------
 include/configs/bur_am335x_common.h | 4 ----
 2 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c
index 441465c..ce4acc1 100644
--- a/board/BuR/common/common.c
+++ b/board/BuR/common/common.c
@@ -12,7 +12,6 @@
 #include <version.h>
 #include <common.h>
 #include <errno.h>
-#include <spl.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/omap.h>
@@ -640,8 +639,7 @@ static struct cpsw_platform_data cpsw_data = {
 };
 #endif /* CONFIG_DRIVER_TI_CPSW, ... */
 
-#if defined(CONFIG_DRIVER_TI_CPSW)
-
+#if defined(CONFIG_DRIVER_TI_CPSW) && !defined(CONFIG_SPL_BUILD)
 int board_eth_init(bd_t *bis)
 {
 	int rv = 0;
@@ -658,8 +656,6 @@ int board_eth_init(bd_t *bis)
 	mac_addr[4] = mac_lo & 0xFF;
 	mac_addr[5] = (mac_lo & 0xFF00) >> 8;
 
-#if (defined(CONFIG_DRIVER_TI_CPSW) && !defined(CONFIG_SPL_BUILD)) || \
-	(defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD))
 	if (!getenv("ethaddr")) {
 		#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_USE_FDT)
 		printf("<ethaddr> not set. trying DTB ... ");
@@ -685,10 +681,9 @@ int board_eth_init(bd_t *bis)
 		printf("Error %d registering CPSW switch\n", rv);
 		return 0;
 	}
-#endif /* CONFIG_DRIVER_TI_CPSW, ... */
 	return rv;
 }
-#endif /* CONFIG_DRIVER_TI_CPSW */
+#endif /* defined(CONFIG_DRIVER_TI_CPSW) && !defined(CONFIG_SPL_BUILD) */
 #if defined(CONFIG_GENERIC_MMC) && !defined(CONFIG_SPL_BUILD)
 int board_mmc_init(bd_t *bis)
 {
diff --git a/include/configs/bur_am335x_common.h b/include/configs/bur_am335x_common.h
index ffc6811..e666933 100644
--- a/include/configs/bur_am335x_common.h
+++ b/include/configs/bur_am335x_common.h
@@ -62,12 +62,8 @@
 #define CONFIG_CMD_PING
 #define CONFIG_DRIVER_TI_CPSW		/* Driver for IP block */
 #define CONFIG_MII			/* Required in net/eth.c */
-#define CONFIG_SPL_ETH_SUPPORT
 #define CONFIG_PHYLIB
 #define CONFIG_PHY_NATSEMI
-#define CONFIG_SPL_NET_SUPPORT
-#define CONFIG_SPL_ENV_SUPPORT		/* used for a fetching MAC-Address */
-#define CONFIG_SPL_NET_VCI_STRING	"AM335x U-Boot SPL"
 /* Network console */
 #define CONFIG_NETCONSOLE			1
 #define CONFIG_BOOTP_MAY_FAIL		/* if we don't have DHCP environment */
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2016-02-25 15:24 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-19 11:09 [U-Boot] [PATCH 1/5] board/BuR: drop ETH-support in SPL-Stage Hannes Schmelzer
2016-02-19 11:09 ` [U-Boot] [PATCH 2/5] board/BuR: use default u-boot prompt on all B&R boards Hannes Schmelzer
2016-02-20  0:55   ` Tom Rini
2016-02-25 15:24   ` [U-Boot] [U-Boot, " Tom Rini
2016-02-19 11:09 ` [U-Boot] [PATCH 3/5] board/BuR: move everything possible from board's headerfile to KConfig Hannes Schmelzer
2016-02-20  0:55   ` Tom Rini
2016-02-25 15:24   ` [U-Boot] [U-Boot, " Tom Rini
2016-02-19 11:09 ` [U-Boot] [PATCH 4/5] board/BuR: split bur_am335x_common.h into am335x-specific and BuR common parts Hannes Schmelzer
2016-02-20  0:55   ` Tom Rini
2016-02-25 15:24   ` [U-Boot] [U-Boot, " Tom Rini
2016-02-19 11:09 ` [U-Boot] [PATCH 5/5] board/BuR/kwb: cosmetic changes Hannes Schmelzer
2016-02-20  0:55   ` Tom Rini
2016-02-25 15:24   ` [U-Boot] [U-Boot,5/5] " Tom Rini
2016-02-20  0:55 ` [U-Boot] [PATCH 1/5] board/BuR: drop ETH-support in SPL-Stage Tom Rini
2016-02-25 15:24 ` [U-Boot] [U-Boot,1/5] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox