diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-05-13 12:03:59 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-05-13 12:03:59 +0000 |
commit | 4cf665e402e7c221af0483f51b350d6cc73c7c4f (patch) | |
tree | 3d2edadc3093a9c90ddff8e939b02ed3737fb28f /target/linux/gemini/patches-3.3/124-arm-gemini-rut100-register-ethernet.patch | |
parent | d9851d2ebdd702ffa74b9f6e78deccaf3947fabd (diff) | |
download | master-187ad058-4cf665e402e7c221af0483f51b350d6cc73c7c4f.tar.gz master-187ad058-4cf665e402e7c221af0483f51b350d6cc73c7c4f.tar.bz2 master-187ad058-4cf665e402e7c221af0483f51b350d6cc73c7c4f.zip |
gemini: add support for 3.3
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31698 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/gemini/patches-3.3/124-arm-gemini-rut100-register-ethernet.patch')
-rw-r--r-- | target/linux/gemini/patches-3.3/124-arm-gemini-rut100-register-ethernet.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/target/linux/gemini/patches-3.3/124-arm-gemini-rut100-register-ethernet.patch b/target/linux/gemini/patches-3.3/124-arm-gemini-rut100-register-ethernet.patch new file mode 100644 index 0000000000..36cafed648 --- /dev/null +++ b/target/linux/gemini/patches-3.3/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 +@@ -14,13 +14,35 @@ + #include <linux/leds.h> + #include <linux/input.h> + #include <linux/gpio_keys.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] = "0:01", ++ .interface[0] = PHY_INTERFACE_MODE_MII, ++}; ++ + static struct gpio_keys_button rut1xx_keys[] = { + { + .code = KEY_SETUP, +@@ -84,6 +106,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") |