diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-11-11 16:51:01 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-11-11 16:51:01 +0000 |
commit | df306765c954f2ff5ba72ffb5dde9a6353dd460e (patch) | |
tree | ff0da242405798a7dc2721eae40d0819884ae9bb /target/linux/ixp4xx/patches-3.10/190-cambria_support.patch | |
parent | 8772424505ff62204a26609f1cbd1a4f185fa30d (diff) | |
download | master-187ad058-df306765c954f2ff5ba72ffb5dde9a6353dd460e.tar.gz master-187ad058-df306765c954f2ff5ba72ffb5dde9a6353dd460e.tar.bz2 master-187ad058-df306765c954f2ff5ba72ffb5dde9a6353dd460e.zip |
ixp4xx: fix usb on cambria boards by using the ehci-platform driver
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38740 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ixp4xx/patches-3.10/190-cambria_support.patch')
-rw-r--r-- | target/linux/ixp4xx/patches-3.10/190-cambria_support.patch | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/target/linux/ixp4xx/patches-3.10/190-cambria_support.patch b/target/linux/ixp4xx/patches-3.10/190-cambria_support.patch index 7698912cce..c3de81a117 100644 --- a/target/linux/ixp4xx/patches-3.10/190-cambria_support.patch +++ b/target/linux/ixp4xx/patches-3.10/190-cambria_support.patch @@ -125,7 +125,7 @@ +subsys_initcall(cambria_pci_init); --- /dev/null +++ b/arch/arm/mach-ixp4xx/cambria-setup.c -@@ -0,0 +1,993 @@ +@@ -0,0 +1,1003 @@ +/* + * arch/arm/mach-ixp4xx/cambria-setup.c + * @@ -163,6 +163,7 @@ +#include <linux/types.h> +#include <linux/tty.h> +#include <linux/irq.h> ++#include <linux/usb/ehci_pdriver.h> + +#include <mach/hardware.h> +#include <asm/irq.h> @@ -634,25 +635,34 @@ + +static u64 ehci_dma_mask = ~(u32)0; + ++static struct usb_ehci_pdata cambria_usb_pdata = { ++ .big_endian_desc = 1, ++ .big_endian_mmio = 1, ++ .has_tt = 1, ++ .caps_offset = 0x100, ++}; ++ +static struct platform_device cambria_usb0_device = { -+ .name = "ixp4xx-ehci", ++ .name = "ehci-platform", + .id = 0, + .resource = cambria_usb0_resources, + .num_resources = ARRAY_SIZE(cambria_usb0_resources), + .dev = { + .dma_mask = &ehci_dma_mask, + .coherent_dma_mask = 0xffffffff, ++ .platform_data = &cambria_usb_pdata, + }, +}; + +static struct platform_device cambria_usb1_device = { -+ .name = "ixp4xx-ehci", ++ .name = "ehci-platform", + .id = 1, + .resource = cambria_usb1_resources, + .num_resources = ARRAY_SIZE(cambria_usb1_resources), + .dev = { + .dma_mask = &ehci_dma_mask, + .coherent_dma_mask = 0xffffffff, ++ .platform_data = &cambria_usb_pdata, + }, +}; + |