Skip to content

Commit 930beb5

Browse files
ffainelliralfbaechle
authored andcommitted
MIPS: introduce MIPS_L1_CACHE_SHIFT_<N>
In order to avoid keeping an ever growing list of chips which need to select a specific MIPS_L1_CACHE_SHIFT value introduce multiple internal and non-exposed Kconfig symbols for the various MIPS_L1_CACHE_SHIFT values out there and update the relevant Kconfig symbols to select them. Signed-off-by: Florian Fainelli <[email protected]>
1 parent dc4d7b3 commit 930beb5

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

arch/mips/Kconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ config MACH_DECSTATION
182182
select SYS_SUPPORTS_128HZ
183183
select SYS_SUPPORTS_256HZ
184184
select SYS_SUPPORTS_1024HZ
185+
select MIPS_L1_CACHE_SHIFT_4
185186
help
186187
This enables support for DEC's MIPS based workstations. For details
187188
see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
@@ -467,6 +468,7 @@ config SGI_IP22
467468
select SYS_SUPPORTS_32BIT_KERNEL
468469
select SYS_SUPPORTS_64BIT_KERNEL
469470
select SYS_SUPPORTS_BIG_ENDIAN
471+
select MIPS_L1_CACHE_SHIFT_7
470472
help
471473
This are the SGI Indy, Challenge S and Indigo2, as well as certain
472474
OEM variants like the Tandem CMN B006S. To compile a Linux kernel
@@ -487,6 +489,7 @@ config SGI_IP27
487489
select SYS_SUPPORTS_BIG_ENDIAN
488490
select SYS_SUPPORTS_NUMA
489491
select SYS_SUPPORTS_SMP
492+
select MIPS_L1_CACHE_SHIFT_7
490493
help
491494
This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
492495
workstations. To compile a Linux kernel that runs on these, say Y
@@ -693,6 +696,7 @@ config MIKROTIK_RB532
693696
select SWAP_IO_SPACE
694697
select BOOT_RAW
695698
select ARCH_REQUIRE_GPIOLIB
699+
select MIPS_L1_CACHE_SHIFT_4
696700
help
697701
Support the Mikrotik(tm) RouterBoard 532 series,
698702
based on the IDT RC32434 SoC.
@@ -1092,6 +1096,18 @@ config FW_SNIPROM
10921096
config BOOT_ELF32
10931097
bool
10941098

1099+
config MIPS_L1_CACHE_SHIFT_4
1100+
bool
1101+
1102+
config MIPS_L1_CACHE_SHIFT_5
1103+
bool
1104+
1105+
config MIPS_L1_CACHE_SHIFT_6
1106+
bool
1107+
1108+
config MIPS_L1_CACHE_SHIFT_7
1109+
bool
1110+
10951111
config MIPS_L1_CACHE_SHIFT
10961112
int
10971113
default "4" if MACH_DECSTATION || MIKROTIK_RB532 || PMC_MSP4200_EVAL || SOC_RT288X
@@ -1376,6 +1392,8 @@ config CPU_CAVIUM_OCTEON
13761392
select LIBFDT
13771393
select USE_OF
13781394
select USB_EHCI_BIG_ENDIAN_MMIO
1395+
select SYS_HAS_DMA_OPS
1396+
select MIPS_L1_CACHE_SHIFT_7
13791397
help
13801398
The Cavium Octeon processor is a highly integrated chip containing
13811399
many ethernet hardware widgets for networking tasks. The processor
@@ -1798,6 +1816,7 @@ config IP22_CPU_SCACHE
17981816
config MIPS_CPU_SCACHE
17991817
bool
18001818
select BOARD_SCACHE
1819+
select MIPS_L1_CACHE_SHIFT_6
18011820

18021821
config R5000_CPU_SCACHE
18031822
bool

arch/mips/pmcs-msp71xx/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ config PMC_MSP4200_EVAL
66
bool "PMC-Sierra MSP4200 Eval Board"
77
select IRQ_MSP_SLP
88
select HW_HAS_PCI
9+
select MIPS_L1_CACHE_SHIFT_4
910

1011
config PMC_MSP4200_GW
1112
bool "PMC-Sierra MSP4200 VoIP Gateway"

arch/mips/ralink/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ choice
1515

1616
config SOC_RT288X
1717
bool "RT288x"
18+
select MIPS_L1_CACHE_SHIFT_4
1819

1920
config SOC_RT305X
2021
bool "RT305x"

0 commit comments

Comments
 (0)