Skip to content

Commit 0e152d8

Browse files
committed
m68k: reorganize Kconfig options to improve mmu/non-mmu selections
The current mmu and non-mmu Kconfig files can be merged to form a more general selection of options. The current break up of options is due to the simple brute force merge from the m68k and m68knommu arch directories. Many of the options are not at all specific to having the MMU enabled or not. They are actually associated with a particular CPU type or platform type. Ultimately as we support all processors with the MMU disabled we need many of these options to be selectable without the MMU option enabled. And likewise some of the ColdFire processors, which currently are only supported with the MMU disabled, do have MMU hardware, and will need to have options selected on CPU type, not MMU disabled. This patch removes the old mmu and non-mmu Kconfigs and instead breaks up the configuration into four areas: cpu, machine, bus, devices. The Kconfig.cpu lists all the options associated with selecting a CPU, and includes options specific to each CPU type as well. Kconfig.machine lists all options associated with selecting a machine type. Almost always the machines selectable is restricted by the chosen CPU. Kconfig.bus contains options associated with selecting bus types on the various machine types. That includes PCI bus, PCMCIA bus, etc. Kconfig.devices contains options for drivers and driver associated options. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
1 parent 89127ed commit 0e152d8

6 files changed

Lines changed: 888 additions & 916 deletions

File tree

‎arch/m68k/Kconfig‎

Lines changed: 42 additions & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ config ARCH_HAS_ILOG2_U32
2121
config ARCH_HAS_ILOG2_U64
2222
bool
2323

24+
config GENERIC_CLOCKEVENTS
25+
bool
26+
27+
config GENERIC_CMOS_UPDATE
28+
def_bool !MMU
29+
30+
config GENERIC_GPIO
31+
bool
32+
2433
config GENERIC_HWEIGHT
2534
bool
2635
default y
@@ -29,10 +38,16 @@ config GENERIC_CALIBRATE_DELAY
2938
bool
3039
default y
3140

41+
config GENERIC_IOMAP
42+
def_bool MMU
43+
3244
config TIME_LOW_RES
3345
bool
3446
default y
3547

48+
config ARCH_USES_GETTIMEOFFSET
49+
def_bool MMU
50+
3651
config NO_IOPORT
3752
def_bool y
3853

@@ -62,13 +77,31 @@ config MMU
6277
Select if you want MMU-based virtualised addressing space
6378
support by paged memory management. If unsure, say 'Y'.
6479

65-
menu "Platform dependent setup"
80+
config MMU_MOTOROLA
81+
bool
82+
83+
config MMU_SUN3
84+
bool
85+
depends on MMU && !MMU_MOTOROLA
86+
87+
menu "Platform setup"
88+
89+
source arch/m68k/Kconfig.cpu
90+
91+
source arch/m68k/Kconfig.machine
92+
93+
source arch/m68k/Kconfig.bus
94+
95+
endmenu
96+
97+
menu "Kernel Features"
6698

67-
if MMU
68-
source arch/m68k/Kconfig.mmu
99+
if COLDFIRE
100+
source "kernel/Kconfig.preempt"
69101
endif
70-
if !MMU
71-
source arch/m68k/Kconfig.nommu
102+
103+
if !MMU || COLDFIRE
104+
source "kernel/time/Kconfig"
72105
endif
73106

74107
source "mm/Kconfig"
@@ -85,9 +118,9 @@ if !MMU
85118
menu "Power management options"
86119

87120
config PM
88-
bool "Power Management support"
89-
help
90-
Support processor power management modes
121+
bool "Power Management support"
122+
help
123+
Support processor power management modes
91124

92125
endmenu
93126
endif
@@ -96,151 +129,7 @@ source "net/Kconfig"
96129

97130
source "drivers/Kconfig"
98131

99-
if MMU
100-
101-
menu "Character devices"
102-
103-
config ATARI_MFPSER
104-
tristate "Atari MFP serial support"
105-
depends on ATARI
106-
---help---
107-
If you like to use the MFP serial ports ("Modem1", "Serial1") under
108-
Linux, say Y. The driver equally supports all kinds of MFP serial
109-
ports and automatically detects whether Serial1 is available.
110-
111-
To compile this driver as a module, choose M here.
112-
113-
Note for Falcon users: You also have an MFP port, it's just not
114-
wired to the outside... But you could use the port under Linux.
115-
116-
config ATARI_MIDI
117-
tristate "Atari MIDI serial support"
118-
depends on ATARI
119-
help
120-
If you want to use your Atari's MIDI port in Linux, say Y.
121-
122-
To compile this driver as a module, choose M here.
123-
124-
config ATARI_DSP56K
125-
tristate "Atari DSP56k support (EXPERIMENTAL)"
126-
depends on ATARI && EXPERIMENTAL
127-
help
128-
If you want to be able to use the DSP56001 in Falcons, say Y. This
129-
driver is still experimental, and if you don't know what it is, or
130-
if you don't have this processor, just say N.
131-
132-
To compile this driver as a module, choose M here.
133-
134-
config AMIGA_BUILTIN_SERIAL
135-
tristate "Amiga builtin serial support"
136-
depends on AMIGA
137-
help
138-
If you want to use your Amiga's built-in serial port in Linux,
139-
answer Y.
140-
141-
To compile this driver as a module, choose M here.
142-
143-
config MULTIFACE_III_TTY
144-
tristate "Multiface Card III serial support"
145-
depends on AMIGA
146-
help
147-
If you want to use a Multiface III card's serial port in Linux,
148-
answer Y.
149-
150-
To compile this driver as a module, choose M here.
151-
152-
config GVPIOEXT
153-
tristate "GVP IO-Extender support"
154-
depends on PARPORT=n && ZORRO
155-
help
156-
If you want to use a GVP IO-Extender serial card in Linux, say Y.
157-
Otherwise, say N.
158-
159-
config GVPIOEXT_LP
160-
tristate "GVP IO-Extender parallel printer support"
161-
depends on GVPIOEXT
162-
help
163-
Say Y to enable driving a printer from the parallel port on your
164-
GVP IO-Extender card, N otherwise.
165-
166-
config GVPIOEXT_PLIP
167-
tristate "GVP IO-Extender PLIP support"
168-
depends on GVPIOEXT
169-
help
170-
Say Y to enable doing IP over the parallel port on your GVP
171-
IO-Extender card, N otherwise.
172-
173-
config MAC_HID
174-
bool
175-
depends on INPUT_ADBHID
176-
default y
177-
178-
config HPDCA
179-
tristate "HP DCA serial support"
180-
depends on DIO && SERIAL_8250
181-
help
182-
If you want to use the internal "DCA" serial ports on an HP300
183-
machine, say Y here.
184-
185-
config HPAPCI
186-
tristate "HP APCI serial support"
187-
depends on HP300 && SERIAL_8250 && EXPERIMENTAL
188-
help
189-
If you want to use the internal "APCI" serial ports on an HP400
190-
machine, say Y here.
191-
192-
config MVME147_SCC
193-
bool "SCC support for MVME147 serial ports"
194-
depends on MVME147 && BROKEN
195-
help
196-
This is the driver for the serial ports on the Motorola MVME147
197-
boards. Everyone using one of these boards should say Y here.
198-
199-
config MVME162_SCC
200-
bool "SCC support for MVME162 serial ports"
201-
depends on MVME16x && BROKEN
202-
help
203-
This is the driver for the serial ports on the Motorola MVME162 and
204-
172 boards. Everyone using one of these boards should say Y here.
205-
206-
config BVME6000_SCC
207-
bool "SCC support for BVME6000 serial ports"
208-
depends on BVME6000 && BROKEN
209-
help
210-
This is the driver for the serial ports on the BVME4000 and BVME6000
211-
boards from BVM Ltd. Everyone using one of these boards should say
212-
Y here.
213-
214-
config DN_SERIAL
215-
bool "Support for DN serial port (dummy)"
216-
depends on APOLLO
217-
218-
config SERIAL_CONSOLE
219-
bool "Support for serial port console"
220-
depends on (AMIGA || ATARI || SUN3 || SUN3X || VME || APOLLO) && (ATARI_MFPSER=y || ATARI_MIDI=y || AMIGA_BUILTIN_SERIAL=y || GVPIOEXT=y || MULTIFACE_III_TTY=y || SERIAL=y || MVME147_SCC || SERIAL167 || MVME162_SCC || BVME6000_SCC || DN_SERIAL)
221-
---help---
222-
If you say Y here, it will be possible to use a serial port as the
223-
system console (the system console is the device which receives all
224-
kernel messages and warnings and which allows logins in single user
225-
mode). This could be useful if some terminal or printer is connected
226-
to that serial port.
227-
228-
Even if you say Y here, the currently visible virtual console
229-
(/dev/tty0) will still be used as the system console by default, but
230-
you can alter that using a kernel command line option such as
231-
"console=ttyS1". (Try "man bootparam" or see the documentation of
232-
your boot loader (lilo or loadlin) about how to pass options to the
233-
kernel at boot time.)
234-
235-
If you don't have a VGA card installed and you say Y here, the
236-
kernel will automatically use the first serial line, /dev/ttyS0, as
237-
system console.
238-
239-
If unsure, say N.
240-
241-
endmenu
242-
243-
endif
132+
source "arch/m68k/Kconfig.devices"
244133

245134
source "fs/Kconfig"
246135

‎arch/m68k/Kconfig.bus‎

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
if MMU
2+
3+
comment "Bus Support"
4+
5+
config NUBUS
6+
bool
7+
depends on MAC
8+
default y
9+
10+
config ZORRO
11+
bool "Amiga Zorro (AutoConfig) bus support"
12+
depends on AMIGA
13+
help
14+
This enables support for the Zorro bus in the Amiga. If you have
15+
expansion cards in your Amiga that conform to the Amiga
16+
AutoConfig(tm) specification, say Y, otherwise N. Note that even
17+
expansion cards that do not fit in the Zorro slots but fit in e.g.
18+
the CPU slot may fall in this category, so you have to say Y to let
19+
Linux use these.
20+
21+
config AMIGA_PCMCIA
22+
bool "Amiga 1200/600 PCMCIA support (EXPERIMENTAL)"
23+
depends on AMIGA && EXPERIMENTAL
24+
help
25+
Include support in the kernel for pcmcia on Amiga 1200 and Amiga
26+
600. If you intend to use pcmcia cards say Y; otherwise say N.
27+
28+
config ISA
29+
bool
30+
depends on Q40 || AMIGA_PCMCIA
31+
default y
32+
help
33+
Find out whether you have ISA slots on your motherboard. ISA is the
34+
name of a bus system, i.e. the way the CPU talks to the other stuff
35+
inside your box. Other bus systems are PCI, EISA, MicroChannel
36+
(MCA) or VESA. ISA is an older system, now being displaced by PCI;
37+
newer boards don't support it. If you have ISA, say Y, otherwise N.
38+
39+
config GENERIC_ISA_DMA
40+
def_bool ISA
41+
42+
source "drivers/pci/Kconfig"
43+
44+
source "drivers/zorro/Kconfig"
45+
46+
endif
47+
48+
if !MMU
49+
50+
config ISA_DMA_API
51+
def_bool !M5272
52+
53+
source "drivers/pcmcia/Kconfig"
54+
55+
endif

0 commit comments

Comments
 (0)