diff options
author | Florian Fainelli <florian@openwrt.org> | 2013-01-15 19:55:50 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2013-01-15 19:55:50 +0000 |
commit | 45e44da6c216fe1c2aadd224e7baf402ee010c91 (patch) | |
tree | 8ca2ec23a382304a1628221c7ef65503ea926ef2 /target/linux/mvebu/patches-3.8/023-arm_mvebu_add_support_for_usb_host.patch | |
parent | a3d1301c2d6691143a9029cd51e2a76acdb939cd (diff) | |
download | master-187ad058-45e44da6c216fe1c2aadd224e7baf402ee010c91.tar.gz master-187ad058-45e44da6c216fe1c2aadd224e7baf402ee010c91.tar.bz2 master-187ad058-45e44da6c216fe1c2aadd224e7baf402ee010c91.zip |
mvebu: add support for EHCI controller
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35181 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mvebu/patches-3.8/023-arm_mvebu_add_support_for_usb_host.patch')
-rw-r--r-- | target/linux/mvebu/patches-3.8/023-arm_mvebu_add_support_for_usb_host.patch | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/target/linux/mvebu/patches-3.8/023-arm_mvebu_add_support_for_usb_host.patch b/target/linux/mvebu/patches-3.8/023-arm_mvebu_add_support_for_usb_host.patch new file mode 100644 index 0000000000..63aff01ae1 --- /dev/null +++ b/target/linux/mvebu/patches-3.8/023-arm_mvebu_add_support_for_usb_host.patch @@ -0,0 +1,101 @@ +The Armada 370 and Armada XP SoC has an Orion EHCI USB controller. +This patch adds support for this controller in Armada 370 +and Armada XP SoC common device tree files. + +Cc: Lior Amsalem <alior@marvell.com> +Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> +Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> +--- + arch/arm/boot/dts/armada-370-xp.dtsi | 15 +++++++++++++++ + arch/arm/boot/dts/armada-370.dtsi | 9 +++++++++ + arch/arm/boot/dts/armada-xp.dtsi | 17 +++++++++++++++++ + arch/arm/mach-mvebu/Kconfig | 1 + + 4 files changed, 42 insertions(+), 0 deletions(-) + +diff --git a/arch/arm/boot/dts/armada-370-xp.dtsi b/arch/arm/boot/dts/armada-370-xp.dtsi +index 28276fe..fa025c4 100644 +--- a/arch/arm/boot/dts/armada-370-xp.dtsi ++++ b/arch/arm/boot/dts/armada-370-xp.dtsi +@@ -145,6 +145,21 @@ + clocks = <&gateclk 17>; + status = "disabled"; + }; ++ ++ usb@d0050000 { ++ compatible = "marvell,orion-ehci"; ++ reg = <0xd0050000 0x500>; ++ interrupts = <45>; ++ status = "disabled"; ++ }; ++ ++ usb@d0051000 { ++ compatible = "marvell,orion-ehci"; ++ reg = <0xd0051000 0x500>; ++ interrupts = <46>; ++ status = "disabled"; ++ }; ++ + }; + }; + +diff --git a/arch/arm/boot/dts/armada-370.dtsi b/arch/arm/boot/dts/armada-370.dtsi +index 88f9bab..8188d13 100644 +--- a/arch/arm/boot/dts/armada-370.dtsi ++++ b/arch/arm/boot/dts/armada-370.dtsi +@@ -144,5 +144,14 @@ + dmacap,memset; + }; + }; ++ ++ usb@d0050000 { ++ clocks = <&coreclk 0>; ++ }; ++ ++ usb@d0051000 { ++ clocks = <&coreclk 0>; ++ }; ++ + }; + }; +diff --git a/arch/arm/boot/dts/armada-xp.dtsi b/arch/arm/boot/dts/armada-xp.dtsi +index 390ba98..1443949 100644 +--- a/arch/arm/boot/dts/armada-xp.dtsi ++++ b/arch/arm/boot/dts/armada-xp.dtsi +@@ -134,5 +134,22 @@ + dmacap,memset; + }; + }; ++ ++ usb@d0050000 { ++ clocks = <&gateclk 18>; ++ }; ++ ++ usb@d0051000 { ++ clocks = <&gateclk 19>; ++ }; ++ ++ usb@d0052000 { ++ compatible = "marvell,orion-ehci"; ++ reg = <0xd0052000 0x500>; ++ interrupts = <47>; ++ clocks = <&gateclk 20>; ++ status = "disabled"; ++ }; ++ + }; + }; +diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig +index 440b13e..5e4fcde 100644 +--- a/arch/arm/mach-mvebu/Kconfig ++++ b/arch/arm/mach-mvebu/Kconfig +@@ -24,6 +24,7 @@ config MACH_ARMADA_370_XP + select HAVE_SMP + select CACHE_L2X0 + select CPU_PJ4B ++ select USB_ARCH_HAS_EHCI if USB_SUPPORT + + config MACH_ARMADA_370 + bool "Marvell Armada 370 boards" +-- +1.7.8.6 |