1 --- a/arch/arm/mach-gemini/board-wbd111.c
2 +++ b/arch/arm/mach-gemini/board-wbd111.c
4 #include <asm/mach/arch.h>
5 #include <asm/mach/time.h>
7 +#include <mach/gmac.h>
11 +static struct mdio_gpio_platform_data wbd111_mdio = {
14 + .phy_mask = ~(1 << 1),
17 +static struct platform_device wbd111_phy_device = {
18 + .name = "mdio-gpio",
21 + .platform_data = &wbd111_mdio,
25 +static struct gemini_gmac_platform_data gmac_data = {
26 + .bus_id[0] = "0:01",
27 + .interface[0] = PHY_INTERFACE_MODE_MII,
30 static struct gpio_keys_button wbd111_keys[] = {
33 @@ -131,6 +151,8 @@ static void __init wbd111_init(void)
34 wbd111_num_partitions);
35 platform_device_register(&wbd111_leds_device);
36 platform_device_register(&wbd111_keys_device);
37 + platform_device_register(&wbd111_phy_device);
38 + platform_register_ethernet(&gmac_data);
41 MACHINE_START(WBD111, "Wiliboard WBD-111")
42 --- a/arch/arm/mach-gemini/board-wbd222.c
43 +++ b/arch/arm/mach-gemini/board-wbd222.c
45 #include <asm/mach/arch.h>
46 #include <asm/mach/time.h>
48 +#include <mach/gmac.h>
52 +static struct mdio_gpio_platform_data wbd222_mdio = {
55 + .phy_mask = ~((1 << 1) | (1 << 3)),
58 +static struct platform_device wbd222_phy_device = {
59 + .name = "mdio-gpio",
62 + .platform_data = &wbd222_mdio,
66 +static struct gemini_gmac_platform_data gmac_data = {
67 + .bus_id[0] = "0:01",
68 + .interface[0] = PHY_INTERFACE_MODE_MII,
69 + .bus_id[1] = "0:03",
70 + .interface[1] = PHY_INTERFACE_MODE_MII,
73 static struct gpio_keys_button wbd222_keys[] = {
76 @@ -131,6 +153,10 @@ static void __init wbd222_init(void)
77 wbd222_num_partitions);
78 platform_device_register(&wbd222_leds_device);
79 platform_device_register(&wbd222_keys_device);
80 + platform_device_register(&wbd222_phy_device);
81 + platform_register_ethernet(&gmac_data);
82 + platform_register_usb(0);
83 + platform_register_usb(1);
86 MACHINE_START(WBD222, "Wiliboard WBD-222")