board: ti: am335x: eth_cpsw should depend on CONFIG_NET
The origin of this patch is the breaking of am335x-hs boot due to commite41651fffd("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. commit2f51f946e3upstream Signed-off-by: Corentin LABBE <clabbe@baylibre.com> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Andrew Davis <afd@ti.com>
This commit is contained in:
parent
1fdced88f7
commit
4c186846fa
|
|
@ -904,7 +904,7 @@ int board_late_init(void)
|
|||
#endif
|
||||
|
||||
/* CPSW platdata */
|
||||
#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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue