aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/gemini/patches-3.10/124-arm-gemini-rut100-register-ethernet.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2014-07-06 17:51:14 +0000
committerHauke Mehrtens <hauke@openwrt.org>2014-07-06 17:51:14 +0000
commit5e95f3b35ba6757232ec361595e3ff6160861ab9 (patch)
treef729fcc8af1ca325174ff30e45c074a9b680c4b6 /target/linux/gemini/patches-3.10/124-arm-gemini-rut100-register-ethernet.patch
parent039ebc968d80ca5d1fe3cf1238f102a3b5a0cf3b (diff)
downloadmaster-187ad058-5e95f3b35ba6757232ec361595e3ff6160861ab9.tar.gz
master-187ad058-5e95f3b35ba6757232ec361595e3ff6160861ab9.tar.bz2
master-187ad058-5e95f3b35ba6757232ec361595e3ff6160861ab9.zip
gemini: add support for kernel 3.10
This is compile tested only, please run test and report back. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41531 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/gemini/patches-3.10/124-arm-gemini-rut100-register-ethernet.patch')
-rw-r--r--target/linux/gemini/patches-3.10/124-arm-gemini-rut100-register-ethernet.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/target/linux/gemini/patches-3.10/124-arm-gemini-rut100-register-ethernet.patch b/target/linux/gemini/patches-3.10/124-arm-gemini-rut100-register-ethernet.patch
new file mode 100644
index 0000000000..e7c55d53e1
--- /dev/null
+++ b/target/linux/gemini/patches-3.10/124-arm-gemini-rut100-register-ethernet.patch
@@ -0,0 +1,47 @@
+--- a/arch/arm/mach-gemini/board-rut1xx.c
++++ b/arch/arm/mach-gemini/board-rut1xx.c
+@@ -15,13 +15,35 @@
+ #include <linux/input.h>
+ #include <linux/gpio_keys.h>
+ #include <linux/sizes.h>
++#include <linux/mdio-gpio.h>
+
+ #include <asm/mach-types.h>
+ #include <asm/mach/arch.h>
+ #include <asm/mach/time.h>
+
++#include <mach/gmac.h>
++
+ #include "common.h"
+
++static struct mdio_gpio_platform_data rut1xx_mdio = {
++ .mdc = 22,
++ .mdio = 21,
++ .phy_mask = ~(1 << 1),
++};
++
++static struct platform_device rut1xx_phy_device = {
++ .name = "mdio-gpio",
++ .id = 0,
++ .dev = {
++ .platform_data = &rut1xx_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 rut1xx_keys[] = {
+ {
+ .code = KEY_SETUP,
+@@ -81,6 +103,8 @@ static void __init rut1xx_init(void)
+ platform_device_register(&rut1xx_keys_device);
+ platform_register_rtc();
+ platform_register_watchdog();
++ platform_device_register(&rut1xx_phy_device);
++ platform_register_ethernet(&gmac_data);
+ }
+
+ MACHINE_START(RUT100, "Teltonika RUT100")