1 From 81d6f5e024884ce904b7bd36fec60291d751df48 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jogo@openwrt.org>
3 Date: Thu, 27 Jun 2013 23:57:20 +0200
4 Subject: [PATCH V2 04/13] MIPS: BMIPS: merge CPU options into one option
6 Instead of treating each flavour as an exclusive CPU to select, make
7 BMIPS the only option and let SYS_HAS_CPU_BMIPS* decide for which
8 flavours to include support.
10 Run tested on BMIPS3300 and BMIPS4350, only build tested for BMIPS4380
13 Signed-off-by: Jonas Gorski <jogo@openwrt.org>
16 * Let the SYS_HAS_CPU_BMIPS* symbols select SYS_HAS_CPU_BMIPS instead of
17 requiring users to select it
19 arch/mips/Kconfig | 80 +++++++++++++++++++++++++++----------------------------
20 1 file changed, 39 insertions(+), 41 deletions(-)
22 --- a/arch/mips/Kconfig
23 +++ b/arch/mips/Kconfig
24 @@ -1396,41 +1396,21 @@ config CPU_CAVIUM_OCTEON
25 can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets.
26 Full details can be found at http://www.caviumnetworks.com.
30 - depends on SYS_HAS_CPU_BMIPS3300
33 - Broadcom BMIPS3300 processors.
37 - depends on SYS_HAS_CPU_BMIPS4350
39 - select SYS_SUPPORTS_SMP
40 - select SYS_SUPPORTS_HOTPLUG_CPU
42 - Broadcom BMIPS4350 ("VIPER") processors.
46 - depends on SYS_HAS_CPU_BMIPS4380
48 - select SYS_SUPPORTS_SMP
49 - select SYS_SUPPORTS_HOTPLUG_CPU
51 - Broadcom BMIPS4380 processors.
55 - depends on SYS_HAS_CPU_BMIPS5000
57 - select CPU_SUPPORTS_HIGHMEM
58 - select MIPS_CPU_SCACHE
59 - select SYS_SUPPORTS_SMP
60 - select SYS_SUPPORTS_HOTPLUG_CPU
62 + bool "Broadcom BMIPS"
63 + depends on SYS_HAS_CPU_BMIPS
65 + select CPU_BMIPS3300 if SYS_HAS_CPU_BMIPS3300
66 + select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350
67 + select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380
68 + select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000
69 + select CPU_SUPPORTS_32BIT_KERNEL
70 + select DMA_NONCOHERENT
72 + select SWAP_IO_SPACE
73 + select WEAK_ORDERING
75 - Broadcom BMIPS5000 processors.
76 + Support for BMIPS3300/4350/4380 and BMIPS5000 processors.
79 bool "Netlogic XLR SoC"
80 @@ -1513,14 +1493,25 @@ config CPU_LOONGSON1
81 select CPU_SUPPORTS_32BIT_KERNEL
82 select CPU_SUPPORTS_HIGHMEM
88 - select CPU_SUPPORTS_32BIT_KERNEL
89 - select DMA_NONCOHERENT
91 - select SWAP_IO_SPACE
92 - select WEAK_ORDERING
96 + select SYS_SUPPORTS_SMP
97 + select SYS_SUPPORTS_HOTPLUG_CPU
101 + select SYS_SUPPORTS_SMP
102 + select SYS_SUPPORTS_HOTPLUG_CPU
104 +config CPU_BMIPS5000
106 + select CPU_SUPPORTS_HIGHMEM
107 + select MIPS_CPU_SCACHE
108 + select SYS_SUPPORTS_SMP
109 + select SYS_SUPPORTS_HOTPLUG_CPU
111 config SYS_HAS_CPU_LOONGSON2E
113 @@ -1594,17 +1585,24 @@ config SYS_HAS_CPU_SB1
114 config SYS_HAS_CPU_CAVIUM_OCTEON
117 +config SYS_HAS_CPU_BMIPS
120 config SYS_HAS_CPU_BMIPS3300
122 + select SYS_HAS_CPU_BMIPS
124 config SYS_HAS_CPU_BMIPS4350
126 + select SYS_HAS_CPU_BMIPS
128 config SYS_HAS_CPU_BMIPS4380
130 + select SYS_HAS_CPU_BMIPS
132 config SYS_HAS_CPU_BMIPS5000
134 + select SYS_HAS_CPU_BMIPS
136 config SYS_HAS_CPU_XLR