@@ -48,7 +48,7 @@ config GENERIC_CALIBRATE_DELAY
4848 def_bool y
4949
5050config GENERIC_CMOS_UPDATE
51- def_bool y
51+ def_bool n
5252
5353config GENERIC_FIND_NEXT_BIT
5454 def_bool y
@@ -72,10 +72,6 @@ config GENERIC_HARDIRQS
7272config HOTPLUG_CPU
7373 def_bool n
7474
75- config HZ
76- int
77- default 1000
78-
7975mainmenu "Matsushita MN10300/AM33 Kernel Configuration"
8076
8177source "init/Kconfig"
@@ -98,6 +94,9 @@ config MN10300_UNIT_ASB2303
9894config MN10300_UNIT_ASB2305
9995 bool "ASB2305"
10096
97+ config MN10300_UNIT_ASB2364
98+ bool "ASB2364"
99+
101100endchoice
102101
103102choice
@@ -115,17 +114,13 @@ config MN10300_PROC_MN103E010
115114 select MN10300_PROC_HAS_TTYSM1
116115 select MN10300_PROC_HAS_TTYSM2
117116
118- endchoice
119-
120- choice
121- prompt "Processor core support"
122- default MN10300_CPU_AM33V2
123- help
124- This option specifies the processor core for which the kernel will be
125- compiled. It affects the instruction set used.
126-
127- config MN10300_CPU_AM33V2
128- bool "AM33v2"
117+ config MN10300_PROC_MN2WS0050
118+ bool "MN2WS0050"
119+ depends on MN10300_UNIT_ASB2364
120+ select AM34_2
121+ select MN10300_PROC_HAS_TTYSM0
122+ select MN10300_PROC_HAS_TTYSM1
123+ select MN10300_PROC_HAS_TTYSM2
129124
130125endchoice
131126
@@ -138,7 +133,7 @@ config MN10300_HAS_ATOMIC_OPS_UNIT
138133config FPU
139134 bool "FPU present"
140135 default y
141- depends on MN10300_PROC_MN103E010
136+ depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
142137
143138config LAZY_SAVE_FPU
144139 bool "Save FPU state lazily"
@@ -179,24 +174,55 @@ config KERNEL_TEXT_ADDRESS
179174
180175config KERNEL_ZIMAGE_BASE_ADDRESS
181176 hex "Base address of compressed vmlinux image"
182- default "0x90700000"
177+ default "0x50700000"
178+
179+ config BOOT_STACK_OFFSET
180+ hex
181+ default "0xF00" if SMP
182+ default "0xFF0" if !SMP
183183
184+ config BOOT_STACK_SIZE
185+ hex
186+ depends on SMP
187+ default "0x100"
184188endmenu
185189
186- config PREEMPT
187- bool "Preemptible Kernel"
188- help
189- This option reduces the latency of the kernel when reacting to
190- real-time or interactive events by allowing a low priority process to
191- be preempted even if it is in kernel mode executing a system call.
192- This allows applications to run more reliably even when the system is
193- under load.
190+ config SMP
191+ bool "Symmetric multi-processing support"
192+ default y
193+ depends on MN10300_PROC_MN2WS0038 || MN10300_PROC_MN2WS0050
194+ ---help---
195+ This enables support for systems with more than one CPU. If you have
196+ a system with only one CPU, like most personal computers, say N. If
197+ you have a system with more than one CPU, say Y.
198+
199+ If you say N here, the kernel will run on single and multiprocessor
200+ machines, but will use only one CPU of a multiprocessor machine. If
201+ you say Y here, the kernel will run on many, but not all,
202+ singleprocessor machines. On a singleprocessor machine, the kernel
203+ will run faster if you say N here.
204+
205+ See also <file:Documentation/i386/IO-APIC.txt>,
206+ <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at
207+ <http://www.tldp.org/docs.html#howto>.
194208
195- Say Y here if you are building a kernel for a desktop, embedded
196- or real-time system. Say N if you are unsure.
209+ If you don't know what to do here, say N.
210+
211+ config NR_CPUS
212+ int
213+ depends on SMP
214+ default "2"
215+
216+ config USE_GENERIC_SMP_HELPERS
217+ bool
218+ depends on SMP
219+ default y
220+
221+ source "kernel/Kconfig.preempt"
197222
198223config MN10300_CURRENT_IN_E2
199224 bool "Hold current task address in E2 register"
225+ depends on !SMP
200226 default y
201227 help
202228 This option removes the E2/R2 register from the set available to gcc
@@ -218,12 +244,14 @@ config MN10300_USING_JTAG
218244 suppresses the use of certain hardware debugging features, such as
219245 single-stepping, which are taken over completely by the JTAG unit.
220246
247+ source "kernel/Kconfig.hz"
248+
221249config MN10300_RTC
222250 bool "Using MN10300 RTC"
223- depends on MN10300_PROC_MN103E010
251+ depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0050
252+ select GENERIC_CMOS_UPDATE
224253 default n
225254 help
226-
227255 This option enables support for the RTC, thus enabling time to be
228256 tracked, even when system is powered down. This is available on-chip
229257 on the MN103E010.
@@ -315,14 +343,23 @@ config MN10300_TTYSM1
315343
316344choice
317345 prompt "Select the timer to supply the clock for SIF1"
318- default MN10300_TTYSM0_TIMER9
346+ default MN10300_TTYSM1_TIMER12 \
347+ if !(AM33_2 || AM33_3)
348+ default MN10300_TTYSM1_TIMER9 \
349+ if AM33_2 || AM33_3
319350 depends on MN10300_TTYSM1
320351
352+ config MN10300_TTYSM1_TIMER12
353+ bool "Use timer 12 (16-bit)"
354+ depends on !(AM33_2 || AM33_3)
355+
321356config MN10300_TTYSM1_TIMER9
322357 bool "Use timer 9 (16-bit)"
358+ depends on AM33_2 || AM33_3
323359
324360config MN10300_TTYSM1_TIMER3
325361 bool "Use timer 3 (8-bit)"
362+ depends on AM33_2 || AM33_3
326363
327364endchoice
328365
@@ -337,17 +374,33 @@ config MN10300_TTYSM2
337374
338375choice
339376 prompt "Select the timer to supply the clock for SIF2"
340- default MN10300_TTYSM0_TIMER10
377+ default MN10300_TTYSM2_TIMER3 \
378+ if !(AM33_2 || AM33_3)
379+ default MN10300_TTYSM2_TIMER10 \
380+ if AM33_2 || AM33_3
341381 depends on MN10300_TTYSM2
342382
383+ config MN10300_TTYSM2_TIMER9
384+ bool "Use timer 9 (16-bit)"
385+ depends on !(AM33_2 || AM33_3)
386+
387+ config MN10300_TTYSM2_TIMER1
388+ bool "Use timer 1 (8-bit)"
389+ depends on !(AM33_2 || AM33_3)
390+
391+ config MN10300_TTYSM2_TIMER3
392+ bool "Use timer 3 (8-bit)"
393+ depends on !(AM33_2 || AM33_3)
394+
343395config MN10300_TTYSM2_TIMER10
344396 bool "Use timer 10 (16-bit)"
397+ depends on AM33_2 || AM33_3
345398
346399endchoice
347400
348401config MN10300_TTYSM2_CTS
349402 bool "Enable the use of the CTS line /dev/ttySM2"
350- depends on MN10300_TTYSM2
403+ depends on MN10300_TTYSM2 && AM33_2
351404
352405endmenu
353406
0 commit comments