diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2014-11-13 08:32:03 -0500 |
---|---|---|
committer | Markos Chandras <markos.chandras@imgtec.com> | 2015-02-17 10:37:20 -0500 |
commit | a7e07b1ae550303c6611f4d3b054a4f9c2bc8a9e (patch) | |
tree | 94722e7eefa771f02592749ca425c7243ad8d3e5 | |
parent | 934c79231c1b3a88ed1ef8f1473fb26849ae501c (diff) |
MIPS: asm: spram: Add new symbol for MIPS scratch pad storage
MIPS R6, just like MIPS R2, have scratch pad storage, so add a new
symbol which is selected by MIPS R2 and R6.
Link: http://www.linux-mips.org/archives/linux-mips/2015-01/msg00389.html
Cc: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
-rw-r--r-- | arch/mips/Kconfig | 5 | ||||
-rw-r--r-- | arch/mips/include/asm/spram.h | 4 | ||||
-rw-r--r-- | arch/mips/kernel/Makefile | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 0a8508b4803d..883eb3aacedf 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -1150,6 +1150,9 @@ config SOC_PNX8335 | |||
1150 | bool | 1150 | bool |
1151 | select SOC_PNX833X | 1151 | select SOC_PNX833X |
1152 | 1152 | ||
1153 | config MIPS_SPRAM | ||
1154 | bool | ||
1155 | |||
1153 | config SWAP_IO_SPACE | 1156 | config SWAP_IO_SPACE |
1154 | bool | 1157 | bool |
1155 | 1158 | ||
@@ -1821,10 +1824,12 @@ config CPU_MIPSR1 | |||
1821 | config CPU_MIPSR2 | 1824 | config CPU_MIPSR2 |
1822 | bool | 1825 | bool |
1823 | default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON | 1826 | default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON |
1827 | select MIPS_SPRAM | ||
1824 | 1828 | ||
1825 | config CPU_MIPSR6 | 1829 | config CPU_MIPSR6 |
1826 | bool | 1830 | bool |
1827 | default y if CPU_MIPS32_R6 || CPU_MIPS64_R6 | 1831 | default y if CPU_MIPS32_R6 || CPU_MIPS64_R6 |
1832 | select MIPS_SPRAM | ||
1828 | 1833 | ||
1829 | config EVA | 1834 | config EVA |
1830 | bool | 1835 | bool |
diff --git a/arch/mips/include/asm/spram.h b/arch/mips/include/asm/spram.h index 0b89006e4907..0f90d88e464d 100644 --- a/arch/mips/include/asm/spram.h +++ b/arch/mips/include/asm/spram.h | |||
@@ -1,10 +1,10 @@ | |||
1 | #ifndef _MIPS_SPRAM_H | 1 | #ifndef _MIPS_SPRAM_H |
2 | #define _MIPS_SPRAM_H | 2 | #define _MIPS_SPRAM_H |
3 | 3 | ||
4 | #ifdef CONFIG_CPU_MIPSR2 | 4 | #if defined(CONFIG_MIPS_SPRAM) |
5 | extern __init void spram_config(void); | 5 | extern __init void spram_config(void); |
6 | #else | 6 | #else |
7 | static inline void spram_config(void) { }; | 7 | static inline void spram_config(void) { }; |
8 | #endif /* CONFIG_CPU_MIPSR2 */ | 8 | #endif /* CONFIG_MIPS_SPRAM */ |
9 | 9 | ||
10 | #endif /* _MIPS_SPRAM_H */ | 10 | #endif /* _MIPS_SPRAM_H */ |
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile index 92987d1bbe5f..de1e65366f02 100644 --- a/arch/mips/kernel/Makefile +++ b/arch/mips/kernel/Makefile | |||
@@ -52,7 +52,7 @@ obj-$(CONFIG_MIPS_MT_SMP) += smp-mt.o | |||
52 | obj-$(CONFIG_MIPS_CMP) += smp-cmp.o | 52 | obj-$(CONFIG_MIPS_CMP) += smp-cmp.o |
53 | obj-$(CONFIG_MIPS_CPS) += smp-cps.o cps-vec.o | 53 | obj-$(CONFIG_MIPS_CPS) += smp-cps.o cps-vec.o |
54 | obj-$(CONFIG_MIPS_GIC_IPI) += smp-gic.o | 54 | obj-$(CONFIG_MIPS_GIC_IPI) += smp-gic.o |
55 | obj-$(CONFIG_CPU_MIPSR2) += spram.o | 55 | obj-$(CONFIG_MIPS_SPRAM) += spram.o |
56 | 56 | ||
57 | obj-$(CONFIG_MIPS_VPE_LOADER) += vpe.o | 57 | obj-$(CONFIG_MIPS_VPE_LOADER) += vpe.o |
58 | obj-$(CONFIG_MIPS_VPE_LOADER_CMP) += vpe-cmp.o | 58 | obj-$(CONFIG_MIPS_VPE_LOADER_CMP) += vpe-cmp.o |