Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  1. menu "MIPS architecture"
  2. depends on MIPS
  3. config SYS_ARCH
  4. default "mips"
  5. config SYS_CPU
  6. default "mips32" if CPU_MIPS32
  7. default "mips64" if CPU_MIPS64
  8. choice
  9. prompt "Target select"
  10. optional
  11. config TARGET_MALTA
  12. bool "Support malta"
  13. select HAS_FIXED_TIMER_FREQUENCY
  14. select BOARD_EARLY_INIT_R
  15. select DM
  16. select DM_SERIAL
  17. select PCI
  18. select DYNAMIC_IO_PORT_BASE
  19. select MIPS_CM
  20. select MIPS_INSERT_BOOT_CONFIG
  21. select SYS_CACHE_SHIFT_6
  22. select MIPS_L2_CACHE
  23. select OF_CONTROL
  24. select OF_ISA_BUS
  25. select PCI_MAP_SYSTEM_MEMORY
  26. select ROM_EXCEPTION_VECTORS
  27. select SUPPORTS_BIG_ENDIAN
  28. select SUPPORTS_CPU_MIPS32_R1
  29. select SUPPORTS_CPU_MIPS32_R2
  30. select SUPPORTS_CPU_MIPS32_R6
  31. select SUPPORTS_CPU_MIPS64_R1
  32. select SUPPORTS_CPU_MIPS64_R2
  33. select SUPPORTS_CPU_MIPS64_R6
  34. select SUPPORTS_LITTLE_ENDIAN
  35. select SWAP_IO_SPACE
  36. imply CMD_DM
  37. config ARCH_ATH79
  38. bool "Support QCA/Atheros ath79"
  39. select HAS_FIXED_TIMER_FREQUENCY
  40. select DM
  41. select OF_CONTROL
  42. imply CMD_DM
  43. config ARCH_MSCC
  44. bool "Support MSCC VCore-III"
  45. select HAS_FIXED_TIMER_FREQUENCY
  46. select OF_CONTROL
  47. select DM
  48. config ARCH_BMIPS
  49. bool "Support BMIPS SoCs"
  50. select HAS_FIXED_TIMER_FREQUENCY
  51. select CLK
  52. select CPU
  53. select DM
  54. select OF_CONTROL
  55. select RAM
  56. select SYSRESET
  57. imply CMD_DM
  58. config ARCH_MTMIPS
  59. bool "Support MediaTek MIPS platforms"
  60. select HAS_FIXED_TIMER_FREQUENCY
  61. select CLK
  62. imply CMD_DM
  63. select DISPLAY_CPUINFO
  64. select DM
  65. imply DM_GPIO
  66. select DM_RESET
  67. select DM_SERIAL
  68. select PINCTRL
  69. select PINMUX
  70. select PINCONF
  71. select RESET_MTMIPS
  72. imply DM_SPI
  73. imply DM_SPI_FLASH
  74. select LAST_STAGE_INIT
  75. select MIPS_TUNE_24KC
  76. select OF_CONTROL
  77. select ROM_EXCEPTION_VECTORS
  78. select SUPPORTS_CPU_MIPS32_R1
  79. select SUPPORTS_CPU_MIPS32_R2
  80. select SUPPORTS_LITTLE_ENDIAN
  81. select SUPPORT_SPL
  82. config ARCH_JZ47XX
  83. bool "Support Ingenic JZ47xx"
  84. select SUPPORT_SPL
  85. select HAS_FIXED_TIMER_FREQUENCY
  86. select OF_CONTROL
  87. select DM
  88. config ARCH_OCTEON
  89. bool "Support Marvell Octeon CN7xxx platforms"
  90. select ARCH_EARLY_INIT_R
  91. select CPU_CAVIUM_OCTEON
  92. select DISPLAY_CPUINFO
  93. select DMA_ADDR_T_64BIT
  94. select DM
  95. select DM_GPIO
  96. select DM_I2C
  97. select DM_SERIAL
  98. select DM_SPI
  99. select MIPS_L2_CACHE
  100. select MIPS_MACH_EARLY_INIT
  101. select MIPS_TUNE_OCTEON3
  102. select ROM_EXCEPTION_VECTORS
  103. select SUPPORTS_BIG_ENDIAN
  104. select SUPPORTS_CPU_MIPS64_OCTEON
  105. select PHYS_64BIT
  106. select OF_CONTROL
  107. select OF_LIVE
  108. imply CMD_DM
  109. config MACH_PIC32
  110. bool "Support Microchip PIC32"
  111. select HAS_FIXED_TIMER_FREQUENCY
  112. select DM
  113. select DM_EVENT
  114. select OF_CONTROL
  115. imply CMD_DM
  116. config TARGET_BOSTON
  117. bool "Support Boston"
  118. select HAS_FIXED_TIMER_FREQUENCY
  119. select DM
  120. select DM_SERIAL
  121. select MIPS_CM
  122. select SYS_CACHE_SHIFT_6
  123. select MIPS_L2_CACHE
  124. select OF_BOARD_SETUP
  125. select OF_CONTROL
  126. select ROM_EXCEPTION_VECTORS
  127. select SUPPORTS_BIG_ENDIAN
  128. select SUPPORTS_CPU_MIPS32_R1
  129. select SUPPORTS_CPU_MIPS32_R2
  130. select SUPPORTS_CPU_MIPS32_R6
  131. select SUPPORTS_CPU_MIPS64_R1
  132. select SUPPORTS_CPU_MIPS64_R2
  133. select SUPPORTS_CPU_MIPS64_R6
  134. select SUPPORTS_LITTLE_ENDIAN
  135. imply CMD_DM
  136. config TARGET_XILFPGA
  137. bool "Support Imagination Xilfpga"
  138. select HAS_FIXED_TIMER_FREQUENCY
  139. select DM
  140. select DM_GPIO
  141. select DM_SERIAL
  142. select SYS_CACHE_SHIFT_4
  143. select OF_CONTROL
  144. select ROM_EXCEPTION_VECTORS
  145. select SUPPORTS_CPU_MIPS32_R1
  146. select SUPPORTS_CPU_MIPS32_R2
  147. select SUPPORTS_LITTLE_ENDIAN
  148. imply CMD_DM
  149. help
  150. This supports IMGTEC MIPSfpga platform
  151. endchoice
  152. source "board/imgtec/boston/Kconfig"
  153. source "board/imgtec/malta/Kconfig"
  154. source "board/imgtec/xilfpga/Kconfig"
  155. source "arch/mips/mach-ath79/Kconfig"
  156. source "arch/mips/mach-mscc/Kconfig"
  157. source "arch/mips/mach-bmips/Kconfig"
  158. source "arch/mips/mach-jz47xx/Kconfig"
  159. source "arch/mips/mach-pic32/Kconfig"
  160. source "arch/mips/mach-mtmips/Kconfig"
  161. source "arch/mips/mach-octeon/Kconfig"
  162. if MIPS
  163. choice
  164. prompt "CPU selection"
  165. default CPU_MIPS32_R2
  166. config CPU_MIPS32_R1
  167. bool "MIPS32 Release 1"
  168. depends on SUPPORTS_CPU_MIPS32_R1
  169. select 32BIT
  170. help
  171. Choose this option to build an U-Boot for release 1 through 5 of the
  172. MIPS32 architecture.
  173. config CPU_MIPS32_R2
  174. bool "MIPS32 Release 2"
  175. depends on SUPPORTS_CPU_MIPS32_R2
  176. select 32BIT
  177. help
  178. Choose this option to build an U-Boot for release 2 through 5 of the
  179. MIPS32 architecture.
  180. config CPU_MIPS32_R6
  181. bool "MIPS32 Release 6"
  182. depends on SUPPORTS_CPU_MIPS32_R6
  183. select 32BIT
  184. help
  185. Choose this option to build an U-Boot for release 6 or later of the
  186. MIPS32 architecture.
  187. config CPU_MIPS64_R1
  188. bool "MIPS64 Release 1"
  189. depends on SUPPORTS_CPU_MIPS64_R1
  190. select 64BIT
  191. help
  192. Choose this option to build a kernel for release 1 through 5 of the
  193. MIPS64 architecture.
  194. config CPU_MIPS64_R2
  195. bool "MIPS64 Release 2"
  196. depends on SUPPORTS_CPU_MIPS64_R2
  197. select 64BIT
  198. help
  199. Choose this option to build a kernel for release 2 through 5 of the
  200. MIPS64 architecture.
  201. config CPU_MIPS64_R6
  202. bool "MIPS64 Release 6"
  203. depends on SUPPORTS_CPU_MIPS64_R6
  204. select 64BIT
  205. help
  206. Choose this option to build a kernel for release 6 or later of the
  207. MIPS64 architecture.
  208. config CPU_MIPS64_OCTEON
  209. bool "Marvell Octeon series of CPUs"
  210. depends on SUPPORTS_CPU_MIPS64_OCTEON
  211. select 64BIT
  212. help
  213. Choose this option for Marvell Octeon CPUs. These CPUs are between
  214. MIPS64 R5 and R6 with other extensions.
  215. endchoice
  216. menu "General setup"
  217. config ROM_EXCEPTION_VECTORS
  218. bool "Build U-Boot image with exception vectors"
  219. help
  220. Enable this to include exception vectors in the U-Boot image. This is
  221. required if the U-Boot entry point is equal to the address of the
  222. CPU reset exception vector (e.g. U-Boot as ROM loader in Qemu,
  223. U-Boot booted from parallel NOR flash).
  224. Disable this, if the U-Boot image is booted from DRAM (e.g. by SPL).
  225. In that case the image size will be reduced by 0x500 bytes.
  226. config SYS_MIPS_TIMER_FREQ
  227. int "Fixed MIPS CPU timer frequency in Hz"
  228. depends on HAS_FIXED_TIMER_FREQUENCY
  229. help
  230. Configures a fixed CPU timer frequency.
  231. config MIPS_CM_BASE
  232. hex "MIPS CM GCR Base Address"
  233. depends on MIPS_CM
  234. default 0x16100000 if TARGET_BOSTON
  235. default 0x1fbf8000
  236. help
  237. The physical base address at which to map the MIPS Coherence Manager
  238. Global Configuration Registers (GCRs). This should be set such that
  239. the GCRs occupy a region of the physical address space which is
  240. otherwise unused, or at minimum that software doesn't need to access.
  241. config MIPS_CACHE_INDEX_BASE
  242. hex "Index base address for cache initialisation"
  243. default 0x80000000 if CPU_MIPS32
  244. default 0xffffffff80000000 if CPU_MIPS64
  245. help
  246. This is the base address for a memory block, which is used for
  247. initialising the cache lines. This is also the base address of a memory
  248. block which is used for loading and filling cache lines when
  249. SYS_MIPS_CACHE_INIT_RAM_LOAD is selected.
  250. Normally this is CKSEG0. If the MIPS system needs to move this block
  251. to some SRAM or ScratchPad RAM, adapt this option accordingly.
  252. config MIPS_MACH_EARLY_INIT
  253. bool "Enable mach specific very early init code"
  254. help
  255. Use this to enable the call to mips_mach_early_init() very early
  256. from start.S. This function can be used e.g. to do some very early
  257. CPU / SoC intitialization or image copying. Its called very early
  258. and at this stage the PC might not match the linking address
  259. (CONFIG_TEXT_BASE) - no absolute jump done until this call.
  260. config MIPS_CACHE_SETUP
  261. bool "Allow generic start code to initialize and setup caches"
  262. default n if SKIP_LOWLEVEL_INIT
  263. default y
  264. help
  265. This allows the generic start code to invoke the generic initialization
  266. of the CPU caches. Disabling this can be useful for RAM boot scenarios
  267. (EJTAG, SPL payload) or for machines which don't need cache initialization
  268. or which want to provide their own cache implementation.
  269. If unsure, say yes.
  270. config MIPS_CACHE_DISABLE
  271. bool "Allow generic start code to initially disable caches"
  272. default n if SKIP_LOWLEVEL_INIT
  273. default y
  274. help
  275. This allows the generic start code to initially disable the CPU caches
  276. and run uncached until the caches are initialized and enabled. Disabling
  277. this can be useful on machines which don't need cache initialization or
  278. which want to provide their own cache implementation.
  279. If unsure, say yes.
  280. config MIPS_RELOCATION_TABLE_SIZE
  281. hex "Relocation table size"
  282. range 0x100 0x10000
  283. default "0x8000"
  284. ---help---
  285. A table of relocation data will be appended to the U-Boot binary
  286. and parsed in relocate_code() to fix up all offsets in the relocated
  287. U-Boot.
  288. This option allows the amount of space reserved for the table to be
  289. adjusted in a range from 256 up to 64k. The default is 32k and should
  290. be ok in most cases. Reduce this value to shrink the size of U-Boot
  291. binary.
  292. The build will fail and a valid size suggested if this is too small.
  293. If unsure, leave at the default value.
  294. config RESTORE_EXCEPTION_VECTOR_BASE
  295. bool "Restore exception vector base before booting linux kernel"
  296. help
  297. In U-Boot the exception vector base will be moved to top of memory,
  298. to be used to display register dump when exception occurs.
  299. But some old linux kernel does not honor the base set in CP0_EBASE.
  300. A modified exception vector base will cause kernel crash.
  301. This option will restore the exception vector base to its previous
  302. value.
  303. If unsure, say N.
  304. config OVERRIDE_EXCEPTION_VECTOR_BASE
  305. bool "Override the exception vector base to be restored"
  306. depends on RESTORE_EXCEPTION_VECTOR_BASE
  307. help
  308. Enable this option if you want to use a different exception vector
  309. base rather than the previously saved one.
  310. config NEW_EXCEPTION_VECTOR_BASE
  311. hex "New exception vector base"
  312. depends on OVERRIDE_EXCEPTION_VECTOR_BASE
  313. range 0x80000000 0xbffff000
  314. default 0x80000000
  315. help
  316. The exception vector base to be restored before booting linux kernel
  317. config INIT_STACK_WITHOUT_MALLOC_F
  318. bool "Do not reserve malloc space on initial stack"
  319. help
  320. Enable this option if you don't want to reserve malloc space on
  321. initial stack. This is useful if the initial stack can't hold large
  322. malloc space. Platform should set the malloc_base later when DRAM is
  323. ready to use.
  324. config SPL_INIT_STACK_WITHOUT_MALLOC_F
  325. bool "Do not reserve malloc space on initial stack in SPL"
  326. help
  327. Enable this option if you don't want to reserve malloc space on
  328. initial stack. This is useful if the initial stack can't hold large
  329. malloc space. Platform should set the malloc_base later when DRAM is
  330. ready to use.
  331. config SPL_LOADER_SUPPORT
  332. bool
  333. help
  334. Enable this option if you want to use SPL loaders without DM enabled.
  335. endmenu
  336. menu "OS boot interface"
  337. config MIPS_BOOT_CMDLINE_LEGACY
  338. bool "Hand over legacy command line to Linux kernel"
  339. default y
  340. help
  341. Enable this option if you want U-Boot to hand over the Yamon-style
  342. command line to the kernel. All bootargs will be prepared as argc/argv
  343. compatible list. The argument count (argc) is stored in register $a0.
  344. The address of the argument list (argv) is stored in register $a1.
  345. config MIPS_BOOT_ENV_LEGACY
  346. bool "Hand over legacy environment to Linux kernel"
  347. default y
  348. help
  349. Enable this option if you want U-Boot to hand over the Yamon-style
  350. environment to the kernel. Information like memory size, initrd
  351. address and size will be prepared as zero-terminated key/value list.
  352. The address of the environment is stored in register $a2.
  353. config MIPS_BOOT_FDT
  354. bool "Hand over a flattened device tree to Linux kernel"
  355. help
  356. Enable this option if you want U-Boot to hand over a flattened
  357. device tree to the kernel. According to UHI register $a0 will be set
  358. to -2 and the FDT address is stored in $a1.
  359. endmenu
  360. config SUPPORTS_BIG_ENDIAN
  361. bool
  362. config SUPPORTS_LITTLE_ENDIAN
  363. bool
  364. config SUPPORTS_CPU_MIPS32_R1
  365. bool
  366. config SUPPORTS_CPU_MIPS32_R2
  367. bool
  368. config SUPPORTS_CPU_MIPS32_R6
  369. bool
  370. config SUPPORTS_CPU_MIPS64_R1
  371. bool
  372. config SUPPORTS_CPU_MIPS64_R2
  373. bool
  374. config SUPPORTS_CPU_MIPS64_R6
  375. bool
  376. config SUPPORTS_CPU_MIPS64_OCTEON
  377. bool
  378. config HAS_FIXED_TIMER_FREQUENCY
  379. bool
  380. config CPU_CAVIUM_OCTEON
  381. bool
  382. config CPU_MIPS32
  383. bool
  384. default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R6
  385. config CPU_MIPS64
  386. bool
  387. default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R6
  388. default y if CPU_MIPS64_OCTEON
  389. config MIPS_TUNE_4KC
  390. bool
  391. config MIPS_TUNE_14KC
  392. bool
  393. config MIPS_TUNE_24KC
  394. bool
  395. config MIPS_TUNE_34KC
  396. bool
  397. config MIPS_TUNE_74KC
  398. bool
  399. config MIPS_TUNE_OCTEON3
  400. bool
  401. config 32BIT
  402. bool
  403. config 64BIT
  404. bool
  405. config SWAP_IO_SPACE
  406. bool
  407. config SYS_MIPS_CACHE_INIT_RAM_LOAD
  408. bool
  409. config MIPS_INIT_STACK_IN_SRAM
  410. bool
  411. help
  412. Select this if the initial stack frame could be setup in SRAM.
  413. Normally the initial stack frame is set up in DRAM which is often
  414. only available after lowlevel_init. With this option the initial
  415. stack frame and the early C environment is set up before
  416. lowlevel_init. Thus lowlevel_init does not need to be implemented
  417. in assembler.
  418. config MIPS_SRAM_INIT
  419. bool
  420. depends on MIPS_INIT_STACK_IN_SRAM
  421. help
  422. Select this if the SRAM for initial stack needs to be initialized
  423. before it can be used. If enabled, a function mips_sram_init() will
  424. be called just before setup_stack_gd.
  425. config DMA_ADDR_T_64BIT
  426. bool
  427. help
  428. Select this to enable 64-bit DMA addressing
  429. config SYS_DCACHE_SIZE
  430. int
  431. default 0
  432. help
  433. The total size of the L1 Dcache, if known at compile time.
  434. config SYS_DCACHE_LINE_SIZE
  435. int
  436. default 0
  437. help
  438. The size of L1 Dcache lines, if known at compile time.
  439. config SYS_ICACHE_SIZE
  440. int
  441. default 0
  442. help
  443. The total size of the L1 ICache, if known at compile time.
  444. config SYS_ICACHE_LINE_SIZE
  445. int
  446. default 0
  447. help
  448. The size of L1 Icache lines, if known at compile time.
  449. config SYS_SCACHE_LINE_SIZE
  450. int
  451. default 0
  452. help
  453. The size of L2 cache lines, if known at compile time.
  454. config SYS_CACHE_SIZE_AUTO
  455. def_bool y if SYS_DCACHE_SIZE = 0 && SYS_ICACHE_SIZE = 0 && \
  456. SYS_DCACHE_LINE_SIZE = 0 && SYS_ICACHE_LINE_SIZE = 0 && \
  457. SYS_SCACHE_LINE_SIZE = 0
  458. help
  459. Select this (or let it be auto-selected by not defining any cache
  460. sizes) in order to allow U-Boot to automatically detect the sizes
  461. of caches at runtime. This has a small cost in code size & runtime
  462. so if you know the cache configuration for your system at compile
  463. time it would be beneficial to configure it.
  464. config MIPS_L2_CACHE
  465. bool
  466. help
  467. Select this if your system includes an L2 cache and you want U-Boot
  468. to initialise & maintain it.
  469. config DYNAMIC_IO_PORT_BASE
  470. bool
  471. config MIPS_CM
  472. bool
  473. help
  474. Select this if your system contains a MIPS Coherence Manager and you
  475. wish U-Boot to configure it or make use of it to retrieve system
  476. information such as cache configuration.
  477. config MIPS_INSERT_BOOT_CONFIG
  478. bool
  479. help
  480. Enable this to insert some board-specific boot configuration in
  481. the U-Boot binary at offset 0x10.
  482. config MIPS_BOOT_CONFIG_WORD0
  483. hex
  484. depends on MIPS_INSERT_BOOT_CONFIG
  485. default 0x420 if TARGET_MALTA
  486. default 0x0
  487. help
  488. Value which is inserted as boot config word 0.
  489. config MIPS_BOOT_CONFIG_WORD1
  490. hex
  491. depends on MIPS_INSERT_BOOT_CONFIG
  492. default 0x0
  493. help
  494. Value which is inserted as boot config word 1.
  495. endif
  496. endmenu