diff options
author | John Crispin <john@openwrt.org> | 2014-12-14 08:57:43 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-12-14 08:57:43 +0000 |
commit | fef7b4241fc3af9e693cce4ada2d1a3ed0587eeb (patch) | |
tree | 7766a18a07322defb0a247dcea3da314844bd3d4 /target/linux/gemini/patches-3.10/122-arm-gemini-wbd111-register-ethernet.patch | |
parent | 6f2b7567b898f3750c6eba5e27f2ac04682fbfbb (diff) | |
download | mtk-20170518-fef7b4241fc3af9e693cce4ada2d1a3ed0587eeb.zip mtk-20170518-fef7b4241fc3af9e693cce4ada2d1a3ed0587eeb.tar.gz mtk-20170518-fef7b4241fc3af9e693cce4ada2d1a3ed0587eeb.tar.bz2 |
gemini: merge register ethernet patches into one
Signed-off-by: Roman Yeryomin <roman@advem.lv>
SVN-Revision: 43702
Diffstat (limited to 'target/linux/gemini/patches-3.10/122-arm-gemini-wbd111-register-ethernet.patch')
-rw-r--r-- | target/linux/gemini/patches-3.10/122-arm-gemini-wbd111-register-ethernet.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/target/linux/gemini/patches-3.10/122-arm-gemini-wbd111-register-ethernet.patch b/target/linux/gemini/patches-3.10/122-arm-gemini-wbd111-register-ethernet.patch deleted file mode 100644 index 1a02b55..0000000 --- a/target/linux/gemini/patches-3.10/122-arm-gemini-wbd111-register-ethernet.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- a/arch/arm/mach-gemini/board-wbd111.c -+++ b/arch/arm/mach-gemini/board-wbd111.c -@@ -22,9 +22,29 @@ - #include <asm/mach/arch.h> - #include <asm/mach/time.h> - -+#include <mach/gmac.h> - - #include "common.h" - -+static struct mdio_gpio_platform_data wbd111_mdio = { -+ .mdc = 22, -+ .mdio = 21, -+ .phy_mask = ~(1 << 1), -+}; -+ -+static struct platform_device wbd111_phy_device = { -+ .name = "mdio-gpio", -+ .id = 0, -+ .dev = { -+ .platform_data = &wbd111_mdio, -+ }, -+}; -+ -+static struct gemini_gmac_platform_data gmac_data = { -+ .bus_id[0] = "gpio-0:01", -+ .interface[0] = PHY_INTERFACE_MODE_MII, -+}; -+ - static struct gpio_keys_button wbd111_keys[] = { - { - .code = KEY_SETUP, -@@ -123,6 +143,8 @@ static void __init wbd111_init(void) - platform_device_register(&wbd111_keys_device); - platform_register_rtc(); - platform_register_watchdog(); -+ platform_device_register(&wbd111_phy_device); -+ platform_register_ethernet(&gmac_data); - } - - MACHINE_START(WBD111, "Wiliboard WBD-111") |