aboutsummaryrefslogtreecommitdiff
path: root/board/ti
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2022-06-14 08:44:07 +0000
committerTom Rini <trini@konsulko.com>2022-06-16 15:22:55 -0400
commit2f51f946e3e97d3d9463e0f199d055dbcb4eef02 (patch)
tree202623489b2e9914b0feabd6abf33af976bbc63d /board/ti
parentce9c579e2b7c877684d0140dd34b881e12fe5c59 (diff)
downloadu-boot-2f51f946e3e97d3d9463e0f199d055dbcb4eef02.zip
u-boot-2f51f946e3e97d3d9463e0f199d055dbcb4eef02.tar.gz
u-boot-2f51f946e3e97d3d9463e0f199d055dbcb4eef02.tar.bz2
board: ti: am335x: eth_cpsw should depend on CONFIG_NET
The origin of this patch is the breaking of am335x-hs boot due to commit e41651fffda7 ("dm: Support parent devices with of-platdata") HS boards have less SRAM for SPL and so this commit increased memory usage beyond am335x limit. This commit added 10 driver binding pass and am335x boot only if one pass is done. SPL try to do more than one pass due to eth_cpsw failing. Since HS SPL does not need network (and NET is already disabled in config), the easiest fix is to "remove" eth_cpsw from SPL by testing if NET is enabled. Signed-off-by: Corentin LABBE <clabbe@baylibre.com> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Andrew Davis <afd@ti.com>
Diffstat (limited to 'board/ti')
-rw-r--r--board/ti/am335x/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index 7c05458..2cb5b1c 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -902,7 +902,7 @@ int board_late_init(void)
#endif
/* CPSW plat */
-#if !CONFIG_IS_ENABLED(OF_CONTROL)
+#if CONFIG_IS_ENABLED(NET) && !CONFIG_IS_ENABLED(OF_CONTROL)
struct cpsw_slave_data slave_data[] = {
{
.slave_reg_ofs = CPSW_SLAVE0_OFFSET,