Skip to content

Commit cd741b6

Browse files
Shinya Kuribayashiralfbaechle
authored andcommitted
MIPS: EMMA: Kconfig reorganization
- Move EMMA related stuff into arch/mips/emma/Kconfig - Create CONFIG_SOC_EMMA* to handle more EMMA SoCs effectively - Rename CONFIG_MARKEINS into CONFIG_NEC_MARKEINS Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 542c102 commit cd741b6

8 files changed

Lines changed: 45 additions & 24 deletions

File tree

‎arch/mips/Kconfig‎

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -238,20 +238,8 @@ config MIPS_SIM
238238
This option enables support for MIPS Technologies MIPSsim software
239239
emulator.
240240

241-
config MARKEINS
242-
bool "NEC EMMA2RH Mark-eins"
243-
select CEVT_R4K
244-
select CSRC_R4K
245-
select DMA_NONCOHERENT
246-
select HW_HAS_PCI
247-
select IRQ_CPU
248-
select SWAP_IO_SPACE
249-
select SYS_SUPPORTS_32BIT_KERNEL
250-
select SYS_SUPPORTS_BIG_ENDIAN
251-
select SYS_SUPPORTS_LITTLE_ENDIAN
252-
select SYS_HAS_CPU_R5500
253-
help
254-
This enables support for the NEC Mark-eins board with VR5500 CPU.
241+
config MACH_EMMA
242+
bool "NEC EMMA series based machines"
255243

256244
config MACH_VR41XX
257245
bool "NEC VR4100 series based machines"
@@ -613,6 +601,7 @@ endchoice
613601

614602
source "arch/mips/alchemy/Kconfig"
615603
source "arch/mips/basler/excite/Kconfig"
604+
source "arch/mips/emma/Kconfig"
616605
source "arch/mips/jazz/Kconfig"
617606
source "arch/mips/lasat/Kconfig"
618607
source "arch/mips/pmc-sierra/Kconfig"

‎arch/mips/Makefile‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,14 +409,17 @@ load-$(CONFIG_PNX8550_JBS) += 0xffffffff80060000
409409
libs-$(CONFIG_PNX8550_STB810) += arch/mips/nxp/pnx8550/stb810/
410410
load-$(CONFIG_PNX8550_STB810) += 0xffffffff80060000
411411

412+
#
412413
# NEC EMMA2RH boards
413414
#
414-
core-$(CONFIG_EMMA2RH) += arch/mips/emma2rh/common/
415-
cflags-$(CONFIG_EMMA2RH) += -I$(srctree)/arch/mips/include/asm/mach-emma2rh
415+
core-$(CONFIG_SOC_EMMA2RH) += arch/mips/emma2rh/common/
416+
cflags-$(CONFIG_SOC_EMMA2RH) += -I$(srctree)/arch/mips/include/asm/mach-emma2rh
416417

418+
#
417419
# NEC EMMA2RH Mark-eins
418-
core-$(CONFIG_MARKEINS) += arch/mips/emma2rh/markeins/
419-
load-$(CONFIG_MARKEINS) += 0xffffffff88100000
420+
#
421+
core-$(CONFIG_NEC_MARKEINS) += arch/mips/emma2rh/markeins/
422+
load-$(CONFIG_NEC_MARKEINS) += 0xffffffff88100000
420423

421424
#
422425
# SGI IP22 (Indy/Indigo2)

‎arch/mips/emma/Kconfig‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
choice
2+
prompt "Machine type"
3+
depends on MACH_EMMA
4+
default NEC_MARKEINS
5+
6+
config NEC_MARKEINS
7+
bool "NEC EMMA2RH Mark-eins board"
8+
select SOC_EMMA2RH
9+
select HW_HAS_PCI
10+
help
11+
This enables support for the NEC Electronics Mark-eins boards.
12+
13+
endchoice
14+
15+
config SOC_EMMA2RH
16+
bool
17+
select SOC_EMMA
18+
select SYS_HAS_CPU_R5500
19+
select SYS_SUPPORTS_32BIT_KERNEL
20+
select SYS_SUPPORTS_64BIT_KERNEL
21+
22+
config SOC_EMMA
23+
bool
24+
select CEVT_R4K
25+
select CSRC_R4K
26+
select DMA_NONCOHERENT
27+
select IRQ_CPU
28+
select SWAP_IO_SPACE
29+
select SYS_SUPPORTS_BIG_ENDIAN

‎arch/mips/emma2rh/common/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
# (at your option) any later version.
1111
#
1212

13-
obj-$(CONFIG_MARKEINS) += irq.o irq_emma2rh.o prom.o
13+
obj-$(CONFIG_NEC_MARKEINS) += irq.o irq_emma2rh.o prom.o

‎arch/mips/emma2rh/common/prom.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
const char *get_system_type(void)
3535
{
36-
#if defined(CONFIG_MARKEINS)
36+
#ifdef CONFIG_NEC_MARKEINS
3737
return "NEC EMMA2RH Mark-eins";
3838
#else
3939
#error Unknown NEC board
@@ -60,7 +60,7 @@ void __init prom_init(void)
6060
strcat(arcs_cmdline, " ");
6161
}
6262

63-
#if defined(CONFIG_MARKEINS)
63+
#ifdef CONFIG_NEC_MARKEINS
6464
add_memory_region(0, EMMA2RH_RAM_SIZE, BOOT_MEM_RAM);
6565
#else
6666
#error Unknown NEC board

‎arch/mips/emma2rh/markeins/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
# (at your option) any later version.
1111
#
1212

13-
obj-$(CONFIG_MARKEINS) += irq.o irq_markeins.o setup.o led.o platform.o
13+
obj-$(CONFIG_NEC_MARKEINS) += irq.o irq_markeins.o setup.o led.o platform.o

‎arch/mips/include/asm/emma2rh/emma2rh.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ static inline u8 emma2rh_in8(u32 offset)
324324
/*
325325
* include the board dependent part
326326
*/
327-
#if defined(CONFIG_MARKEINS)
327+
#ifdef CONFIG_NEC_MARKEINS
328328
#include <asm/emma2rh/markeins.h>
329329
#else
330330
#error "Unknown EMMA2RH board!"

‎arch/mips/pci/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ obj-$(CONFIG_MIPS_MSC) += ops-msc.o
1313
obj-$(CONFIG_MIPS_NILE4) += ops-nile4.o
1414
obj-$(CONFIG_SOC_TX3927) += ops-tx3927.o
1515
obj-$(CONFIG_PCI_VR41XX) += ops-vr41xx.o pci-vr41xx.o
16-
obj-$(CONFIG_MARKEINS) += ops-emma2rh.o pci-emma2rh.o fixup-emma2rh.o
16+
obj-$(CONFIG_NEC_MARKEINS) += ops-emma2rh.o pci-emma2rh.o fixup-emma2rh.o
1717
obj-$(CONFIG_PCI_TX4927) += ops-tx4927.o
1818
obj-$(CONFIG_BCM47XX) += pci-bcm47xx.o
1919

0 commit comments

Comments
 (0)