lantiq: Initialize USB on AR9 platform
authorJohn Crispin <john@openwrt.org>
Mon, 14 Sep 2015 20:07:23 +0000 (20:07 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 14 Sep 2015 20:07:23 +0000 (20:07 +0000)
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>
SVN-Revision: 46913

target/linux/lantiq/patches-3.18/0039-MIPS-lantiq-initialize-usb-on-boot.patch
target/linux/lantiq/patches-4.1/0039-MIPS-lantiq-initialize-usb-on-boot.patch

index 052e45e91b098ca05fc595ab262755c63399fac6..fd0da8ed50b8c71afac480c9505a545688b20604 100644 (file)
  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;
index 052e45e91b098ca05fc595ab262755c63399fac6..fd0da8ed50b8c71afac480c9505a545688b20604 100644 (file)
  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;