1 --- a/arch/arm/mach-gemini/board-wbd222.c
2 +++ b/arch/arm/mach-gemini/board-wbd222.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 wbd222_mdio = {
14 + .phy_mask = ~((1 << 1) | (1 << 3)),
17 +static struct platform_device wbd222_phy_device = {
18 + .name = "mdio-gpio",
21 + .platform_data = &wbd222_mdio,
25 +static struct gemini_gmac_platform_data gmac_data = {
26 + .bus_id[0] = "gpio-0:01",
27 + .interface[0] = PHY_INTERFACE_MODE_MII,
28 + .bus_id[1] = "gpio-0:03",
29 + .interface[1] = PHY_INTERFACE_MODE_MII,
32 static struct gpio_keys_button wbd222_keys[] = {
35 @@ -123,6 +145,8 @@ static void __init wbd222_init(void)
36 platform_device_register(&wbd222_keys_device);
37 platform_register_rtc();
38 platform_register_watchdog();
39 + platform_device_register(&wbd222_phy_device);
40 + platform_register_ethernet(&gmac_data);
43 MACHINE_START(WBD222, "Wiliboard WBD-222")