summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-08-27 10:48:25 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-08-27 10:48:25 +0000
commit5e0f7659208af3cccc32b8af3dc2e01d83ce2b6a (patch)
tree2919f28514e538d787168021cbc04830e6791402 /target
parentc16d2f678d4dced9fa918ae21849d232bd90da42 (diff)
ar71xx: don't hardwire cpu_has_dsp{,2} to zero
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37845 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/patches-3.10/100-MIPS-ath79-don-t-hardwire-cpu_has_dsp-2-to-0.patch31
-rw-r--r--target/linux/ar71xx/patches-3.10/220-add_cpu_feature_overrides.patch8
2 files changed, 35 insertions, 4 deletions
diff --git a/target/linux/ar71xx/patches-3.10/100-MIPS-ath79-don-t-hardwire-cpu_has_dsp-2-to-0.patch b/target/linux/ar71xx/patches-3.10/100-MIPS-ath79-don-t-hardwire-cpu_has_dsp-2-to-0.patch
new file mode 100644
index 0000000000..ecced7941b
--- /dev/null
+++ b/target/linux/ar71xx/patches-3.10/100-MIPS-ath79-don-t-hardwire-cpu_has_dsp-2-to-0.patch
@@ -0,0 +1,31 @@
+From c9da75bfa6cd7a47f5b2a1d183d34c165a06dd1a Mon Sep 17 00:00:00 2001
+From: Gabor Juhos <juhosg@openwrt.org>
+Date: Thu, 22 Aug 2013 11:15:18 +0200
+Subject: [PATCH] MIPS: ath79: don't hardwire cpu_has_dsp{2} to 0
+
+The ath79 code supports various SoCs which are using either a 24Kc
+or a 74Kc core. The 74Kc core has DSP support, so don't hardwire
+the values to zero.
+
+Commit 00dc5ce2a653a332190aa29b2e1f3bceaa7d5b8d (MIPS: ath79: don't
+hardcode the unavailability of the DSP ASE) has fixed this already,
+but that change got reverted by 475032564ed96c94c085e3e7a90e07d150a7cec9
+(MIPS: Hardwire detection of DSP ASE Rev 2 for systems, as required.)
+
+Reported-by: Helmut Schaa <helmut.schaa@googlemail.com>
+Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
+---
+ arch/mips/include/asm/mach-ath79/cpu-feature-overrides.h | 2 --
+ 1 file changed, 2 deletions(-)
+
+--- a/arch/mips/include/asm/mach-ath79/cpu-feature-overrides.h
++++ b/arch/mips/include/asm/mach-ath79/cpu-feature-overrides.h
+@@ -42,8 +42,6 @@
+ #define cpu_has_mips64r1 0
+ #define cpu_has_mips64r2 0
+
+-#define cpu_has_dsp 0
+-#define cpu_has_dsp2 0
+ #define cpu_has_mipsmt 0
+
+ #define cpu_has_64bits 0
diff --git a/target/linux/ar71xx/patches-3.10/220-add_cpu_feature_overrides.patch b/target/linux/ar71xx/patches-3.10/220-add_cpu_feature_overrides.patch
index 05406f2f00..d925f92624 100644
--- a/target/linux/ar71xx/patches-3.10/220-add_cpu_feature_overrides.patch
+++ b/target/linux/ar71xx/patches-3.10/220-add_cpu_feature_overrides.patch
@@ -8,15 +8,15 @@
#define cpu_has_mips32r1 1
#define cpu_has_mips32r2 1
-@@ -45,6 +46,7 @@
- #define cpu_has_dsp 0
- #define cpu_has_dsp2 0
+@@ -43,6 +44,7 @@
+ #define cpu_has_mips64r2 0
+
#define cpu_has_mipsmt 0
+#define cpu_has_userlocal 0
#define cpu_has_64bits 0
#define cpu_has_64bit_zero_reg 0
-@@ -53,5 +55,9 @@
+@@ -51,5 +53,9 @@
#define cpu_dcache_line_size() 32
#define cpu_icache_line_size() 32