Kconfig 25 KB

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