arm: juno: Enable DM_ETH
The smc911X driver is now DM enabled, so we can switch the Juno board over to use DM_ETH for the on-board Fast Ethernet device. Works out of the box by using the DT. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
@@ -1180,7 +1180,7 @@ config TARGET_VEXPRESS64_JUNO
|
|||||||
select DM_SERIAL
|
select DM_SERIAL
|
||||||
select ARM_PSCI_FW
|
select ARM_PSCI_FW
|
||||||
select PSCI_RESET
|
select PSCI_RESET
|
||||||
select DM
|
select DM_ETH
|
||||||
select BLK
|
select BLK
|
||||||
select USB
|
select USB
|
||||||
select DM_USB
|
select DM_USB
|
||||||
|
@@ -152,11 +152,13 @@ void reset_cpu(ulong addr)
|
|||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
#ifndef CONFIG_DM_ETH
|
||||||
#ifdef CONFIG_SMC91111
|
#ifdef CONFIG_SMC91111
|
||||||
rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
|
rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SMC911X
|
#ifdef CONFIG_SMC911X
|
||||||
rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
|
rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user