aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ep93xx/edb9315a.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-ep93xx/edb9315a.c')
-rw-r--r--arch/arm/mach-ep93xx/edb9315a.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/mach-ep93xx/edb9315a.c b/arch/arm/mach-ep93xx/edb9315a.c
index bfefdaa8f794..fa958e9d6ddd 100644
--- a/arch/arm/mach-ep93xx/edb9315a.c
+++ b/arch/arm/mach-ep93xx/edb9315a.c
@@ -44,10 +44,40 @@ static struct platform_device edb9315a_flash = {
44 .resource = &edb9315a_flash_resource, 44 .resource = &edb9315a_flash_resource,
45}; 45};
46 46
47static struct ep93xx_eth_data edb9315a_eth_data = {
48 .phy_id = 1,
49};
50
51static struct resource edb9315a_eth_resource[] = {
52 {
53 .start = EP93XX_ETHERNET_PHYS_BASE,
54 .end = EP93XX_ETHERNET_PHYS_BASE + 0xffff,
55 .flags = IORESOURCE_MEM,
56 }, {
57 .start = IRQ_EP93XX_ETHERNET,
58 .end = IRQ_EP93XX_ETHERNET,
59 .flags = IORESOURCE_IRQ,
60 }
61};
62
63static struct platform_device edb9315a_eth_device = {
64 .name = "ep93xx-eth",
65 .id = -1,
66 .dev = {
67 .platform_data = &edb9315a_eth_data,
68 },
69 .num_resources = 2,
70 .resource = edb9315a_eth_resource,
71};
72
47static void __init edb9315a_init_machine(void) 73static void __init edb9315a_init_machine(void)
48{ 74{
49 ep93xx_init_devices(); 75 ep93xx_init_devices();
50 platform_device_register(&edb9315a_flash); 76 platform_device_register(&edb9315a_flash);
77
78 memcpy(edb9315a_eth_data.dev_addr,
79 (void *)(EP93XX_ETHERNET_BASE + 0x50), 6);
80 platform_device_register(&edb9315a_eth_device);
51} 81}
52 82
53MACHINE_START(EDB9315A, "Cirrus Logic EDB9315A Evaluation Board") 83MACHINE_START(EDB9315A, "Cirrus Logic EDB9315A Evaluation Board")