Kconfig 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. config MN10300
  2. def_bool y
  3. select HAVE_OPROFILE
  4. select HAVE_ARCH_TRACEHOOK
  5. config AM33
  6. def_bool y
  7. config MMU
  8. def_bool y
  9. config HIGHMEM
  10. def_bool n
  11. config NUMA
  12. def_bool n
  13. config UID16
  14. def_bool y
  15. config RWSEM_GENERIC_SPINLOCK
  16. def_bool y
  17. config RWSEM_XCHGADD_ALGORITHM
  18. bool
  19. config GENERIC_HARDIRQS_NO__DO_IRQ
  20. def_bool y
  21. config GENERIC_CALIBRATE_DELAY
  22. def_bool y
  23. config GENERIC_CMOS_UPDATE
  24. def_bool y
  25. config GENERIC_FIND_NEXT_BIT
  26. def_bool y
  27. config GENERIC_HWEIGHT
  28. def_bool y
  29. config GENERIC_TIME
  30. def_bool y
  31. config GENERIC_BUG
  32. def_bool y
  33. config QUICKLIST
  34. def_bool y
  35. config ARCH_HAS_ILOG2_U32
  36. def_bool y
  37. # Use the generic interrupt handling code in kernel/irq/
  38. config GENERIC_HARDIRQS
  39. def_bool y
  40. config HOTPLUG_CPU
  41. def_bool n
  42. config HZ
  43. int
  44. default 1000
  45. source "init/Kconfig"
  46. source "kernel/Kconfig.freezer"
  47. menu "Matsushita MN10300 system setup"
  48. choice
  49. prompt "Unit type"
  50. default MN10300_UNIT_ASB2303
  51. help
  52. This option specifies board for which the kernel will be
  53. compiled. It affects the external peripherals catered for.
  54. config MN10300_UNIT_ASB2303
  55. bool "ASB2303"
  56. config MN10300_UNIT_ASB2305
  57. bool "ASB2305"
  58. endchoice
  59. choice
  60. prompt "Processor support"
  61. default MN10300_PROC_MN103E010
  62. help
  63. This option specifies the processor for which the kernel will be
  64. compiled. It affects the on-chip peripherals catered for.
  65. config MN10300_PROC_MN103E010
  66. bool "MN103E010"
  67. depends on MN10300_UNIT_ASB2303 || MN10300_UNIT_ASB2305
  68. select MN10300_PROC_HAS_TTYSM0
  69. select MN10300_PROC_HAS_TTYSM1
  70. select MN10300_PROC_HAS_TTYSM2
  71. endchoice
  72. choice
  73. prompt "Processor core support"
  74. default MN10300_CPU_AM33V2
  75. help
  76. This option specifies the processor core for which the kernel will be
  77. compiled. It affects the instruction set used.
  78. config MN10300_CPU_AM33V2
  79. bool "AM33v2"
  80. endchoice
  81. config FPU
  82. bool "FPU present"
  83. default y
  84. depends on MN10300_PROC_MN103E010
  85. choice
  86. prompt "CPU Caching mode"
  87. default MN10300_CACHE_WBACK
  88. help
  89. This option determines the caching mode for the kernel.
  90. Write-Back caching mode involves the all reads and writes causing
  91. the affected cacheline to be read into the cache first before being
  92. operated upon. Memory is not then updated by a write until the cache
  93. is filled and a cacheline needs to be displaced from the cache to
  94. make room. Only at that point is it written back.
  95. Write-Through caching only fetches cachelines from memory on a
  96. read. Writes always get written directly to memory. If the affected
  97. cacheline is also in cache, it will be updated too.
  98. The final option is to turn of caching entirely.
  99. config MN10300_CACHE_WBACK
  100. bool "Write-Back"
  101. config MN10300_CACHE_WTHRU
  102. bool "Write-Through"
  103. config MN10300_CACHE_DISABLED
  104. bool "Disabled"
  105. endchoice
  106. menu "Memory layout options"
  107. config KERNEL_RAM_BASE_ADDRESS
  108. hex "Base address of kernel RAM"
  109. default "0x90000000"
  110. config INTERRUPT_VECTOR_BASE
  111. hex "Base address of vector table"
  112. default "0x90000000"
  113. help
  114. The base address of the vector table will be programmed into
  115. the TBR register. It must be on 16MiB address boundary.
  116. config KERNEL_TEXT_ADDRESS
  117. hex "Base address of kernel"
  118. default "0x90001000"
  119. config KERNEL_ZIMAGE_BASE_ADDRESS
  120. hex "Base address of compressed vmlinux image"
  121. default "0x90700000"
  122. endmenu
  123. config PREEMPT
  124. bool "Preemptible Kernel"
  125. help
  126. This option reduces the latency of the kernel when reacting to
  127. real-time or interactive events by allowing a low priority process to
  128. be preempted even if it is in kernel mode executing a system call.
  129. This allows applications to run more reliably even when the system is
  130. under load.
  131. Say Y here if you are building a kernel for a desktop, embedded
  132. or real-time system. Say N if you are unsure.
  133. config MN10300_CURRENT_IN_E2
  134. bool "Hold current task address in E2 register"
  135. default y
  136. help
  137. This option removes the E2/R2 register from the set available to gcc
  138. for normal use and instead uses it to store the address of the
  139. current process's task_struct whilst in the kernel.
  140. This means the kernel doesn't need to calculate the address each time
  141. "current" is used (take SP, AND with mask and dereference pointer
  142. just to get the address), and instead can just use E2+offset
  143. addressing each time.
  144. This has no effect on userspace.
  145. config MN10300_USING_JTAG
  146. bool "Using JTAG to debug kernel"
  147. default y
  148. help
  149. This options indicates that JTAG will be used to debug the kernel. It
  150. suppresses the use of certain hardware debugging features, such as
  151. single-stepping, which are taken over completely by the JTAG unit.
  152. config MN10300_RTC
  153. bool "Using MN10300 RTC"
  154. depends on MN10300_PROC_MN103E010
  155. default n
  156. help
  157. This option enables support for the RTC, thus enabling time to be
  158. tracked, even when system is powered down. This is available on-chip
  159. on the MN103E010.
  160. config MN10300_WD_TIMER
  161. bool "Using MN10300 watchdog timer"
  162. default y
  163. help
  164. This options indicates that the watchdog timer will be used.
  165. config PCI
  166. bool "Use PCI"
  167. depends on MN10300_UNIT_ASB2305
  168. default y
  169. help
  170. Some systems (such as the ASB2305) have PCI onboard. If you have one
  171. of these boards and you wish to use the PCI facilities, say Y here.
  172. The PCI-HOWTO, available from
  173. <http://www.tldp.org/docs.html#howto>, contains valuable
  174. information about which PCI hardware does work under Linux and which
  175. doesn't.
  176. source "drivers/pci/Kconfig"
  177. source "drivers/pcmcia/Kconfig"
  178. menu "MN10300 internal serial options"
  179. config MN10300_PROC_HAS_TTYSM0
  180. bool
  181. default n
  182. config MN10300_PROC_HAS_TTYSM1
  183. bool
  184. default n
  185. config MN10300_PROC_HAS_TTYSM2
  186. bool
  187. default n
  188. config MN10300_TTYSM
  189. bool "Support for ttySM serial ports"
  190. depends on MN10300
  191. default y
  192. select SERIAL_CORE
  193. help
  194. This option enables support for the on-chip serial ports that the
  195. MN10300 has available.
  196. config MN10300_TTYSM_CONSOLE
  197. bool "Support for console on ttySM serial ports"
  198. depends on MN10300_TTYSM
  199. select SERIAL_CORE_CONSOLE
  200. help
  201. This option enables support for a console on the on-chip serial ports
  202. that the MN10300 has available.
  203. #
  204. # /dev/ttySM0
  205. #
  206. config MN10300_TTYSM0
  207. bool "Enable SIF0 (/dev/ttySM0)"
  208. depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM0
  209. help
  210. Enable access to SIF0 through /dev/ttySM0 or gdb-stub
  211. choice
  212. prompt "Select the timer to supply the clock for SIF0"
  213. default MN10300_TTYSM0_TIMER8
  214. depends on MN10300_TTYSM0
  215. config MN10300_TTYSM0_TIMER8
  216. bool "Use timer 8 (16-bit)"
  217. config MN10300_TTYSM0_TIMER2
  218. bool "Use timer 2 (8-bit)"
  219. endchoice
  220. #
  221. # /dev/ttySM1
  222. #
  223. config MN10300_TTYSM1
  224. bool "Enable SIF1 (/dev/ttySM1)"
  225. depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM1
  226. help
  227. Enable access to SIF1 through /dev/ttySM1 or gdb-stub
  228. choice
  229. prompt "Select the timer to supply the clock for SIF1"
  230. default MN10300_TTYSM0_TIMER9
  231. depends on MN10300_TTYSM1
  232. config MN10300_TTYSM1_TIMER9
  233. bool "Use timer 9 (16-bit)"
  234. config MN10300_TTYSM1_TIMER3
  235. bool "Use timer 3 (8-bit)"
  236. endchoice
  237. #
  238. # /dev/ttySM2
  239. #
  240. config MN10300_TTYSM2
  241. bool "Enable SIF2 (/dev/ttySM2)"
  242. depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM2
  243. help
  244. Enable access to SIF2 through /dev/ttySM2 or gdb-stub
  245. choice
  246. prompt "Select the timer to supply the clock for SIF2"
  247. default MN10300_TTYSM0_TIMER10
  248. depends on MN10300_TTYSM2
  249. config MN10300_TTYSM2_TIMER10
  250. bool "Use timer 10 (16-bit)"
  251. endchoice
  252. config MN10300_TTYSM2_CTS
  253. bool "Enable the use of the CTS line /dev/ttySM2"
  254. depends on MN10300_TTYSM2
  255. endmenu
  256. source "mm/Kconfig"
  257. menu "Power management options"
  258. source kernel/power/Kconfig
  259. endmenu
  260. endmenu
  261. menu "Executable formats"
  262. source "fs/Kconfig.binfmt"
  263. endmenu
  264. source "net/Kconfig"
  265. source "drivers/Kconfig"
  266. source "fs/Kconfig"
  267. source "arch/mn10300/Kconfig.debug"
  268. source "security/Kconfig"
  269. source "crypto/Kconfig"
  270. source "lib/Kconfig"