aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-09-14 20:07:23 +0000
committerJohn Crispin <blogic@openwrt.org>2015-09-14 20:07:23 +0000
commit5f9889469d11fd577516fd934c2e148c31ee0ad3 (patch)
tree69e253c6e54363a124cd7a91542b7f7498830cb1 /target/linux/lantiq
parent8fe050e1f8a432f1fe93a1875a0652465ac642e0 (diff)
downloadmaster-187ad058-5f9889469d11fd577516fd934c2e148c31ee0ad3.tar.gz
master-187ad058-5f9889469d11fd577516fd934c2e148c31ee0ad3.tar.bz2
master-187ad058-5f9889469d11fd577516fd934c2e148c31ee0ad3.zip
lantiq: Initialize USB on AR9 platform
Based on the ltq-hcd driver the AR9 USB can be initialized the same way as the VR9 platform. Use the same initialization bits for both platforms. Signed-off-by: Antti Seppälä <a.seppala@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46913 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq')
-rw-r--r--target/linux/lantiq/patches-3.18/0039-MIPS-lantiq-initialize-usb-on-boot.patch5
-rw-r--r--target/linux/lantiq/patches-4.1/0039-MIPS-lantiq-initialize-usb-on-boot.patch5
2 files changed, 6 insertions, 4 deletions
diff --git a/target/linux/lantiq/patches-3.18/0039-MIPS-lantiq-initialize-usb-on-boot.patch b/target/linux/lantiq/patches-3.18/0039-MIPS-lantiq-initialize-usb-on-boot.patch
index 052e45e91b..fd0da8ed50 100644
--- a/target/linux/lantiq/patches-3.18/0039-MIPS-lantiq-initialize-usb-on-boot.patch
+++ b/target/linux/lantiq/patches-3.18/0039-MIPS-lantiq-initialize-usb-on-boot.patch
@@ -84,11 +84,12 @@
static int __init mips_reboot_setup(void)
{
struct resource res;
-@@ -223,6 +293,9 @@ static int __init mips_reboot_setup(void
+@@ -223,6 +293,10 @@ static int __init mips_reboot_setup(void
if (!ltq_rcu_membase)
panic("Failed to remap core memory");
-+ if (of_machine_is_compatible("lantiq,vr9"))
++ if (of_machine_is_compatible("lantiq,ar9") ||
++ of_machine_is_compatible("lantiq,vr9"))
+ ltq_usb_init();
+
_machine_restart = ltq_machine_restart;
diff --git a/target/linux/lantiq/patches-4.1/0039-MIPS-lantiq-initialize-usb-on-boot.patch b/target/linux/lantiq/patches-4.1/0039-MIPS-lantiq-initialize-usb-on-boot.patch
index 052e45e91b..fd0da8ed50 100644
--- a/target/linux/lantiq/patches-4.1/0039-MIPS-lantiq-initialize-usb-on-boot.patch
+++ b/target/linux/lantiq/patches-4.1/0039-MIPS-lantiq-initialize-usb-on-boot.patch
@@ -84,11 +84,12 @@
static int __init mips_reboot_setup(void)
{
struct resource res;
-@@ -223,6 +293,9 @@ static int __init mips_reboot_setup(void
+@@ -223,6 +293,10 @@ static int __init mips_reboot_setup(void
if (!ltq_rcu_membase)
panic("Failed to remap core memory");
-+ if (of_machine_is_compatible("lantiq,vr9"))
++ if (of_machine_is_compatible("lantiq,ar9") ||
++ of_machine_is_compatible("lantiq,vr9"))
+ ltq_usb_init();
+
_machine_restart = ltq_machine_restart;