summaryrefslogtreecommitdiff
path: root/target/linux/gemini/patches/122-arm-gemini-wbd111-register-ethernet.patch
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-03-25 14:18:32 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-03-25 14:18:32 +0000
commit0002be7b1a5c266968b8afcf1cc70f1e5138626a (patch)
tree434d439eed20bfad339ef72cac047972faaad579 /target/linux/gemini/patches/122-arm-gemini-wbd111-register-ethernet.patch
parentd46ec9c935a5e8baa82a889e50f7ff47e1ca5551 (diff)
[gemini]: upgrade to 3.9-rc4, disable unsupported boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36128 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/gemini/patches/122-arm-gemini-wbd111-register-ethernet.patch')
-rw-r--r--target/linux/gemini/patches/122-arm-gemini-wbd111-register-ethernet.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/target/linux/gemini/patches/122-arm-gemini-wbd111-register-ethernet.patch b/target/linux/gemini/patches/122-arm-gemini-wbd111-register-ethernet.patch
new file mode 100644
index 0000000000..1a02b558dd
--- /dev/null
+++ b/target/linux/gemini/patches/122-arm-gemini-wbd111-register-ethernet.patch
@@ -0,0 +1,41 @@
+--- 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")