diff options
author | Alexander Kurz <akurz@blala.de> | 2016-02-21 18:17:33 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-25 09:42:48 +0100 |
commit | f4594878f54cd9dd8f9edb2c211fa6517d3cff3a (patch) | |
tree | d70a3a458ea469938e1040f403ff4d095c88ef32 /arch/arm/boards/edb93xx | |
parent | a7932a35da1f9946e27d656f0d8bbc6a48530be5 (diff) | |
download | barebox-f4594878f54cd9dd8f9edb2c211fa6517d3cff3a.tar.gz barebox-f4594878f54cd9dd8f9edb2c211fa6517d3cff3a.tar.xz |
edb9302 eth: provide proper phy config
The evaluation boards EDB9302 and Olimex-CS-E9302 both use a
KS8721BL transceiver in default strapping which is phy_addr=1
Signed-off-by: Alexander Kurz <akurz@blala.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/edb93xx')
-rw-r--r-- | arch/arm/boards/edb93xx/edb93xx.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/boards/edb93xx/edb93xx.c b/arch/arm/boards/edb93xx/edb93xx.c index c314320d21..0fb93d23dc 100644 --- a/arch/arm/boards/edb93xx/edb93xx.c +++ b/arch/arm/boards/edb93xx/edb93xx.c @@ -27,10 +27,16 @@ #include <malloc.h> #include <generated/mach-types.h> #include <mach/ep93xx-regs.h> +#include <net/ep93xx_eth.h> #include "edb93xx.h" #define DEVCFG_U1EN (1 << 18) +static struct ep93xx_eth_platform_data ep93xx_eth_info = { + .xcv_type = PHY_INTERFACE_MODE_MII, + .phy_addr = 1, +}; + static int ep93xx_mem_init(void) { arm_add_mem_device("ram0", CONFIG_EP93XX_SDRAM_BANK0_BASE, @@ -70,7 +76,7 @@ static int ep93xx_devices_init(void) * CS line 6, data width is 16 bit */ add_generic_device("ep93xx_eth", DEVICE_ID_DYNAMIC, NULL, 0, 0, IORESOURCE_MEM, - NULL); + &ep93xx_eth_info); armlinux_set_architecture(MACH_TYPE); |