]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MIPS: cpu-type: guard BMIPS variants with SYS_HAS_CPU_BMIPS*
authorJonas Gorski <jogo@openwrt.org>
Wed, 18 Dec 2013 13:12:10 +0000 (14:12 +0100)
committerJohn Crispin <blogic@openwrt.org>
Tue, 14 Jan 2014 11:48:24 +0000 (12:48 +0100)
BMIPS32 and  BMIPS3300 also need to be available for MIPS32R1, as
bcm47xx might not select BMIPS.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Acked-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6245/

arch/mips/include/asm/cpu-type.h

index 4a402cc60c03e4d3aded6429d93df4fed4f0dc46..71d36ff999328138b205b6047cbb1344b2c4f98b 100644 (file)
@@ -27,10 +27,7 @@ static inline int __pure __get_cpu_type(const int cpu_type)
 #ifdef CONFIG_SYS_HAS_CPU_MIPS32_R1
        case CPU_4KC:
        case CPU_ALCHEMY:
-       case CPU_BMIPS3300:
-       case CPU_BMIPS4350:
        case CPU_PR4450:
-       case CPU_BMIPS32:
        case CPU_JZRISC:
 #endif
 
@@ -163,6 +160,16 @@ static inline int __pure __get_cpu_type(const int cpu_type)
        case CPU_CAVIUM_OCTEON2:
 #endif
 
+#if defined(CONFIG_SYS_HAS_CPU_BMIPS32_3300) || \
+       defined (CONFIG_SYS_HAS_CPU_MIPS32_R1)
+       case CPU_BMIPS32:
+       case CPU_BMIPS3300:
+#endif
+
+#ifdef CONFIG_SYS_HAS_CPU_BMIPS4350
+       case CPU_BMIPS4350:
+#endif
+
 #ifdef CONFIG_SYS_HAS_CPU_BMIPS4380
        case CPU_BMIPS4380:
 #endif