[OpenWrt-Devel] [PATCH 1/4] lantiq: Initialize USB on AR9 platform

Antti Seppälä a.seppala at gmail.com
Thu Aug 20 12:01:49 EDT 2015


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 at gmail.com>
---
 .../patches-3.18/0039-MIPS-lantiq-initialize-usb-on-boot.patch       | 5 +++--
 .../lantiq/patches-4.1/0039-MIPS-lantiq-initialize-usb-on-boot.patch | 5 +++--
 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 052e45e..fd0da8e 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 052e45e..fd0da8e 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;
-- 
2.4.6
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list