Kconfig 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
  1. # SPDX-License-Identifier: GPL-2.0
  2. config XTENSA
  3. def_bool y
  4. select ARCH_32BIT_OFF_T
  5. select ARCH_HAS_CPU_CACHE_ALIASING
  6. select ARCH_HAS_BINFMT_FLAT if !MMU
  7. select ARCH_HAS_CURRENT_STACK_POINTER
  8. select ARCH_HAS_DEBUG_VM_PGTABLE
  9. select ARCH_HAS_DMA_PREP_COHERENT if MMU
  10. select ARCH_HAS_GCOV_PROFILE_ALL
  11. select ARCH_HAS_KCOV
  12. select ARCH_HAS_SYNC_DMA_FOR_CPU if MMU
  13. select ARCH_HAS_SYNC_DMA_FOR_DEVICE if MMU
  14. select ARCH_HAS_DMA_SET_UNCACHED if MMU
  15. select ARCH_HAS_STRNCPY_FROM_USER if !KASAN
  16. select ARCH_HAS_STRNLEN_USER
  17. select ARCH_NEED_CMPXCHG_1_EMU
  18. select ARCH_USE_MEMTEST
  19. select ARCH_USE_QUEUED_RWLOCKS
  20. select ARCH_USE_QUEUED_SPINLOCKS
  21. select ARCH_WANT_IPC_PARSE_VERSION
  22. select BUILDTIME_TABLE_SORT
  23. select GENERIC_BUILTIN_DTB
  24. select CLONE_BACKWARDS
  25. select COMMON_CLK
  26. select DMA_NONCOHERENT_MMAP if MMU
  27. select GENERIC_ATOMIC64
  28. select GENERIC_IRQ_SHOW
  29. select GENERIC_LIB_CMPDI2
  30. select GENERIC_LIB_MULDI3
  31. select GENERIC_LIB_UCMPDI2
  32. select GENERIC_PCI_IOMAP
  33. select GENERIC_SCHED_CLOCK
  34. select GENERIC_IOREMAP if MMU
  35. select HAVE_ARCH_AUDITSYSCALL
  36. select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL
  37. select HAVE_ARCH_KASAN if MMU && !XIP_KERNEL
  38. select HAVE_ARCH_KCSAN
  39. select HAVE_ARCH_SECCOMP_FILTER
  40. select HAVE_ARCH_TRACEHOOK
  41. select HAVE_ASM_MODVERSIONS
  42. select HAVE_CONTEXT_TRACKING_USER
  43. select HAVE_DEBUG_KMEMLEAK
  44. select HAVE_DMA_CONTIGUOUS
  45. select HAVE_EXIT_THREAD
  46. select HAVE_FUNCTION_TRACER
  47. select HAVE_GCC_PLUGINS if GCC_VERSION >= 120000
  48. select HAVE_HW_BREAKPOINT if PERF_EVENTS
  49. select HAVE_IRQ_TIME_ACCOUNTING
  50. select HAVE_PAGE_SIZE_4KB
  51. select HAVE_PCI
  52. select HAVE_PERF_EVENTS
  53. select HAVE_STACKPROTECTOR
  54. select HAVE_SYSCALL_TRACEPOINTS
  55. select HAVE_VIRT_CPU_ACCOUNTING_GEN
  56. select IRQ_DOMAIN
  57. select LOCK_MM_AND_FIND_VMA
  58. select MODULES_USE_ELF_RELA
  59. select PERF_USE_VMALLOC
  60. select TRACE_IRQFLAGS_SUPPORT
  61. help
  62. Xtensa processors are 32-bit RISC machines designed by Tensilica
  63. primarily for embedded systems. These processors are both
  64. configurable and extensible. The Linux port to the Xtensa
  65. architecture supports all processor configurations and extensions,
  66. with reasonable minimum requirements. The Xtensa Linux project has
  67. a home page at <http://www.linux-xtensa.org/>.
  68. config GENERIC_HWEIGHT
  69. def_bool y
  70. config ARCH_HAS_ILOG2_U32
  71. def_bool n
  72. config ARCH_HAS_ILOG2_U64
  73. def_bool n
  74. config ARCH_MTD_XIP
  75. def_bool y
  76. config NO_IOPORT_MAP
  77. def_bool n
  78. config HZ
  79. int
  80. default 100
  81. config LOCKDEP_SUPPORT
  82. def_bool y
  83. config STACKTRACE_SUPPORT
  84. def_bool y
  85. config MMU
  86. def_bool n
  87. select PFAULT
  88. config HAVE_XTENSA_GPIO32
  89. def_bool n
  90. config KASAN_SHADOW_OFFSET
  91. hex
  92. default 0x6e400000
  93. config CPU_BIG_ENDIAN
  94. def_bool $(success,test "$(shell,echo __XTENSA_EB__ | $(CC) -E -P -)" = 1)
  95. config CPU_LITTLE_ENDIAN
  96. def_bool !CPU_BIG_ENDIAN
  97. config CC_HAVE_CALL0_ABI
  98. def_bool $(success,test "$(shell,echo __XTENSA_CALL0_ABI__ | $(CC) -mabi=call0 -E -P - 2>/dev/null)" = 1)
  99. menu "Processor type and features"
  100. choice
  101. prompt "Xtensa Processor Configuration"
  102. default XTENSA_VARIANT_FSF
  103. config XTENSA_VARIANT_FSF
  104. bool "fsf - default (not generic) configuration"
  105. select MMU
  106. config XTENSA_VARIANT_DC232B
  107. bool "dc232b - Diamond 232L Standard Core Rev.B (LE)"
  108. select MMU
  109. select HAVE_XTENSA_GPIO32
  110. help
  111. This variant refers to Tensilica's Diamond 232L Standard core Rev.B (LE).
  112. config XTENSA_VARIANT_DC233C
  113. bool "dc233c - Diamond 233L Standard Core Rev.C (LE)"
  114. select MMU
  115. select HAVE_XTENSA_GPIO32
  116. help
  117. This variant refers to Tensilica's Diamond 233L Standard core Rev.C (LE).
  118. config XTENSA_VARIANT_CUSTOM
  119. bool "Custom Xtensa processor configuration"
  120. select HAVE_XTENSA_GPIO32
  121. help
  122. Select this variant to use a custom Xtensa processor configuration.
  123. You will be prompted for a processor variant CORENAME.
  124. endchoice
  125. config XTENSA_VARIANT_CUSTOM_NAME
  126. string "Xtensa Processor Custom Core Variant Name"
  127. depends on XTENSA_VARIANT_CUSTOM
  128. help
  129. Provide the name of a custom Xtensa processor variant.
  130. This CORENAME selects arch/xtensa/variants/CORENAME.
  131. Don't forget you have to select MMU if you have one.
  132. config XTENSA_VARIANT_NAME
  133. string
  134. default "dc232b" if XTENSA_VARIANT_DC232B
  135. default "dc233c" if XTENSA_VARIANT_DC233C
  136. default "fsf" if XTENSA_VARIANT_FSF
  137. default XTENSA_VARIANT_CUSTOM_NAME if XTENSA_VARIANT_CUSTOM
  138. config XTENSA_VARIANT_MMU
  139. bool "Core variant has a Full MMU (TLB, Pages, Protection, etc)"
  140. depends on XTENSA_VARIANT_CUSTOM
  141. default y
  142. select MMU
  143. help
  144. Build a Conventional Kernel with full MMU support,
  145. ie: it supports a TLB with auto-loading, page protection.
  146. config XTENSA_VARIANT_HAVE_PERF_EVENTS
  147. bool "Core variant has Performance Monitor Module"
  148. depends on XTENSA_VARIANT_CUSTOM
  149. default n
  150. help
  151. Enable if core variant has Performance Monitor Module with
  152. External Registers Interface.
  153. If unsure, say N.
  154. config XTENSA_FAKE_NMI
  155. bool "Treat PMM IRQ as NMI"
  156. depends on XTENSA_VARIANT_HAVE_PERF_EVENTS
  157. default n
  158. help
  159. If PMM IRQ is the only IRQ at EXCM level it is safe to
  160. treat it as NMI, which improves accuracy of profiling.
  161. If there are other interrupts at or above PMM IRQ priority level
  162. but not above the EXCM level, PMM IRQ still may be treated as NMI,
  163. but only if these IRQs are not used. There will be a build warning
  164. saying that this is not safe, and a bugcheck if one of these IRQs
  165. actually fire.
  166. If unsure, say N.
  167. config PFAULT
  168. bool "Handle protection faults" if EXPERT && !MMU
  169. default y
  170. help
  171. Handle protection faults. MMU configurations must enable it.
  172. noMMU configurations may disable it if used memory map never
  173. generates protection faults or faults are always fatal.
  174. If unsure, say Y.
  175. config XTENSA_UNALIGNED_USER
  176. bool "Unaligned memory access in user space"
  177. help
  178. The Xtensa architecture currently does not handle unaligned
  179. memory accesses in hardware but through an exception handler.
  180. Per default, unaligned memory accesses are disabled in user space.
  181. Say Y here to enable unaligned memory access in user space.
  182. config XTENSA_LOAD_STORE
  183. bool "Load/store exception handler for memory only readable with l32"
  184. help
  185. The Xtensa architecture only allows reading memory attached to its
  186. instruction bus with l32r and l32i instructions, all other
  187. instructions raise an exception with the LoadStoreErrorCause code.
  188. This makes it hard to use some configurations, e.g. store string
  189. literals in FLASH memory attached to the instruction bus.
  190. Say Y here to enable exception handler that allows transparent
  191. byte and 2-byte access to memory attached to instruction bus.
  192. config HAVE_SMP
  193. bool "System Supports SMP (MX)"
  194. depends on XTENSA_VARIANT_CUSTOM
  195. select XTENSA_MX
  196. help
  197. This option is used to indicate that the system-on-a-chip (SOC)
  198. supports Multiprocessing. Multiprocessor support implemented above
  199. the CPU core definition and currently needs to be selected manually.
  200. Multiprocessor support is implemented with external cache and
  201. interrupt controllers.
  202. The MX interrupt distributer adds Interprocessor Interrupts
  203. and causes the IRQ numbers to be increased by 4 for devices
  204. like the open cores ethernet driver and the serial interface.
  205. You still have to select "Enable SMP" to enable SMP on this SOC.
  206. config SMP
  207. bool "Enable Symmetric multi-processing support"
  208. depends on HAVE_SMP
  209. select GENERIC_SMP_IDLE_THREAD
  210. help
  211. Enabled SMP Software; allows more than one CPU/CORE
  212. to be activated during startup.
  213. config NR_CPUS
  214. depends on SMP
  215. int "Maximum number of CPUs (2-32)"
  216. range 2 32
  217. default "4"
  218. config HOTPLUG_CPU
  219. bool "Enable CPU hotplug support"
  220. depends on SMP
  221. help
  222. Say Y here to allow turning CPUs off and on. CPUs can be
  223. controlled through /sys/devices/system/cpu.
  224. Say N if you want to disable CPU hotplug.
  225. config SECONDARY_RESET_VECTOR
  226. bool "Secondary cores use alternative reset vector"
  227. default y
  228. depends on HAVE_SMP
  229. help
  230. Secondary cores may be configured to use alternative reset vector,
  231. or all cores may use primary reset vector.
  232. Say Y here to supply handler for the alternative reset location.
  233. config FAST_SYSCALL_XTENSA
  234. bool "Enable fast atomic syscalls"
  235. default n
  236. help
  237. fast_syscall_xtensa is a syscall that can make atomic operations
  238. on UP kernel when processor has no s32c1i support.
  239. This syscall is deprecated. It may have issues when called with
  240. invalid arguments. It is provided only for backwards compatibility.
  241. Only enable it if your userspace software requires it.
  242. If unsure, say N.
  243. config FAST_SYSCALL_SPILL_REGISTERS
  244. bool "Enable spill registers syscall"
  245. default n
  246. help
  247. fast_syscall_spill_registers is a syscall that spills all active
  248. register windows of a calling userspace task onto its stack.
  249. This syscall is deprecated. It may have issues when called with
  250. invalid arguments. It is provided only for backwards compatibility.
  251. Only enable it if your userspace software requires it.
  252. If unsure, say N.
  253. choice
  254. prompt "Kernel ABI"
  255. default KERNEL_ABI_DEFAULT
  256. help
  257. Select ABI for the kernel code. This ABI is independent of the
  258. supported userspace ABI and any combination of the
  259. kernel/userspace ABI is possible and should work.
  260. In case both kernel and userspace support only call0 ABI
  261. all register windows support code will be omitted from the
  262. build.
  263. If unsure, choose the default ABI.
  264. config KERNEL_ABI_DEFAULT
  265. bool "Default ABI"
  266. help
  267. Select this option to compile kernel code with the default ABI
  268. selected for the toolchain.
  269. Normally cores with windowed registers option use windowed ABI and
  270. cores without it use call0 ABI.
  271. config KERNEL_ABI_CALL0
  272. bool "Call0 ABI" if CC_HAVE_CALL0_ABI
  273. help
  274. Select this option to compile kernel code with call0 ABI even with
  275. toolchain that defaults to windowed ABI.
  276. When this option is not selected the default toolchain ABI will
  277. be used for the kernel code.
  278. endchoice
  279. config USER_ABI_CALL0
  280. bool
  281. choice
  282. prompt "Userspace ABI"
  283. default USER_ABI_DEFAULT
  284. help
  285. Select supported userspace ABI.
  286. If unsure, choose the default ABI.
  287. config USER_ABI_DEFAULT
  288. bool "Default ABI only"
  289. help
  290. Assume default userspace ABI. For XEA2 cores it is windowed ABI.
  291. call0 ABI binaries may be run on such kernel, but signal delivery
  292. will not work correctly for them.
  293. config USER_ABI_CALL0_ONLY
  294. bool "Call0 ABI only"
  295. select USER_ABI_CALL0
  296. help
  297. Select this option to support only call0 ABI in userspace.
  298. Windowed ABI binaries will crash with a segfault caused by
  299. an illegal instruction exception on the first 'entry' opcode.
  300. Choose this option if you're planning to run only user code
  301. built with call0 ABI.
  302. config USER_ABI_CALL0_PROBE
  303. bool "Support both windowed and call0 ABI by probing"
  304. select USER_ABI_CALL0
  305. help
  306. Select this option to support both windowed and call0 userspace
  307. ABIs. When enabled all processes are started with PS.WOE disabled
  308. and a fast user exception handler for an illegal instruction is
  309. used to turn on PS.WOE bit on the first 'entry' opcode executed by
  310. the userspace.
  311. This option should be enabled for the kernel that must support
  312. both call0 and windowed ABIs in userspace at the same time.
  313. Note that Xtensa ISA does not guarantee that entry opcode will
  314. raise an illegal instruction exception on cores with XEA2 when
  315. PS.WOE is disabled, check whether the target core supports it.
  316. endchoice
  317. endmenu
  318. config XTENSA_CALIBRATE_CCOUNT
  319. def_bool n
  320. help
  321. On some platforms (XT2000, for example), the CPU clock rate can
  322. vary. The frequency can be determined, however, by measuring
  323. against a well known, fixed frequency, such as an UART oscillator.
  324. config SERIAL_CONSOLE
  325. def_bool n
  326. config PLATFORM_HAVE_XIP
  327. def_bool n
  328. menu "Platform options"
  329. choice
  330. prompt "Xtensa System Type"
  331. default XTENSA_PLATFORM_ISS
  332. config XTENSA_PLATFORM_ISS
  333. bool "ISS"
  334. select XTENSA_CALIBRATE_CCOUNT
  335. select SERIAL_CONSOLE
  336. help
  337. ISS is an acronym for Tensilica's Instruction Set Simulator.
  338. config XTENSA_PLATFORM_XT2000
  339. bool "XT2000"
  340. help
  341. XT2000 is the name of Tensilica's feature-rich emulation platform.
  342. This hardware is capable of running a full Linux distribution.
  343. config XTENSA_PLATFORM_XTFPGA
  344. bool "XTFPGA"
  345. select ETHOC if ETHERNET
  346. select PLATFORM_WANT_DEFAULT_MEM if !MMU
  347. select SERIAL_CONSOLE
  348. select XTENSA_CALIBRATE_CCOUNT
  349. select PLATFORM_HAVE_XIP
  350. help
  351. XTFPGA is the name of Tensilica board family (LX60, LX110, LX200, ML605).
  352. This hardware is capable of running a full Linux distribution.
  353. endchoice
  354. config PLATFORM_NR_IRQS
  355. int
  356. default 3 if XTENSA_PLATFORM_XT2000
  357. default 0
  358. config XTENSA_CPU_CLOCK
  359. int "CPU clock rate [MHz]"
  360. depends on !XTENSA_CALIBRATE_CCOUNT
  361. default 16
  362. config GENERIC_CALIBRATE_DELAY
  363. bool "Auto calibration of the BogoMIPS value"
  364. help
  365. The BogoMIPS value can easily be derived from the CPU frequency.
  366. config CMDLINE_BOOL
  367. bool "Default bootloader kernel arguments"
  368. config CMDLINE
  369. string "Initial kernel command string"
  370. depends on CMDLINE_BOOL
  371. default "console=ttyS0,38400 root=/dev/ram"
  372. help
  373. On some architectures (EBSA110 and CATS), there is currently no way
  374. for the boot loader to pass arguments to the kernel. For these
  375. architectures, you should supply some command-line options at build
  376. time by entering them here. As a minimum, you should specify the
  377. memory size and the root device (e.g., mem=64M root=/dev/nfs).
  378. config USE_OF
  379. bool "Flattened Device Tree support"
  380. select OF
  381. select OF_EARLY_FLATTREE
  382. help
  383. Include support for flattened device tree machine descriptions.
  384. config BUILTIN_DTB_NAME
  385. string "DTB to build into the kernel image"
  386. depends on OF
  387. config PARSE_BOOTPARAM
  388. bool "Parse bootparam block"
  389. default y
  390. help
  391. Parse parameters passed to the kernel from the bootloader. It may
  392. be disabled if the kernel is known to run without the bootloader.
  393. If unsure, say Y.
  394. choice
  395. prompt "Semihosting interface"
  396. default XTENSA_SIMCALL_ISS
  397. depends on XTENSA_PLATFORM_ISS
  398. help
  399. Choose semihosting interface that will be used for serial port,
  400. block device and networking.
  401. config XTENSA_SIMCALL_ISS
  402. bool "simcall"
  403. help
  404. Use simcall instruction. simcall is only available on simulators,
  405. it does nothing on hardware.
  406. config XTENSA_SIMCALL_GDBIO
  407. bool "GDBIO"
  408. help
  409. Use break instruction. It is available on real hardware when GDB
  410. is attached to it via JTAG.
  411. endchoice
  412. config BLK_DEV_SIMDISK
  413. tristate "Host file-based simulated block device support"
  414. default n
  415. depends on XTENSA_PLATFORM_ISS && BLOCK
  416. help
  417. Create block devices that map to files in the host file system.
  418. Device binding to host file may be changed at runtime via proc
  419. interface provided the device is not in use.
  420. config BLK_DEV_SIMDISK_COUNT
  421. int "Number of host file-based simulated block devices"
  422. range 1 10
  423. depends on BLK_DEV_SIMDISK
  424. default 2
  425. help
  426. This is the default minimal number of created block devices.
  427. Kernel/module parameter 'simdisk_count' may be used to change this
  428. value at runtime. More file names (but no more than 10) may be
  429. specified as parameters, simdisk_count grows accordingly.
  430. config SIMDISK0_FILENAME
  431. string "Host filename for the first simulated device"
  432. depends on BLK_DEV_SIMDISK = y
  433. default ""
  434. help
  435. Attach a first simdisk to a host file. Conventionally, this file
  436. contains a root file system.
  437. config SIMDISK1_FILENAME
  438. string "Host filename for the second simulated device"
  439. depends on BLK_DEV_SIMDISK = y && BLK_DEV_SIMDISK_COUNT != 1
  440. default ""
  441. help
  442. Another simulated disk in a host file for a buildroot-independent
  443. storage.
  444. config XTFPGA_LCD
  445. bool "Enable XTFPGA LCD driver"
  446. depends on XTENSA_PLATFORM_XTFPGA
  447. default n
  448. help
  449. There's a 2x16 LCD on most of XTFPGA boards, kernel may output
  450. progress messages there during bootup/shutdown. It may be useful
  451. during board bringup.
  452. If unsure, say N.
  453. config XTFPGA_LCD_BASE_ADDR
  454. hex "XTFPGA LCD base address"
  455. depends on XTFPGA_LCD
  456. default "0x0d0c0000"
  457. help
  458. Base address of the LCD controller inside KIO region.
  459. Different boards from XTFPGA family have LCD controller at different
  460. addresses. Please consult prototyping user guide for your board for
  461. the correct address. Wrong address here may lead to hardware lockup.
  462. config XTFPGA_LCD_8BIT_ACCESS
  463. bool "Use 8-bit access to XTFPGA LCD"
  464. depends on XTFPGA_LCD
  465. default n
  466. help
  467. LCD may be connected with 4- or 8-bit interface, 8-bit access may
  468. only be used with 8-bit interface. Please consult prototyping user
  469. guide for your board for the correct interface width.
  470. comment "Kernel memory layout"
  471. config INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX
  472. bool "Initialize Xtensa MMU inside the Linux kernel code"
  473. depends on !XTENSA_VARIANT_FSF && !XTENSA_VARIANT_DC232B
  474. default y if XTENSA_VARIANT_DC233C || XTENSA_VARIANT_CUSTOM
  475. help
  476. Earlier version initialized the MMU in the exception vector
  477. before jumping to _startup in head.S and had an advantage that
  478. it was possible to place a software breakpoint at 'reset' and
  479. then enter your normal kernel breakpoints once the MMU was mapped
  480. to the kernel mappings (0XC0000000).
  481. This unfortunately won't work for U-Boot and likely also won't
  482. work for using KEXEC to have a hot kernel ready for doing a
  483. KDUMP.
  484. So now the MMU is initialized in head.S but it's necessary to
  485. use hardware breakpoints (gdb 'hbreak' cmd) to break at _startup.
  486. xt-gdb can't place a Software Breakpoint in the 0XD region prior
  487. to mapping the MMU and after mapping even if the area of low memory
  488. was mapped gdb wouldn't remove the breakpoint on hitting it as the
  489. PC wouldn't match. Since Hardware Breakpoints are recommended for
  490. Linux configurations it seems reasonable to just assume they exist
  491. and leave this older mechanism for unfortunate souls that choose
  492. not to follow Tensilica's recommendation.
  493. Selecting this will cause U-Boot to set the KERNEL Load and Entry
  494. address at 0x00003000 instead of the mapped std of 0xD0003000.
  495. If in doubt, say Y.
  496. config XIP_KERNEL
  497. bool "Kernel Execute-In-Place from ROM"
  498. depends on PLATFORM_HAVE_XIP
  499. help
  500. Execute-In-Place allows the kernel to run from non-volatile storage
  501. directly addressable by the CPU, such as NOR flash. This saves RAM
  502. space since the text section of the kernel is not loaded from flash
  503. to RAM. Read-write sections, such as the data section and stack,
  504. are still copied to RAM. The XIP kernel is not compressed since
  505. it has to run directly from flash, so it will take more space to
  506. store it. The flash address used to link the kernel object files,
  507. and for storing it, is configuration dependent. Therefore, if you
  508. say Y here, you must know the proper physical address where to
  509. store the kernel image depending on your own flash memory usage.
  510. Also note that the make target becomes "make xipImage" rather than
  511. "make Image" or "make uImage". The final kernel binary to put in
  512. ROM memory will be arch/xtensa/boot/xipImage.
  513. If unsure, say N.
  514. config MEMMAP_CACHEATTR
  515. hex "Cache attributes for the memory address space"
  516. depends on !MMU
  517. default 0x22222222
  518. help
  519. These cache attributes are set up for noMMU systems. Each hex digit
  520. specifies cache attributes for the corresponding 512MB memory
  521. region: bits 0..3 -- for addresses 0x00000000..0x1fffffff,
  522. bits 4..7 -- for addresses 0x20000000..0x3fffffff, and so on.
  523. Cache attribute values are specific for the MMU type.
  524. For region protection MMUs:
  525. 1: WT cached,
  526. 2: cache bypass,
  527. 4: WB cached,
  528. f: illegal.
  529. For full MMU:
  530. bit 0: executable,
  531. bit 1: writable,
  532. bits 2..3:
  533. 0: cache bypass,
  534. 1: WB cache,
  535. 2: WT cache,
  536. 3: special (c and e are illegal, f is reserved).
  537. For MPU:
  538. 0: illegal,
  539. 1: WB cache,
  540. 2: WB, no-write-allocate cache,
  541. 3: WT cache,
  542. 4: cache bypass.
  543. config KSEG_PADDR
  544. hex "Physical address of the KSEG mapping"
  545. depends on INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX && MMU
  546. default 0x00000000
  547. help
  548. This is the physical address where KSEG is mapped. Please refer to
  549. the chosen KSEG layout help for the required address alignment.
  550. Unpacked kernel image (including vectors) must be located completely
  551. within KSEG.
  552. Physical memory below this address is not available to linux.
  553. If unsure, leave the default value here.
  554. config KERNEL_VIRTUAL_ADDRESS
  555. hex "Kernel virtual address"
  556. depends on MMU && XIP_KERNEL
  557. default 0xd0003000
  558. help
  559. This is the virtual address where the XIP kernel is mapped.
  560. XIP kernel may be mapped into KSEG or KIO region, virtual address
  561. provided here must match kernel load address provided in
  562. KERNEL_LOAD_ADDRESS.
  563. config KERNEL_LOAD_ADDRESS
  564. hex "Kernel load address"
  565. default 0x60003000 if !MMU
  566. default 0x00003000 if MMU && INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX
  567. default 0xd0003000 if MMU && !INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX
  568. help
  569. This is the address where the kernel is loaded.
  570. It is virtual address for MMUv2 configurations and physical address
  571. for all other configurations.
  572. If unsure, leave the default value here.
  573. choice
  574. prompt "Relocatable vectors location"
  575. default XTENSA_VECTORS_IN_TEXT
  576. help
  577. Choose whether relocatable vectors are merged into the kernel .text
  578. or placed separately at runtime. This option does not affect
  579. configurations without VECBASE register where vectors are always
  580. placed at their hardware-defined locations.
  581. config XTENSA_VECTORS_IN_TEXT
  582. bool "Merge relocatable vectors into kernel text"
  583. depends on !MTD_XIP
  584. help
  585. This option puts relocatable vectors into the kernel .text section
  586. with proper alignment.
  587. This is a safe choice for most configurations.
  588. config XTENSA_VECTORS_SEPARATE
  589. bool "Put relocatable vectors at fixed address"
  590. help
  591. This option puts relocatable vectors at specific virtual address.
  592. Vectors are merged with the .init data in the kernel image and
  593. are copied into their designated location during kernel startup.
  594. Use it to put vectors into IRAM or out of FLASH on kernels with
  595. XIP-aware MTD support.
  596. endchoice
  597. config VECTORS_ADDR
  598. hex "Kernel vectors virtual address"
  599. default 0x00000000
  600. depends on XTENSA_VECTORS_SEPARATE
  601. help
  602. This is the virtual address of the (relocatable) vectors base.
  603. It must be within KSEG if MMU is used.
  604. config XIP_DATA_ADDR
  605. hex "XIP kernel data virtual address"
  606. depends on XIP_KERNEL
  607. default 0x00000000
  608. help
  609. This is the virtual address where XIP kernel data is copied.
  610. It must be within KSEG if MMU is used.
  611. config PLATFORM_WANT_DEFAULT_MEM
  612. def_bool n
  613. config DEFAULT_MEM_START
  614. hex
  615. prompt "PAGE_OFFSET/PHYS_OFFSET" if !MMU && PLATFORM_WANT_DEFAULT_MEM
  616. default 0x60000000 if PLATFORM_WANT_DEFAULT_MEM
  617. default 0x00000000
  618. help
  619. This is the base address used for both PAGE_OFFSET and PHYS_OFFSET
  620. in noMMU configurations.
  621. If unsure, leave the default value here.
  622. choice
  623. prompt "KSEG layout"
  624. depends on MMU
  625. default XTENSA_KSEG_MMU_V2
  626. config XTENSA_KSEG_MMU_V2
  627. bool "MMUv2: 128MB cached + 128MB uncached"
  628. help
  629. MMUv2 compatible kernel memory map: TLB way 5 maps 128MB starting
  630. at KSEG_PADDR to 0xd0000000 with cache and to 0xd8000000
  631. without cache.
  632. KSEG_PADDR must be aligned to 128MB.
  633. config XTENSA_KSEG_256M
  634. bool "256MB cached + 256MB uncached"
  635. depends on INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX
  636. help
  637. TLB way 6 maps 256MB starting at KSEG_PADDR to 0xb0000000
  638. with cache and to 0xc0000000 without cache.
  639. KSEG_PADDR must be aligned to 256MB.
  640. config XTENSA_KSEG_512M
  641. bool "512MB cached + 512MB uncached"
  642. depends on INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX
  643. help
  644. TLB way 6 maps 512MB starting at KSEG_PADDR to 0xa0000000
  645. with cache and to 0xc0000000 without cache.
  646. KSEG_PADDR must be aligned to 256MB.
  647. endchoice
  648. config HIGHMEM
  649. bool "High Memory Support"
  650. depends on MMU
  651. select KMAP_LOCAL
  652. help
  653. Linux can use the full amount of RAM in the system by
  654. default. However, the default MMUv2 setup only maps the
  655. lowermost 128 MB of memory linearly to the areas starting
  656. at 0xd0000000 (cached) and 0xd8000000 (uncached).
  657. When there are more than 128 MB memory in the system not
  658. all of it can be "permanently mapped" by the kernel.
  659. The physical memory that's not permanently mapped is called
  660. "high memory".
  661. If you are compiling a kernel which will never run on a
  662. machine with more than 128 MB total physical RAM, answer
  663. N here.
  664. If unsure, say Y.
  665. config ARCH_FORCE_MAX_ORDER
  666. int "Order of maximal physically contiguous allocations"
  667. default "10"
  668. help
  669. The kernel page allocator limits the size of maximal physically
  670. contiguous allocations. The limit is called MAX_PAGE_ORDER and it
  671. defines the maximal power of two of number of pages that can be
  672. allocated as a single contiguous block. This option allows
  673. overriding the default setting when ability to allocate very
  674. large blocks of physically contiguous memory is required.
  675. Don't change if unsure.
  676. endmenu
  677. menu "Power management options"
  678. config ARCH_HIBERNATION_POSSIBLE
  679. def_bool y
  680. source "kernel/power/Kconfig"
  681. endmenu