[PATCH 2/3] edb9302 eth: privide proper phy config
Alexander Kurz
akurz at blala.de
Sun Feb 21 10:06:29 PST 2016
The evaluation boards EDB9302 and Olimex-CS-E9302 both use a
KS8721BL transciever in default strapping which is phy_addr=1
Signed-off-by: Alexander Kurz <akurz at blala.de>
---
arch/arm/boards/edb93xx/edb93xx.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boards/edb93xx/edb93xx.c b/arch/arm/boards/edb93xx/edb93xx.c
index c314320..4146abf 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 <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);
--
2.1.4
More information about the barebox
mailing list