diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-03-12 18:22:34 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-03-12 18:22:34 +0000 |
commit | f0f72ce2624bc2ce02e39193b6d51e353d1a93a2 (patch) | |
tree | ee98f96a032e47010c819a96d5d544e53025b0f5 /target/linux/gemini/patches-3.3/131-arm-gemini-add-usb-platform-device.patch | |
parent | 04f2ef9e66a17e8d76fc2160f8f0795db136e858 (diff) | |
download | upstream-f0f72ce2624bc2ce02e39193b6d51e353d1a93a2.tar.gz upstream-f0f72ce2624bc2ce02e39193b6d51e353d1a93a2.tar.bz2 upstream-f0f72ce2624bc2ce02e39193b6d51e353d1a93a2.zip |
gemini: remove 3.3 support
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35995
Diffstat (limited to 'target/linux/gemini/patches-3.3/131-arm-gemini-add-usb-platform-device.patch')
-rw-r--r-- | target/linux/gemini/patches-3.3/131-arm-gemini-add-usb-platform-device.patch | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/target/linux/gemini/patches-3.3/131-arm-gemini-add-usb-platform-device.patch b/target/linux/gemini/patches-3.3/131-arm-gemini-add-usb-platform-device.patch deleted file mode 100644 index 00990e1065..0000000000 --- a/target/linux/gemini/patches-3.3/131-arm-gemini-add-usb-platform-device.patch +++ /dev/null @@ -1,74 +0,0 @@ ---- a/arch/arm/mach-gemini/devices.c -+++ b/arch/arm/mach-gemini/devices.c -@@ -185,3 +185,62 @@ int __init platform_register_ethernet(st - - return platform_device_register(ðernet_device); - } -+ -+static u64 usb0_dmamask = DMA_BIT_MASK(32); -+static struct resource usb0_resources[] = { -+ { -+ .start = 0x68000000, -+ .end = 0x68000fff, -+ .flags = IORESOURCE_MEM, -+ }, -+ { -+ .start = IRQ_USB0, -+ .end = IRQ_USB0, -+ .flags = IORESOURCE_IRQ, -+ }, -+}; -+ -+static u64 usb1_dmamask = DMA_BIT_MASK(32); -+static struct resource usb1_resources[] = { -+ { -+ .start = 0x69000000, -+ .end = 0x69000fff, -+ .flags = IORESOURCE_MEM, -+ }, -+ { -+ .start = IRQ_USB1, -+ .end = IRQ_USB1, -+ .flags = IORESOURCE_IRQ, -+ }, -+}; -+ -+static struct platform_device usb_device[] = { -+ { -+ .name = "ehci-fotg2xx", -+ .id = 0, -+ .dev = { -+ .dma_mask = &usb0_dmamask, -+ .coherent_dma_mask = DMA_BIT_MASK(32), -+ }, -+ .num_resources = ARRAY_SIZE(usb0_resources), -+ .resource = usb0_resources, -+ }, -+ { -+ .name = "ehci-fotg2xx", -+ .id = 1, -+ .dev = { -+ .dma_mask = &usb1_dmamask, -+ .coherent_dma_mask = DMA_BIT_MASK(32), -+ }, -+ .num_resources = ARRAY_SIZE(usb1_resources), -+ .resource = usb1_resources, -+ }, -+}; -+ -+int __init platform_register_usb(unsigned int id) -+{ -+ if (id > 1) -+ return -EINVAL; -+ -+ return platform_device_register(&usb_device[id]); -+} ---- a/arch/arm/mach-gemini/common.h -+++ b/arch/arm/mach-gemini/common.h -@@ -28,5 +28,6 @@ extern int platform_register_pflash(unsi - unsigned int nr_parts); - extern int platform_register_watchdog(void); - extern int platform_register_ethernet(struct gemini_gmac_platform_data *pdata); -+extern int platform_register_usb(unsigned int id); - - #endif /* __GEMINI_COMMON_H__ */ |