Kconfig 84 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241
  1. # SPDX-License-Identifier: GPL-2.0
  2. config MIPS
  3. bool
  4. default y
  5. select ARCH_32BIT_OFF_T if !64BIT
  6. select ARCH_BINFMT_ELF_STATE if MIPS_FP_SUPPORT
  7. select ARCH_HAS_CPU_FINALIZE_INIT
  8. select ARCH_HAS_CURRENT_STACK_POINTER if !CC_IS_CLANG || CLANG_VERSION >= 140000
  9. select ARCH_HAS_DEBUG_VIRTUAL if !64BIT
  10. select ARCH_HAS_FORTIFY_SOURCE
  11. select ARCH_HAS_KCOV
  12. select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE if !EVA
  13. select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI)
  14. select ARCH_HAS_STRNCPY_FROM_USER
  15. select ARCH_HAS_STRNLEN_USER
  16. select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
  17. select ARCH_HAS_UBSAN_SANITIZE_ALL
  18. select ARCH_HAS_GCOV_PROFILE_ALL
  19. select ARCH_KEEP_MEMBLOCK
  20. select ARCH_SUPPORTS_UPROBES
  21. select ARCH_USE_BUILTIN_BSWAP
  22. select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
  23. select ARCH_USE_MEMTEST
  24. select ARCH_USE_QUEUED_RWLOCKS
  25. select ARCH_USE_QUEUED_SPINLOCKS
  26. select ARCH_SUPPORTS_HUGETLBFS if CPU_SUPPORTS_HUGEPAGES
  27. select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
  28. select ARCH_WANT_IPC_PARSE_VERSION
  29. select ARCH_WANT_LD_ORPHAN_WARN
  30. select BUILDTIME_TABLE_SORT
  31. select CLONE_BACKWARDS
  32. select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1)
  33. select CPU_PM if CPU_IDLE
  34. select GENERIC_ATOMIC64 if !64BIT
  35. select GENERIC_CMOS_UPDATE
  36. select GENERIC_CPU_AUTOPROBE
  37. select GENERIC_GETTIMEOFDAY
  38. select GENERIC_IOMAP
  39. select GENERIC_IRQ_PROBE
  40. select GENERIC_IRQ_SHOW
  41. select GENERIC_ISA_DMA if EISA
  42. select GENERIC_LIB_ASHLDI3
  43. select GENERIC_LIB_ASHRDI3
  44. select GENERIC_LIB_CMPDI2
  45. select GENERIC_LIB_LSHRDI3
  46. select GENERIC_LIB_UCMPDI2
  47. select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
  48. select GENERIC_SMP_IDLE_THREAD
  49. select GENERIC_TIME_VSYSCALL
  50. select GUP_GET_PTE_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT
  51. select HAVE_ARCH_COMPILER_H
  52. select HAVE_ARCH_JUMP_LABEL
  53. select HAVE_ARCH_KGDB if MIPS_FP_SUPPORT
  54. select HAVE_ARCH_MMAP_RND_BITS if MMU
  55. select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
  56. select HAVE_ARCH_SECCOMP_FILTER
  57. select HAVE_ARCH_TRACEHOOK
  58. select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES
  59. select HAVE_ASM_MODVERSIONS
  60. select HAVE_CONTEXT_TRACKING_USER
  61. select HAVE_TIF_NOHZ
  62. select HAVE_C_RECORDMCOUNT
  63. select HAVE_DEBUG_KMEMLEAK
  64. select HAVE_DEBUG_STACKOVERFLOW
  65. select HAVE_DMA_CONTIGUOUS
  66. select HAVE_DYNAMIC_FTRACE
  67. select HAVE_EBPF_JIT if !CPU_MICROMIPS && \
  68. !CPU_DADDI_WORKAROUNDS && \
  69. !CPU_R4000_WORKAROUNDS && \
  70. !CPU_R4400_WORKAROUNDS
  71. select HAVE_EXIT_THREAD
  72. select HAVE_FAST_GUP
  73. select HAVE_FTRACE_MCOUNT_RECORD
  74. select HAVE_FUNCTION_GRAPH_TRACER
  75. select HAVE_FUNCTION_TRACER
  76. select HAVE_GCC_PLUGINS
  77. select HAVE_GENERIC_VDSO
  78. select HAVE_IOREMAP_PROT
  79. select HAVE_IRQ_EXIT_ON_IRQ_STACK
  80. select HAVE_IRQ_TIME_ACCOUNTING
  81. select HAVE_KPROBES
  82. select HAVE_KRETPROBES
  83. select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
  84. select HAVE_MOD_ARCH_SPECIFIC
  85. select HAVE_NMI
  86. select HAVE_PERF_EVENTS
  87. select HAVE_PERF_REGS
  88. select HAVE_PERF_USER_STACK_DUMP
  89. select HAVE_REGS_AND_STACK_ACCESS_API
  90. select HAVE_RSEQ
  91. select HAVE_SPARSE_SYSCALL_NR
  92. select HAVE_STACKPROTECTOR
  93. select HAVE_SYSCALL_TRACEPOINTS
  94. select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
  95. select IRQ_FORCED_THREADING
  96. select ISA if EISA
  97. select LOCK_MM_AND_FIND_VMA
  98. select MODULES_USE_ELF_REL if MODULES
  99. select MODULES_USE_ELF_RELA if MODULES && 64BIT
  100. select PERF_USE_VMALLOC
  101. select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
  102. select RTC_LIB
  103. select SYSCTL_EXCEPTION_TRACE
  104. select TRACE_IRQFLAGS_SUPPORT
  105. select ARCH_HAS_ELFCORE_COMPAT
  106. select HAVE_ARCH_KCSAN if 64BIT
  107. config MIPS_FIXUP_BIGPHYS_ADDR
  108. bool
  109. config MIPS_GENERIC
  110. bool
  111. config MACH_INGENIC
  112. bool
  113. select SYS_SUPPORTS_32BIT_KERNEL
  114. select SYS_SUPPORTS_LITTLE_ENDIAN
  115. select SYS_SUPPORTS_ZBOOT
  116. select DMA_NONCOHERENT
  117. select ARCH_HAS_SYNC_DMA_FOR_CPU
  118. select IRQ_MIPS_CPU
  119. select PINCTRL
  120. select GPIOLIB
  121. select COMMON_CLK
  122. select GENERIC_IRQ_CHIP
  123. select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
  124. select USE_OF
  125. select CPU_SUPPORTS_CPUFREQ
  126. select MIPS_EXTERNAL_TIMER
  127. menu "Machine selection"
  128. choice
  129. prompt "System type"
  130. default MIPS_GENERIC_KERNEL
  131. config MIPS_GENERIC_KERNEL
  132. bool "Generic board-agnostic MIPS kernel"
  133. select ARCH_HAS_SETUP_DMA_OPS
  134. select MIPS_GENERIC
  135. select BOOT_RAW
  136. select BUILTIN_DTB
  137. select CEVT_R4K
  138. select CLKSRC_MIPS_GIC
  139. select COMMON_CLK
  140. select CPU_MIPSR2_IRQ_EI
  141. select CPU_MIPSR2_IRQ_VI
  142. select CSRC_R4K
  143. select DMA_NONCOHERENT
  144. select HAVE_PCI
  145. select IRQ_MIPS_CPU
  146. select MIPS_AUTO_PFN_OFFSET
  147. select MIPS_CPU_SCACHE
  148. select MIPS_GIC
  149. select MIPS_L1_CACHE_SHIFT_7
  150. select NO_EXCEPT_FILL
  151. select PCI_DRIVERS_GENERIC
  152. select SMP_UP if SMP
  153. select SWAP_IO_SPACE
  154. select SYS_HAS_CPU_MIPS32_R1
  155. select SYS_HAS_CPU_MIPS32_R2
  156. select SYS_HAS_CPU_MIPS32_R6
  157. select SYS_HAS_CPU_MIPS64_R1
  158. select SYS_HAS_CPU_MIPS64_R2
  159. select SYS_HAS_CPU_MIPS64_R6
  160. select SYS_SUPPORTS_32BIT_KERNEL
  161. select SYS_SUPPORTS_64BIT_KERNEL
  162. select SYS_SUPPORTS_BIG_ENDIAN
  163. select SYS_SUPPORTS_HIGHMEM
  164. select SYS_SUPPORTS_LITTLE_ENDIAN
  165. select SYS_SUPPORTS_MICROMIPS
  166. select SYS_SUPPORTS_MIPS16
  167. select SYS_SUPPORTS_MIPS_CPS
  168. select SYS_SUPPORTS_MULTITHREADING
  169. select SYS_SUPPORTS_RELOCATABLE
  170. select SYS_SUPPORTS_SMARTMIPS
  171. select SYS_SUPPORTS_ZBOOT
  172. select UHI_BOOT
  173. select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
  174. select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
  175. select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
  176. select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
  177. select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
  178. select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
  179. select USE_OF
  180. help
  181. Select this to build a kernel which aims to support multiple boards,
  182. generally using a flattened device tree passed from the bootloader
  183. using the boot protocol defined in the UHI (Unified Hosting
  184. Interface) specification.
  185. config MIPS_ALCHEMY
  186. bool "Alchemy processor based machines"
  187. select PHYS_ADDR_T_64BIT
  188. select CEVT_R4K
  189. select CSRC_R4K
  190. select IRQ_MIPS_CPU
  191. select DMA_NONCOHERENT # Au1000,1500,1100 aren't, rest is
  192. select MIPS_FIXUP_BIGPHYS_ADDR if PCI
  193. select SYS_HAS_CPU_MIPS32_R1
  194. select SYS_SUPPORTS_32BIT_KERNEL
  195. select SYS_SUPPORTS_APM_EMULATION
  196. select GPIOLIB
  197. select SYS_SUPPORTS_ZBOOT
  198. select COMMON_CLK
  199. config AR7
  200. bool "Texas Instruments AR7"
  201. select BOOT_ELF32
  202. select COMMON_CLK
  203. select DMA_NONCOHERENT
  204. select CEVT_R4K
  205. select CSRC_R4K
  206. select IRQ_MIPS_CPU
  207. select NO_EXCEPT_FILL
  208. select SWAP_IO_SPACE
  209. select SYS_HAS_CPU_MIPS32_R1
  210. select SYS_HAS_EARLY_PRINTK
  211. select SYS_SUPPORTS_32BIT_KERNEL
  212. select SYS_SUPPORTS_LITTLE_ENDIAN
  213. select SYS_SUPPORTS_MIPS16
  214. select SYS_SUPPORTS_ZBOOT_UART16550
  215. select GPIOLIB
  216. select VLYNQ
  217. help
  218. Support for the Texas Instruments AR7 System-on-a-Chip
  219. family: TNETD7100, 7200 and 7300.
  220. config ATH25
  221. bool "Atheros AR231x/AR531x SoC support"
  222. select CEVT_R4K
  223. select CSRC_R4K
  224. select DMA_NONCOHERENT
  225. select IRQ_MIPS_CPU
  226. select IRQ_DOMAIN
  227. select SYS_HAS_CPU_MIPS32_R1
  228. select SYS_SUPPORTS_BIG_ENDIAN
  229. select SYS_SUPPORTS_32BIT_KERNEL
  230. select SYS_HAS_EARLY_PRINTK
  231. help
  232. Support for Atheros AR231x and Atheros AR531x based boards
  233. config ATH79
  234. bool "Atheros AR71XX/AR724X/AR913X based boards"
  235. select ARCH_HAS_RESET_CONTROLLER
  236. select BOOT_RAW
  237. select CEVT_R4K
  238. select CSRC_R4K
  239. select DMA_NONCOHERENT
  240. select GPIOLIB
  241. select PINCTRL
  242. select COMMON_CLK
  243. select IRQ_MIPS_CPU
  244. select SYS_HAS_CPU_MIPS32_R2
  245. select SYS_HAS_EARLY_PRINTK
  246. select SYS_SUPPORTS_32BIT_KERNEL
  247. select SYS_SUPPORTS_BIG_ENDIAN
  248. select SYS_SUPPORTS_MIPS16
  249. select SYS_SUPPORTS_ZBOOT_UART_PROM
  250. select USE_OF
  251. select USB_EHCI_ROOT_HUB_TT if USB_EHCI_HCD_PLATFORM
  252. help
  253. Support for the Atheros AR71XX/AR724X/AR913X SoCs.
  254. config BMIPS_GENERIC
  255. bool "Broadcom Generic BMIPS kernel"
  256. select ARCH_HAS_RESET_CONTROLLER
  257. select ARCH_HAS_SYNC_DMA_FOR_CPU_ALL
  258. select BOOT_RAW
  259. select NO_EXCEPT_FILL
  260. select USE_OF
  261. select CEVT_R4K
  262. select CSRC_R4K
  263. select SYNC_R4K
  264. select COMMON_CLK
  265. select BCM6345_L1_IRQ
  266. select BCM7038_L1_IRQ
  267. select BCM7120_L2_IRQ
  268. select BRCMSTB_L2_IRQ
  269. select IRQ_MIPS_CPU
  270. select DMA_NONCOHERENT
  271. select SYS_SUPPORTS_32BIT_KERNEL
  272. select SYS_SUPPORTS_LITTLE_ENDIAN
  273. select SYS_SUPPORTS_BIG_ENDIAN
  274. select SYS_SUPPORTS_HIGHMEM
  275. select SYS_HAS_CPU_BMIPS32_3300
  276. select SYS_HAS_CPU_BMIPS4350
  277. select SYS_HAS_CPU_BMIPS4380
  278. select SYS_HAS_CPU_BMIPS5000
  279. select SWAP_IO_SPACE
  280. select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
  281. select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
  282. select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
  283. select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
  284. select HARDIRQS_SW_RESEND
  285. select HAVE_PCI
  286. select PCI_DRIVERS_GENERIC
  287. select FW_CFE
  288. help
  289. Build a generic DT-based kernel image that boots on select
  290. BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
  291. box chips. Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN
  292. must be set appropriately for your board.
  293. config BCM47XX
  294. bool "Broadcom BCM47XX based boards"
  295. select BOOT_RAW
  296. select CEVT_R4K
  297. select CSRC_R4K
  298. select DMA_NONCOHERENT
  299. select HAVE_PCI
  300. select IRQ_MIPS_CPU
  301. select SYS_HAS_CPU_MIPS32_R1
  302. select NO_EXCEPT_FILL
  303. select SYS_SUPPORTS_32BIT_KERNEL
  304. select SYS_SUPPORTS_LITTLE_ENDIAN
  305. select SYS_SUPPORTS_MIPS16
  306. select SYS_SUPPORTS_ZBOOT
  307. select SYS_HAS_EARLY_PRINTK
  308. select USE_GENERIC_EARLY_PRINTK_8250
  309. select GPIOLIB
  310. select LEDS_GPIO_REGISTER
  311. select BCM47XX_NVRAM
  312. select BCM47XX_SPROM
  313. select BCM47XX_SSB if !BCM47XX_BCMA
  314. help
  315. Support for BCM47XX based boards
  316. config BCM63XX
  317. bool "Broadcom BCM63XX based boards"
  318. select BOOT_RAW
  319. select CEVT_R4K
  320. select CSRC_R4K
  321. select SYNC_R4K
  322. select DMA_NONCOHERENT
  323. select IRQ_MIPS_CPU
  324. select SYS_SUPPORTS_32BIT_KERNEL
  325. select SYS_SUPPORTS_BIG_ENDIAN
  326. select SYS_HAS_EARLY_PRINTK
  327. select SYS_HAS_CPU_BMIPS32_3300
  328. select SYS_HAS_CPU_BMIPS4350
  329. select SYS_HAS_CPU_BMIPS4380
  330. select SWAP_IO_SPACE
  331. select GPIOLIB
  332. select MIPS_L1_CACHE_SHIFT_4
  333. select HAVE_LEGACY_CLK
  334. help
  335. Support for BCM63XX based boards
  336. config MIPS_COBALT
  337. bool "Cobalt Server"
  338. select CEVT_R4K
  339. select CSRC_R4K
  340. select CEVT_GT641XX
  341. select DMA_NONCOHERENT
  342. select FORCE_PCI
  343. select I8253
  344. select I8259
  345. select IRQ_MIPS_CPU
  346. select IRQ_GT641XX
  347. select PCI_GT64XXX_PCI0
  348. select SYS_HAS_CPU_NEVADA
  349. select SYS_HAS_EARLY_PRINTK
  350. select SYS_SUPPORTS_32BIT_KERNEL
  351. select SYS_SUPPORTS_64BIT_KERNEL
  352. select SYS_SUPPORTS_LITTLE_ENDIAN
  353. select USE_GENERIC_EARLY_PRINTK_8250
  354. config MACH_DECSTATION
  355. bool "DECstations"
  356. select BOOT_ELF32
  357. select CEVT_DS1287
  358. select CEVT_R4K if CPU_R4X00
  359. select CSRC_IOASIC
  360. select CSRC_R4K if CPU_R4X00
  361. select CPU_DADDI_WORKAROUNDS if 64BIT
  362. select CPU_R4000_WORKAROUNDS if 64BIT
  363. select CPU_R4400_WORKAROUNDS if 64BIT
  364. select DMA_NONCOHERENT
  365. select NO_IOPORT_MAP
  366. select IRQ_MIPS_CPU
  367. select SYS_HAS_CPU_R3000
  368. select SYS_HAS_CPU_R4X00
  369. select SYS_SUPPORTS_32BIT_KERNEL
  370. select SYS_SUPPORTS_64BIT_KERNEL
  371. select SYS_SUPPORTS_LITTLE_ENDIAN
  372. select SYS_SUPPORTS_128HZ
  373. select SYS_SUPPORTS_256HZ
  374. select SYS_SUPPORTS_1024HZ
  375. select MIPS_L1_CACHE_SHIFT_4
  376. help
  377. This enables support for DEC's MIPS based workstations. For details
  378. see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
  379. DECstation porting pages on <http://decstation.unix-ag.org/>.
  380. If you have one of the following DECstation Models you definitely
  381. want to choose R4xx0 for the CPU Type:
  382. DECstation 5000/50
  383. DECstation 5000/150
  384. DECstation 5000/260
  385. DECsystem 5900/260
  386. otherwise choose R3000.
  387. config MACH_JAZZ
  388. bool "Jazz family of machines"
  389. select ARC_MEMORY
  390. select ARC_PROMLIB
  391. select ARCH_MIGHT_HAVE_PC_PARPORT
  392. select ARCH_MIGHT_HAVE_PC_SERIO
  393. select DMA_OPS
  394. select FW_ARC
  395. select FW_ARC32
  396. select ARCH_MAY_HAVE_PC_FDC
  397. select CEVT_R4K
  398. select CSRC_R4K
  399. select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
  400. select GENERIC_ISA_DMA
  401. select HAVE_PCSPKR_PLATFORM
  402. select IRQ_MIPS_CPU
  403. select I8253
  404. select I8259
  405. select ISA
  406. select SYS_HAS_CPU_R4X00
  407. select SYS_SUPPORTS_32BIT_KERNEL
  408. select SYS_SUPPORTS_64BIT_KERNEL
  409. select SYS_SUPPORTS_100HZ
  410. select SYS_SUPPORTS_LITTLE_ENDIAN
  411. help
  412. This a family of machines based on the MIPS R4030 chipset which was
  413. used by several vendors to build RISC/os and Windows NT workstations.
  414. Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
  415. Olivetti M700-10 workstations.
  416. config MACH_INGENIC_SOC
  417. bool "Ingenic SoC based machines"
  418. select MIPS_GENERIC
  419. select MACH_INGENIC
  420. select SYS_SUPPORTS_ZBOOT_UART16550
  421. select CPU_SUPPORTS_CPUFREQ
  422. select MIPS_EXTERNAL_TIMER
  423. config LANTIQ
  424. bool "Lantiq based platforms"
  425. select DMA_NONCOHERENT
  426. select IRQ_MIPS_CPU
  427. select CEVT_R4K
  428. select CSRC_R4K
  429. select SYS_HAS_CPU_MIPS32_R1
  430. select SYS_HAS_CPU_MIPS32_R2
  431. select SYS_SUPPORTS_BIG_ENDIAN
  432. select SYS_SUPPORTS_32BIT_KERNEL
  433. select SYS_SUPPORTS_MIPS16
  434. select SYS_SUPPORTS_MULTITHREADING
  435. select SYS_SUPPORTS_VPE_LOADER
  436. select SYS_HAS_EARLY_PRINTK
  437. select GPIOLIB
  438. select SWAP_IO_SPACE
  439. select BOOT_RAW
  440. select HAVE_LEGACY_CLK
  441. select USE_OF
  442. select PINCTRL
  443. select PINCTRL_LANTIQ
  444. select ARCH_HAS_RESET_CONTROLLER
  445. select RESET_CONTROLLER
  446. config MACH_LOONGSON32
  447. bool "Loongson 32-bit family of machines"
  448. select SYS_SUPPORTS_ZBOOT
  449. help
  450. This enables support for the Loongson-1 family of machines.
  451. Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by
  452. the Institute of Computing Technology (ICT), Chinese Academy of
  453. Sciences (CAS).
  454. config MACH_LOONGSON2EF
  455. bool "Loongson-2E/F family of machines"
  456. select SYS_SUPPORTS_ZBOOT
  457. help
  458. This enables the support of early Loongson-2E/F family of machines.
  459. config MACH_LOONGSON64
  460. bool "Loongson 64-bit family of machines"
  461. select ARCH_DMA_DEFAULT_COHERENT
  462. select ARCH_SPARSEMEM_ENABLE
  463. select ARCH_MIGHT_HAVE_PC_PARPORT
  464. select ARCH_MIGHT_HAVE_PC_SERIO
  465. select GENERIC_ISA_DMA_SUPPORT_BROKEN
  466. select BOOT_ELF32
  467. select BOARD_SCACHE
  468. select CSRC_R4K
  469. select CEVT_R4K
  470. select CPU_HAS_WB
  471. select FORCE_PCI
  472. select ISA
  473. select I8259
  474. select IRQ_MIPS_CPU
  475. select NO_EXCEPT_FILL
  476. select NR_CPUS_DEFAULT_64
  477. select USE_GENERIC_EARLY_PRINTK_8250
  478. select PCI_DRIVERS_GENERIC
  479. select SYS_HAS_CPU_LOONGSON64
  480. select SYS_HAS_EARLY_PRINTK
  481. select SYS_SUPPORTS_SMP
  482. select SYS_SUPPORTS_HOTPLUG_CPU
  483. select SYS_SUPPORTS_NUMA
  484. select SYS_SUPPORTS_64BIT_KERNEL
  485. select SYS_SUPPORTS_HIGHMEM
  486. select SYS_SUPPORTS_LITTLE_ENDIAN
  487. select SYS_SUPPORTS_ZBOOT
  488. select SYS_SUPPORTS_RELOCATABLE
  489. select ZONE_DMA32
  490. select COMMON_CLK
  491. select USE_OF
  492. select BUILTIN_DTB
  493. select PCI_HOST_GENERIC
  494. select HAVE_ARCH_NODEDATA_EXTENSION if NUMA
  495. help
  496. This enables the support of Loongson-2/3 family of machines.
  497. Loongson-2 and Loongson-3 are 64-bit general-purpose processors with
  498. GS264/GS464/GS464E/GS464V microarchitecture (except old Loongson-2E
  499. and Loongson-2F which will be removed), developed by the Institute
  500. of Computing Technology (ICT), Chinese Academy of Sciences (CAS).
  501. config MIPS_MALTA
  502. bool "MIPS Malta board"
  503. select ARCH_MAY_HAVE_PC_FDC
  504. select ARCH_MIGHT_HAVE_PC_PARPORT
  505. select ARCH_MIGHT_HAVE_PC_SERIO
  506. select BOOT_ELF32
  507. select BOOT_RAW
  508. select BUILTIN_DTB
  509. select CEVT_R4K
  510. select CLKSRC_MIPS_GIC
  511. select COMMON_CLK
  512. select CSRC_R4K
  513. select DMA_NONCOHERENT
  514. select GENERIC_ISA_DMA
  515. select HAVE_PCSPKR_PLATFORM
  516. select HAVE_PCI
  517. select I8253
  518. select I8259
  519. select IRQ_MIPS_CPU
  520. select MIPS_BONITO64
  521. select MIPS_CPU_SCACHE
  522. select MIPS_GIC
  523. select MIPS_L1_CACHE_SHIFT_6
  524. select MIPS_MSC
  525. select PCI_GT64XXX_PCI0
  526. select SMP_UP if SMP
  527. select SWAP_IO_SPACE
  528. select SYS_HAS_CPU_MIPS32_R1
  529. select SYS_HAS_CPU_MIPS32_R2
  530. select SYS_HAS_CPU_MIPS32_R3_5
  531. select SYS_HAS_CPU_MIPS32_R5
  532. select SYS_HAS_CPU_MIPS32_R6
  533. select SYS_HAS_CPU_MIPS64_R1
  534. select SYS_HAS_CPU_MIPS64_R2
  535. select SYS_HAS_CPU_MIPS64_R6
  536. select SYS_HAS_CPU_NEVADA
  537. select SYS_HAS_CPU_RM7000
  538. select SYS_SUPPORTS_32BIT_KERNEL
  539. select SYS_SUPPORTS_64BIT_KERNEL
  540. select SYS_SUPPORTS_BIG_ENDIAN
  541. select SYS_SUPPORTS_HIGHMEM
  542. select SYS_SUPPORTS_LITTLE_ENDIAN
  543. select SYS_SUPPORTS_MICROMIPS
  544. select SYS_SUPPORTS_MIPS16
  545. select SYS_SUPPORTS_MIPS_CMP
  546. select SYS_SUPPORTS_MIPS_CPS
  547. select SYS_SUPPORTS_MULTITHREADING
  548. select SYS_SUPPORTS_RELOCATABLE
  549. select SYS_SUPPORTS_SMARTMIPS
  550. select SYS_SUPPORTS_VPE_LOADER
  551. select SYS_SUPPORTS_ZBOOT
  552. select USE_OF
  553. select WAR_ICACHE_REFILLS
  554. select ZONE_DMA32 if 64BIT
  555. help
  556. This enables support for the MIPS Technologies Malta evaluation
  557. board.
  558. config MACH_PIC32
  559. bool "Microchip PIC32 Family"
  560. help
  561. This enables support for the Microchip PIC32 family of platforms.
  562. Microchip PIC32 is a family of general-purpose 32 bit MIPS core
  563. microcontrollers.
  564. config MACH_NINTENDO64
  565. bool "Nintendo 64 console"
  566. select CEVT_R4K
  567. select CSRC_R4K
  568. select SYS_HAS_CPU_R4300
  569. select SYS_SUPPORTS_BIG_ENDIAN
  570. select SYS_SUPPORTS_ZBOOT
  571. select SYS_SUPPORTS_32BIT_KERNEL
  572. select SYS_SUPPORTS_64BIT_KERNEL
  573. select DMA_NONCOHERENT
  574. select IRQ_MIPS_CPU
  575. config RALINK
  576. bool "Ralink based machines"
  577. select CEVT_R4K
  578. select COMMON_CLK
  579. select CSRC_R4K
  580. select BOOT_RAW
  581. select DMA_NONCOHERENT
  582. select IRQ_MIPS_CPU
  583. select USE_OF
  584. select SYS_HAS_CPU_MIPS32_R1
  585. select SYS_HAS_CPU_MIPS32_R2
  586. select SYS_SUPPORTS_32BIT_KERNEL
  587. select SYS_SUPPORTS_LITTLE_ENDIAN
  588. select SYS_SUPPORTS_MIPS16
  589. select SYS_SUPPORTS_ZBOOT
  590. select SYS_HAS_EARLY_PRINTK
  591. select ARCH_HAS_RESET_CONTROLLER
  592. select RESET_CONTROLLER
  593. config MACH_REALTEK_RTL
  594. bool "Realtek RTL838x/RTL839x based machines"
  595. select MIPS_GENERIC
  596. select DMA_NONCOHERENT
  597. select IRQ_MIPS_CPU
  598. select CSRC_R4K
  599. select CEVT_R4K
  600. select SYS_HAS_CPU_MIPS32_R1
  601. select SYS_HAS_CPU_MIPS32_R2
  602. select SYS_SUPPORTS_BIG_ENDIAN
  603. select SYS_SUPPORTS_32BIT_KERNEL
  604. select SYS_SUPPORTS_MIPS16
  605. select SYS_SUPPORTS_MULTITHREADING
  606. select SYS_SUPPORTS_VPE_LOADER
  607. select BOOT_RAW
  608. select PINCTRL
  609. select USE_OF
  610. config SGI_IP22
  611. bool "SGI IP22 (Indy/Indigo2)"
  612. select ARC_MEMORY
  613. select ARC_PROMLIB
  614. select FW_ARC
  615. select FW_ARC32
  616. select ARCH_MIGHT_HAVE_PC_SERIO
  617. select BOOT_ELF32
  618. select CEVT_R4K
  619. select CSRC_R4K
  620. select DEFAULT_SGI_PARTITION
  621. select DMA_NONCOHERENT
  622. select HAVE_EISA
  623. select I8253
  624. select I8259
  625. select IP22_CPU_SCACHE
  626. select IRQ_MIPS_CPU
  627. select GENERIC_ISA_DMA_SUPPORT_BROKEN
  628. select SGI_HAS_I8042
  629. select SGI_HAS_INDYDOG
  630. select SGI_HAS_HAL2
  631. select SGI_HAS_SEEQ
  632. select SGI_HAS_WD93
  633. select SGI_HAS_ZILOG
  634. select SWAP_IO_SPACE
  635. select SYS_HAS_CPU_R4X00
  636. select SYS_HAS_CPU_R5000
  637. select SYS_HAS_EARLY_PRINTK
  638. select SYS_SUPPORTS_32BIT_KERNEL
  639. select SYS_SUPPORTS_64BIT_KERNEL
  640. select SYS_SUPPORTS_BIG_ENDIAN
  641. select WAR_R4600_V1_INDEX_ICACHEOP
  642. select WAR_R4600_V1_HIT_CACHEOP
  643. select WAR_R4600_V2_HIT_CACHEOP
  644. select MIPS_L1_CACHE_SHIFT_7
  645. help
  646. This are the SGI Indy, Challenge S and Indigo2, as well as certain
  647. OEM variants like the Tandem CMN B006S. To compile a Linux kernel
  648. that runs on these, say Y here.
  649. config SGI_IP27
  650. bool "SGI IP27 (Origin200/2000)"
  651. select ARCH_HAS_PHYS_TO_DMA
  652. select ARCH_SPARSEMEM_ENABLE
  653. select FW_ARC
  654. select FW_ARC64
  655. select ARC_CMDLINE_ONLY
  656. select BOOT_ELF64
  657. select DEFAULT_SGI_PARTITION
  658. select FORCE_PCI
  659. select SYS_HAS_EARLY_PRINTK
  660. select HAVE_PCI
  661. select IRQ_MIPS_CPU
  662. select IRQ_DOMAIN_HIERARCHY
  663. select NR_CPUS_DEFAULT_64
  664. select PCI_DRIVERS_GENERIC
  665. select PCI_XTALK_BRIDGE
  666. select SYS_HAS_CPU_R10000
  667. select SYS_SUPPORTS_64BIT_KERNEL
  668. select SYS_SUPPORTS_BIG_ENDIAN
  669. select SYS_SUPPORTS_NUMA
  670. select SYS_SUPPORTS_SMP
  671. select WAR_R10000_LLSC
  672. select MIPS_L1_CACHE_SHIFT_7
  673. select NUMA
  674. select HAVE_ARCH_NODEDATA_EXTENSION
  675. help
  676. This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
  677. workstations. To compile a Linux kernel that runs on these, say Y
  678. here.
  679. config SGI_IP28
  680. bool "SGI IP28 (Indigo2 R10k)"
  681. select ARC_MEMORY
  682. select ARC_PROMLIB
  683. select FW_ARC
  684. select FW_ARC64
  685. select ARCH_MIGHT_HAVE_PC_SERIO
  686. select BOOT_ELF64
  687. select CEVT_R4K
  688. select CSRC_R4K
  689. select DEFAULT_SGI_PARTITION
  690. select DMA_NONCOHERENT
  691. select GENERIC_ISA_DMA_SUPPORT_BROKEN
  692. select IRQ_MIPS_CPU
  693. select HAVE_EISA
  694. select I8253
  695. select I8259
  696. select SGI_HAS_I8042
  697. select SGI_HAS_INDYDOG
  698. select SGI_HAS_HAL2
  699. select SGI_HAS_SEEQ
  700. select SGI_HAS_WD93
  701. select SGI_HAS_ZILOG
  702. select SWAP_IO_SPACE
  703. select SYS_HAS_CPU_R10000
  704. select SYS_HAS_EARLY_PRINTK
  705. select SYS_SUPPORTS_64BIT_KERNEL
  706. select SYS_SUPPORTS_BIG_ENDIAN
  707. select WAR_R10000_LLSC
  708. select MIPS_L1_CACHE_SHIFT_7
  709. help
  710. This is the SGI Indigo2 with R10000 processor. To compile a Linux
  711. kernel that runs on these, say Y here.
  712. config SGI_IP30
  713. bool "SGI IP30 (Octane/Octane2)"
  714. select ARCH_HAS_PHYS_TO_DMA
  715. select FW_ARC
  716. select FW_ARC64
  717. select BOOT_ELF64
  718. select CEVT_R4K
  719. select CSRC_R4K
  720. select FORCE_PCI
  721. select SYNC_R4K if SMP
  722. select ZONE_DMA32
  723. select HAVE_PCI
  724. select IRQ_MIPS_CPU
  725. select IRQ_DOMAIN_HIERARCHY
  726. select PCI_DRIVERS_GENERIC
  727. select PCI_XTALK_BRIDGE
  728. select SYS_HAS_EARLY_PRINTK
  729. select SYS_HAS_CPU_R10000
  730. select SYS_SUPPORTS_64BIT_KERNEL
  731. select SYS_SUPPORTS_BIG_ENDIAN
  732. select SYS_SUPPORTS_SMP
  733. select WAR_R10000_LLSC
  734. select MIPS_L1_CACHE_SHIFT_7
  735. select ARC_MEMORY
  736. help
  737. These are the SGI Octane and Octane2 graphics workstations. To
  738. compile a Linux kernel that runs on these, say Y here.
  739. config SGI_IP32
  740. bool "SGI IP32 (O2)"
  741. select ARC_MEMORY
  742. select ARC_PROMLIB
  743. select ARCH_HAS_PHYS_TO_DMA
  744. select FW_ARC
  745. select FW_ARC32
  746. select BOOT_ELF32
  747. select CEVT_R4K
  748. select CSRC_R4K
  749. select DMA_NONCOHERENT
  750. select HAVE_PCI
  751. select IRQ_MIPS_CPU
  752. select R5000_CPU_SCACHE
  753. select RM7000_CPU_SCACHE
  754. select SYS_HAS_CPU_R5000
  755. select SYS_HAS_CPU_R10000 if BROKEN
  756. select SYS_HAS_CPU_RM7000
  757. select SYS_HAS_CPU_NEVADA
  758. select SYS_SUPPORTS_64BIT_KERNEL
  759. select SYS_SUPPORTS_BIG_ENDIAN
  760. select WAR_ICACHE_REFILLS
  761. help
  762. If you want this kernel to run on SGI O2 workstation, say Y here.
  763. config SIBYTE_CRHINE
  764. bool "Sibyte BCM91120C-CRhine"
  765. select BOOT_ELF32
  766. select SIBYTE_BCM1120
  767. select SWAP_IO_SPACE
  768. select SYS_HAS_CPU_SB1
  769. select SYS_SUPPORTS_BIG_ENDIAN
  770. select SYS_SUPPORTS_LITTLE_ENDIAN
  771. config SIBYTE_CARMEL
  772. bool "Sibyte BCM91120x-Carmel"
  773. select BOOT_ELF32
  774. select SIBYTE_BCM1120
  775. select SWAP_IO_SPACE
  776. select SYS_HAS_CPU_SB1
  777. select SYS_SUPPORTS_BIG_ENDIAN
  778. select SYS_SUPPORTS_LITTLE_ENDIAN
  779. config SIBYTE_CRHONE
  780. bool "Sibyte BCM91125C-CRhone"
  781. select BOOT_ELF32
  782. select SIBYTE_BCM1125
  783. select SWAP_IO_SPACE
  784. select SYS_HAS_CPU_SB1
  785. select SYS_SUPPORTS_BIG_ENDIAN
  786. select SYS_SUPPORTS_HIGHMEM
  787. select SYS_SUPPORTS_LITTLE_ENDIAN
  788. config SIBYTE_RHONE
  789. bool "Sibyte BCM91125E-Rhone"
  790. select BOOT_ELF32
  791. select SIBYTE_BCM1125H
  792. select SWAP_IO_SPACE
  793. select SYS_HAS_CPU_SB1
  794. select SYS_SUPPORTS_BIG_ENDIAN
  795. select SYS_SUPPORTS_LITTLE_ENDIAN
  796. config SIBYTE_SWARM
  797. bool "Sibyte BCM91250A-SWARM"
  798. select BOOT_ELF32
  799. select HAVE_PATA_PLATFORM
  800. select SIBYTE_SB1250
  801. select SWAP_IO_SPACE
  802. select SYS_HAS_CPU_SB1
  803. select SYS_SUPPORTS_BIG_ENDIAN
  804. select SYS_SUPPORTS_HIGHMEM
  805. select SYS_SUPPORTS_LITTLE_ENDIAN
  806. select ZONE_DMA32 if 64BIT
  807. select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
  808. config SIBYTE_LITTLESUR
  809. bool "Sibyte BCM91250C2-LittleSur"
  810. select BOOT_ELF32
  811. select HAVE_PATA_PLATFORM
  812. select SIBYTE_SB1250
  813. select SWAP_IO_SPACE
  814. select SYS_HAS_CPU_SB1
  815. select SYS_SUPPORTS_BIG_ENDIAN
  816. select SYS_SUPPORTS_HIGHMEM
  817. select SYS_SUPPORTS_LITTLE_ENDIAN
  818. select ZONE_DMA32 if 64BIT
  819. config SIBYTE_SENTOSA
  820. bool "Sibyte BCM91250E-Sentosa"
  821. select BOOT_ELF32
  822. select SIBYTE_SB1250
  823. select SWAP_IO_SPACE
  824. select SYS_HAS_CPU_SB1
  825. select SYS_SUPPORTS_BIG_ENDIAN
  826. select SYS_SUPPORTS_LITTLE_ENDIAN
  827. select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
  828. config SIBYTE_BIGSUR
  829. bool "Sibyte BCM91480B-BigSur"
  830. select BOOT_ELF32
  831. select NR_CPUS_DEFAULT_4
  832. select SIBYTE_BCM1x80
  833. select SWAP_IO_SPACE
  834. select SYS_HAS_CPU_SB1
  835. select SYS_SUPPORTS_BIG_ENDIAN
  836. select SYS_SUPPORTS_HIGHMEM
  837. select SYS_SUPPORTS_LITTLE_ENDIAN
  838. select ZONE_DMA32 if 64BIT
  839. select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
  840. config SNI_RM
  841. bool "SNI RM200/300/400"
  842. select ARC_MEMORY
  843. select ARC_PROMLIB
  844. select FW_ARC if CPU_LITTLE_ENDIAN
  845. select FW_ARC32 if CPU_LITTLE_ENDIAN
  846. select FW_SNIPROM if CPU_BIG_ENDIAN
  847. select ARCH_MAY_HAVE_PC_FDC
  848. select ARCH_MIGHT_HAVE_PC_PARPORT
  849. select ARCH_MIGHT_HAVE_PC_SERIO
  850. select BOOT_ELF32
  851. select CEVT_R4K
  852. select CSRC_R4K
  853. select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
  854. select DMA_NONCOHERENT
  855. select GENERIC_ISA_DMA
  856. select HAVE_EISA
  857. select HAVE_PCSPKR_PLATFORM
  858. select HAVE_PCI
  859. select IRQ_MIPS_CPU
  860. select I8253
  861. select I8259
  862. select ISA
  863. select MIPS_L1_CACHE_SHIFT_6
  864. select SWAP_IO_SPACE if CPU_BIG_ENDIAN
  865. select SYS_HAS_CPU_R4X00
  866. select SYS_HAS_CPU_R5000
  867. select SYS_HAS_CPU_R10000
  868. select R5000_CPU_SCACHE
  869. select SYS_HAS_EARLY_PRINTK
  870. select SYS_SUPPORTS_32BIT_KERNEL
  871. select SYS_SUPPORTS_64BIT_KERNEL
  872. select SYS_SUPPORTS_BIG_ENDIAN
  873. select SYS_SUPPORTS_HIGHMEM
  874. select SYS_SUPPORTS_LITTLE_ENDIAN
  875. select WAR_R4600_V2_HIT_CACHEOP
  876. help
  877. The SNI RM200/300/400 are MIPS-based machines manufactured by
  878. Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
  879. Technology and now in turn merged with Fujitsu. Say Y here to
  880. support this machine type.
  881. config MACH_TX49XX
  882. bool "Toshiba TX49 series based machines"
  883. select WAR_TX49XX_ICACHE_INDEX_INV
  884. config MIKROTIK_RB532
  885. bool "Mikrotik RB532 boards"
  886. select CEVT_R4K
  887. select CSRC_R4K
  888. select DMA_NONCOHERENT
  889. select HAVE_PCI
  890. select IRQ_MIPS_CPU
  891. select SYS_HAS_CPU_MIPS32_R1
  892. select SYS_SUPPORTS_32BIT_KERNEL
  893. select SYS_SUPPORTS_LITTLE_ENDIAN
  894. select SWAP_IO_SPACE
  895. select BOOT_RAW
  896. select GPIOLIB
  897. select MIPS_L1_CACHE_SHIFT_4
  898. help
  899. Support the Mikrotik(tm) RouterBoard 532 series,
  900. based on the IDT RC32434 SoC.
  901. config CAVIUM_OCTEON_SOC
  902. bool "Cavium Networks Octeon SoC based boards"
  903. select CEVT_R4K
  904. select ARCH_HAS_PHYS_TO_DMA
  905. select HAVE_RAPIDIO
  906. select PHYS_ADDR_T_64BIT
  907. select SYS_SUPPORTS_64BIT_KERNEL
  908. select SYS_SUPPORTS_BIG_ENDIAN
  909. select EDAC_SUPPORT
  910. select EDAC_ATOMIC_SCRUB
  911. select SYS_SUPPORTS_LITTLE_ENDIAN
  912. select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN
  913. select SYS_HAS_EARLY_PRINTK
  914. select SYS_HAS_CPU_CAVIUM_OCTEON
  915. select HAVE_PCI
  916. select HAVE_PLAT_DELAY
  917. select HAVE_PLAT_FW_INIT_CMDLINE
  918. select HAVE_PLAT_MEMCPY
  919. select ZONE_DMA32
  920. select GPIOLIB
  921. select USE_OF
  922. select ARCH_SPARSEMEM_ENABLE
  923. select SYS_SUPPORTS_SMP
  924. select NR_CPUS_DEFAULT_64
  925. select MIPS_NR_CPU_NR_MAP_1024
  926. select BUILTIN_DTB
  927. select MTD
  928. select MTD_COMPLEX_MAPPINGS
  929. select SWIOTLB
  930. select SYS_SUPPORTS_RELOCATABLE
  931. help
  932. This option supports all of the Octeon reference boards from Cavium
  933. Networks. It builds a kernel that dynamically determines the Octeon
  934. CPU type and supports all known board reference implementations.
  935. Some of the supported boards are:
  936. EBT3000
  937. EBH3000
  938. EBH3100
  939. Thunder
  940. Kodama
  941. Hikari
  942. Say Y here for most Octeon reference boards.
  943. endchoice
  944. source "arch/mips/alchemy/Kconfig"
  945. source "arch/mips/ath25/Kconfig"
  946. source "arch/mips/ath79/Kconfig"
  947. source "arch/mips/bcm47xx/Kconfig"
  948. source "arch/mips/bcm63xx/Kconfig"
  949. source "arch/mips/bmips/Kconfig"
  950. source "arch/mips/generic/Kconfig"
  951. source "arch/mips/ingenic/Kconfig"
  952. source "arch/mips/jazz/Kconfig"
  953. source "arch/mips/lantiq/Kconfig"
  954. source "arch/mips/pic32/Kconfig"
  955. source "arch/mips/ralink/Kconfig"
  956. source "arch/mips/sgi-ip27/Kconfig"
  957. source "arch/mips/sibyte/Kconfig"
  958. source "arch/mips/txx9/Kconfig"
  959. source "arch/mips/cavium-octeon/Kconfig"
  960. source "arch/mips/loongson2ef/Kconfig"
  961. source "arch/mips/loongson32/Kconfig"
  962. source "arch/mips/loongson64/Kconfig"
  963. endmenu
  964. config GENERIC_HWEIGHT
  965. bool
  966. default y
  967. config GENERIC_CALIBRATE_DELAY
  968. bool
  969. default y
  970. config SCHED_OMIT_FRAME_POINTER
  971. bool
  972. default y
  973. #
  974. # Select some configuration options automatically based on user selections.
  975. #
  976. config FW_ARC
  977. bool
  978. config ARCH_MAY_HAVE_PC_FDC
  979. bool
  980. config BOOT_RAW
  981. bool
  982. config CEVT_BCM1480
  983. bool
  984. config CEVT_DS1287
  985. bool
  986. config CEVT_GT641XX
  987. bool
  988. config CEVT_R4K
  989. bool
  990. config CEVT_SB1250
  991. bool
  992. config CEVT_TXX9
  993. bool
  994. config CSRC_BCM1480
  995. bool
  996. config CSRC_IOASIC
  997. bool
  998. config CSRC_R4K
  999. select CLOCKSOURCE_WATCHDOG if CPU_FREQ
  1000. bool
  1001. config CSRC_SB1250
  1002. bool
  1003. config MIPS_CLOCK_VSYSCALL
  1004. def_bool CSRC_R4K || CLKSRC_MIPS_GIC
  1005. config GPIO_TXX9
  1006. select GPIOLIB
  1007. bool
  1008. config FW_CFE
  1009. bool
  1010. config ARCH_SUPPORTS_UPROBES
  1011. bool
  1012. config DMA_PERDEV_COHERENT
  1013. bool
  1014. select ARCH_HAS_SETUP_DMA_OPS
  1015. select DMA_NONCOHERENT
  1016. config DMA_NONCOHERENT
  1017. bool
  1018. #
  1019. # MIPS allows mixing "slightly different" Cacheability and Coherency
  1020. # Attribute bits. It is believed that the uncached access through
  1021. # KSEG1 and the implementation specific "uncached accelerated" used
  1022. # by pgprot_writcombine can be mixed, and the latter sometimes provides
  1023. # significant advantages.
  1024. #
  1025. select ARCH_HAS_DMA_WRITE_COMBINE
  1026. select ARCH_HAS_DMA_PREP_COHERENT
  1027. select ARCH_HAS_SYNC_DMA_FOR_DEVICE
  1028. select ARCH_HAS_DMA_SET_UNCACHED
  1029. select DMA_NONCOHERENT_MMAP
  1030. select NEED_DMA_MAP_STATE
  1031. config SYS_HAS_EARLY_PRINTK
  1032. bool
  1033. config SYS_SUPPORTS_HOTPLUG_CPU
  1034. bool
  1035. config MIPS_BONITO64
  1036. bool
  1037. config MIPS_MSC
  1038. bool
  1039. config SYNC_R4K
  1040. bool
  1041. config NO_IOPORT_MAP
  1042. def_bool n
  1043. config GENERIC_CSUM
  1044. def_bool CPU_NO_LOAD_STORE_LR
  1045. config GENERIC_ISA_DMA
  1046. bool
  1047. select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
  1048. select ISA_DMA_API
  1049. config GENERIC_ISA_DMA_SUPPORT_BROKEN
  1050. bool
  1051. select GENERIC_ISA_DMA
  1052. config HAVE_PLAT_DELAY
  1053. bool
  1054. config HAVE_PLAT_FW_INIT_CMDLINE
  1055. bool
  1056. config HAVE_PLAT_MEMCPY
  1057. bool
  1058. config ISA_DMA_API
  1059. bool
  1060. config SYS_SUPPORTS_RELOCATABLE
  1061. bool
  1062. help
  1063. Selected if the platform supports relocating the kernel.
  1064. The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
  1065. to allow access to command line and entropy sources.
  1066. #
  1067. # Endianness selection. Sufficiently obscure so many users don't know what to
  1068. # answer,so we try hard to limit the available choices. Also the use of a
  1069. # choice statement should be more obvious to the user.
  1070. #
  1071. choice
  1072. prompt "Endianness selection"
  1073. help
  1074. Some MIPS machines can be configured for either little or big endian
  1075. byte order. These modes require different kernels and a different
  1076. Linux distribution. In general there is one preferred byteorder for a
  1077. particular system but some systems are just as commonly used in the
  1078. one or the other endianness.
  1079. config CPU_BIG_ENDIAN
  1080. bool "Big endian"
  1081. depends on SYS_SUPPORTS_BIG_ENDIAN
  1082. config CPU_LITTLE_ENDIAN
  1083. bool "Little endian"
  1084. depends on SYS_SUPPORTS_LITTLE_ENDIAN
  1085. endchoice
  1086. config EXPORT_UASM
  1087. bool
  1088. config SYS_SUPPORTS_APM_EMULATION
  1089. bool
  1090. config SYS_SUPPORTS_BIG_ENDIAN
  1091. bool
  1092. config SYS_SUPPORTS_LITTLE_ENDIAN
  1093. bool
  1094. config MIPS_HUGE_TLB_SUPPORT
  1095. def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE
  1096. config IRQ_MSP_SLP
  1097. bool
  1098. config IRQ_MSP_CIC
  1099. bool
  1100. config IRQ_TXX9
  1101. bool
  1102. config IRQ_GT641XX
  1103. bool
  1104. config PCI_GT64XXX_PCI0
  1105. bool
  1106. config PCI_XTALK_BRIDGE
  1107. bool
  1108. config NO_EXCEPT_FILL
  1109. bool
  1110. config MIPS_SPRAM
  1111. bool
  1112. config SWAP_IO_SPACE
  1113. bool
  1114. config SGI_HAS_INDYDOG
  1115. bool
  1116. config SGI_HAS_HAL2
  1117. bool
  1118. config SGI_HAS_SEEQ
  1119. bool
  1120. config SGI_HAS_WD93
  1121. bool
  1122. config SGI_HAS_ZILOG
  1123. bool
  1124. config SGI_HAS_I8042
  1125. bool
  1126. config DEFAULT_SGI_PARTITION
  1127. bool
  1128. config FW_ARC32
  1129. bool
  1130. config FW_SNIPROM
  1131. bool
  1132. config BOOT_ELF32
  1133. bool
  1134. config MIPS_L1_CACHE_SHIFT_4
  1135. bool
  1136. config MIPS_L1_CACHE_SHIFT_5
  1137. bool
  1138. config MIPS_L1_CACHE_SHIFT_6
  1139. bool
  1140. config MIPS_L1_CACHE_SHIFT_7
  1141. bool
  1142. config MIPS_L1_CACHE_SHIFT
  1143. int
  1144. default "7" if MIPS_L1_CACHE_SHIFT_7
  1145. default "6" if MIPS_L1_CACHE_SHIFT_6
  1146. default "5" if MIPS_L1_CACHE_SHIFT_5
  1147. default "4" if MIPS_L1_CACHE_SHIFT_4
  1148. default "5"
  1149. config ARC_CMDLINE_ONLY
  1150. bool
  1151. config ARC_CONSOLE
  1152. bool "ARC console support"
  1153. depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN)
  1154. config ARC_MEMORY
  1155. bool
  1156. config ARC_PROMLIB
  1157. bool
  1158. config FW_ARC64
  1159. bool
  1160. config BOOT_ELF64
  1161. bool
  1162. menu "CPU selection"
  1163. choice
  1164. prompt "CPU type"
  1165. default CPU_R4X00
  1166. config CPU_LOONGSON64
  1167. bool "Loongson 64-bit CPU"
  1168. depends on SYS_HAS_CPU_LOONGSON64
  1169. select ARCH_HAS_PHYS_TO_DMA
  1170. select CPU_MIPSR2
  1171. select CPU_HAS_PREFETCH
  1172. select CPU_SUPPORTS_64BIT_KERNEL
  1173. select CPU_SUPPORTS_HIGHMEM
  1174. select CPU_SUPPORTS_HUGEPAGES
  1175. select CPU_SUPPORTS_MSA
  1176. select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT
  1177. select CPU_MIPSR2_IRQ_VI
  1178. select DMA_NONCOHERENT
  1179. select WEAK_ORDERING
  1180. select WEAK_REORDERING_BEYOND_LLSC
  1181. select MIPS_ASID_BITS_VARIABLE
  1182. select MIPS_PGD_C0_CONTEXT
  1183. select MIPS_L1_CACHE_SHIFT_6
  1184. select MIPS_FP_SUPPORT
  1185. select GPIOLIB
  1186. select SWIOTLB
  1187. select HAVE_KVM
  1188. help
  1189. The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor
  1190. cores implements the MIPS64R2 instruction set with many extensions,
  1191. including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000,
  1192. 3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old
  1193. Loongson-2E/2F is not covered here and will be removed in future.
  1194. config LOONGSON3_ENHANCEMENT
  1195. bool "New Loongson-3 CPU Enhancements"
  1196. default n
  1197. depends on CPU_LOONGSON64
  1198. help
  1199. New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A
  1200. R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
  1201. FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User
  1202. Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
  1203. Fast TLB refill support, etc.
  1204. This option enable those enhancements which are not probed at run
  1205. time. If you want a generic kernel to run on all Loongson 3 machines,
  1206. please say 'N' here. If you want a high-performance kernel to run on
  1207. new Loongson-3 machines only, please say 'Y' here.
  1208. config CPU_LOONGSON3_WORKAROUNDS
  1209. bool "Loongson-3 LLSC Workarounds"
  1210. default y if SMP
  1211. depends on CPU_LOONGSON64
  1212. help
  1213. Loongson-3 processors have the llsc issues which require workarounds.
  1214. Without workarounds the system may hang unexpectedly.
  1215. Say Y, unless you know what you are doing.
  1216. config CPU_LOONGSON3_CPUCFG_EMULATION
  1217. bool "Emulate the CPUCFG instruction on older Loongson cores"
  1218. default y
  1219. depends on CPU_LOONGSON64
  1220. help
  1221. Loongson-3A R4 and newer have the CPUCFG instruction available for
  1222. userland to query CPU capabilities, much like CPUID on x86. This
  1223. option provides emulation of the instruction on older Loongson
  1224. cores, back to Loongson-3A1000.
  1225. If unsure, please say Y.
  1226. config CPU_LOONGSON2E
  1227. bool "Loongson 2E"
  1228. depends on SYS_HAS_CPU_LOONGSON2E
  1229. select CPU_LOONGSON2EF
  1230. help
  1231. The Loongson 2E processor implements the MIPS III instruction set
  1232. with many extensions.
  1233. It has an internal FPGA northbridge, which is compatible to
  1234. bonito64.
  1235. config CPU_LOONGSON2F
  1236. bool "Loongson 2F"
  1237. depends on SYS_HAS_CPU_LOONGSON2F
  1238. select CPU_LOONGSON2EF
  1239. select GPIOLIB
  1240. help
  1241. The Loongson 2F processor implements the MIPS III instruction set
  1242. with many extensions.
  1243. Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller
  1244. have a similar programming interface with FPGA northbridge used in
  1245. Loongson2E.
  1246. config CPU_LOONGSON1B
  1247. bool "Loongson 1B"
  1248. depends on SYS_HAS_CPU_LOONGSON1B
  1249. select CPU_LOONGSON32
  1250. select LEDS_GPIO_REGISTER
  1251. help
  1252. The Loongson 1B is a 32-bit SoC, which implements the MIPS32
  1253. Release 1 instruction set and part of the MIPS32 Release 2
  1254. instruction set.
  1255. config CPU_LOONGSON1C
  1256. bool "Loongson 1C"
  1257. depends on SYS_HAS_CPU_LOONGSON1C
  1258. select CPU_LOONGSON32
  1259. select LEDS_GPIO_REGISTER
  1260. help
  1261. The Loongson 1C is a 32-bit SoC, which implements the MIPS32
  1262. Release 1 instruction set and part of the MIPS32 Release 2
  1263. instruction set.
  1264. config CPU_MIPS32_R1
  1265. bool "MIPS32 Release 1"
  1266. depends on SYS_HAS_CPU_MIPS32_R1
  1267. select CPU_HAS_PREFETCH
  1268. select CPU_SUPPORTS_32BIT_KERNEL
  1269. select CPU_SUPPORTS_HIGHMEM
  1270. help
  1271. Choose this option to build a kernel for release 1 or later of the
  1272. MIPS32 architecture. Most modern embedded systems with a 32-bit
  1273. MIPS processor are based on a MIPS32 processor. If you know the
  1274. specific type of processor in your system, choose those that one
  1275. otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
  1276. Release 2 of the MIPS32 architecture is available since several
  1277. years so chances are you even have a MIPS32 Release 2 processor
  1278. in which case you should choose CPU_MIPS32_R2 instead for better
  1279. performance.
  1280. config CPU_MIPS32_R2
  1281. bool "MIPS32 Release 2"
  1282. depends on SYS_HAS_CPU_MIPS32_R2
  1283. select CPU_HAS_PREFETCH
  1284. select CPU_SUPPORTS_32BIT_KERNEL
  1285. select CPU_SUPPORTS_HIGHMEM
  1286. select CPU_SUPPORTS_MSA
  1287. select HAVE_KVM
  1288. help
  1289. Choose this option to build a kernel for release 2 or later of the
  1290. MIPS32 architecture. Most modern embedded systems with a 32-bit
  1291. MIPS processor are based on a MIPS32 processor. If you know the
  1292. specific type of processor in your system, choose those that one
  1293. otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
  1294. config CPU_MIPS32_R5
  1295. bool "MIPS32 Release 5"
  1296. depends on SYS_HAS_CPU_MIPS32_R5
  1297. select CPU_HAS_PREFETCH
  1298. select CPU_SUPPORTS_32BIT_KERNEL
  1299. select CPU_SUPPORTS_HIGHMEM
  1300. select CPU_SUPPORTS_MSA
  1301. select HAVE_KVM
  1302. select MIPS_O32_FP64_SUPPORT
  1303. help
  1304. Choose this option to build a kernel for release 5 or later of the
  1305. MIPS32 architecture. New MIPS processors, starting with the Warrior
  1306. family, are based on a MIPS32r5 processor. If you own an older
  1307. processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
  1308. config CPU_MIPS32_R6
  1309. bool "MIPS32 Release 6"
  1310. depends on SYS_HAS_CPU_MIPS32_R6
  1311. select CPU_HAS_PREFETCH
  1312. select CPU_NO_LOAD_STORE_LR
  1313. select CPU_SUPPORTS_32BIT_KERNEL
  1314. select CPU_SUPPORTS_HIGHMEM
  1315. select CPU_SUPPORTS_MSA
  1316. select HAVE_KVM
  1317. select MIPS_O32_FP64_SUPPORT
  1318. help
  1319. Choose this option to build a kernel for release 6 or later of the
  1320. MIPS32 architecture. New MIPS processors, starting with the Warrior
  1321. family, are based on a MIPS32r6 processor. If you own an older
  1322. processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
  1323. config CPU_MIPS64_R1
  1324. bool "MIPS64 Release 1"
  1325. depends on SYS_HAS_CPU_MIPS64_R1
  1326. select CPU_HAS_PREFETCH
  1327. select CPU_SUPPORTS_32BIT_KERNEL
  1328. select CPU_SUPPORTS_64BIT_KERNEL
  1329. select CPU_SUPPORTS_HIGHMEM
  1330. select CPU_SUPPORTS_HUGEPAGES
  1331. help
  1332. Choose this option to build a kernel for release 1 or later of the
  1333. MIPS64 architecture. Many modern embedded systems with a 64-bit
  1334. MIPS processor are based on a MIPS64 processor. If you know the
  1335. specific type of processor in your system, choose those that one
  1336. otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
  1337. Release 2 of the MIPS64 architecture is available since several
  1338. years so chances are you even have a MIPS64 Release 2 processor
  1339. in which case you should choose CPU_MIPS64_R2 instead for better
  1340. performance.
  1341. config CPU_MIPS64_R2
  1342. bool "MIPS64 Release 2"
  1343. depends on SYS_HAS_CPU_MIPS64_R2
  1344. select CPU_HAS_PREFETCH
  1345. select CPU_SUPPORTS_32BIT_KERNEL
  1346. select CPU_SUPPORTS_64BIT_KERNEL
  1347. select CPU_SUPPORTS_HIGHMEM
  1348. select CPU_SUPPORTS_HUGEPAGES
  1349. select CPU_SUPPORTS_MSA
  1350. select HAVE_KVM
  1351. help
  1352. Choose this option to build a kernel for release 2 or later of the
  1353. MIPS64 architecture. Many modern embedded systems with a 64-bit
  1354. MIPS processor are based on a MIPS64 processor. If you know the
  1355. specific type of processor in your system, choose those that one
  1356. otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
  1357. config CPU_MIPS64_R5
  1358. bool "MIPS64 Release 5"
  1359. depends on SYS_HAS_CPU_MIPS64_R5
  1360. select CPU_HAS_PREFETCH
  1361. select CPU_SUPPORTS_32BIT_KERNEL
  1362. select CPU_SUPPORTS_64BIT_KERNEL
  1363. select CPU_SUPPORTS_HIGHMEM
  1364. select CPU_SUPPORTS_HUGEPAGES
  1365. select CPU_SUPPORTS_MSA
  1366. select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
  1367. select HAVE_KVM
  1368. help
  1369. Choose this option to build a kernel for release 5 or later of the
  1370. MIPS64 architecture. This is a intermediate MIPS architecture
  1371. release partly implementing release 6 features. Though there is no
  1372. any hardware known to be based on this release.
  1373. config CPU_MIPS64_R6
  1374. bool "MIPS64 Release 6"
  1375. depends on SYS_HAS_CPU_MIPS64_R6
  1376. select CPU_HAS_PREFETCH
  1377. select CPU_NO_LOAD_STORE_LR
  1378. select CPU_SUPPORTS_32BIT_KERNEL
  1379. select CPU_SUPPORTS_64BIT_KERNEL
  1380. select CPU_SUPPORTS_HIGHMEM
  1381. select CPU_SUPPORTS_HUGEPAGES
  1382. select CPU_SUPPORTS_MSA
  1383. select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
  1384. select HAVE_KVM
  1385. help
  1386. Choose this option to build a kernel for release 6 or later of the
  1387. MIPS64 architecture. New MIPS processors, starting with the Warrior
  1388. family, are based on a MIPS64r6 processor. If you own an older
  1389. processor, you probably need to select MIPS64r1 or MIPS64r2 instead.
  1390. config CPU_P5600
  1391. bool "MIPS Warrior P5600"
  1392. depends on SYS_HAS_CPU_P5600
  1393. select CPU_HAS_PREFETCH
  1394. select CPU_SUPPORTS_32BIT_KERNEL
  1395. select CPU_SUPPORTS_HIGHMEM
  1396. select CPU_SUPPORTS_MSA
  1397. select CPU_SUPPORTS_CPUFREQ
  1398. select CPU_MIPSR2_IRQ_VI
  1399. select CPU_MIPSR2_IRQ_EI
  1400. select HAVE_KVM
  1401. select MIPS_O32_FP64_SUPPORT
  1402. help
  1403. Choose this option to build a kernel for MIPS Warrior P5600 CPU.
  1404. It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes,
  1405. MMU with two-levels TLB, UCA, MSA, MDU core level features and system
  1406. level features like up to six P5600 calculation cores, CM2 with L2
  1407. cache, IOCU/IOMMU (though might be unused depending on the system-
  1408. specific IP core configuration), GIC, CPC, virtualisation module,
  1409. eJTAG and PDtrace.
  1410. config CPU_R3000
  1411. bool "R3000"
  1412. depends on SYS_HAS_CPU_R3000
  1413. select CPU_HAS_WB
  1414. select CPU_R3K_TLB
  1415. select CPU_SUPPORTS_32BIT_KERNEL
  1416. select CPU_SUPPORTS_HIGHMEM
  1417. help
  1418. Please make sure to pick the right CPU type. Linux/MIPS is not
  1419. designed to be generic, i.e. Kernels compiled for R3000 CPUs will
  1420. *not* work on R4000 machines and vice versa. However, since most
  1421. of the supported machines have an R4000 (or similar) CPU, R4x00
  1422. might be a safe bet. If the resulting kernel does not work,
  1423. try to recompile with R3000.
  1424. config CPU_R4300
  1425. bool "R4300"
  1426. depends on SYS_HAS_CPU_R4300
  1427. select CPU_SUPPORTS_32BIT_KERNEL
  1428. select CPU_SUPPORTS_64BIT_KERNEL
  1429. help
  1430. MIPS Technologies R4300-series processors.
  1431. config CPU_R4X00
  1432. bool "R4x00"
  1433. depends on SYS_HAS_CPU_R4X00
  1434. select CPU_SUPPORTS_32BIT_KERNEL
  1435. select CPU_SUPPORTS_64BIT_KERNEL
  1436. select CPU_SUPPORTS_HUGEPAGES
  1437. help
  1438. MIPS Technologies R4000-series processors other than 4300, including
  1439. the R4000, R4400, R4600, and 4700.
  1440. config CPU_TX49XX
  1441. bool "R49XX"
  1442. depends on SYS_HAS_CPU_TX49XX
  1443. select CPU_HAS_PREFETCH
  1444. select CPU_SUPPORTS_32BIT_KERNEL
  1445. select CPU_SUPPORTS_64BIT_KERNEL
  1446. select CPU_SUPPORTS_HUGEPAGES
  1447. config CPU_R5000
  1448. bool "R5000"
  1449. depends on SYS_HAS_CPU_R5000
  1450. select CPU_SUPPORTS_32BIT_KERNEL
  1451. select CPU_SUPPORTS_64BIT_KERNEL
  1452. select CPU_SUPPORTS_HUGEPAGES
  1453. help
  1454. MIPS Technologies R5000-series processors other than the Nevada.
  1455. config CPU_R5500
  1456. bool "R5500"
  1457. depends on SYS_HAS_CPU_R5500
  1458. select CPU_SUPPORTS_32BIT_KERNEL
  1459. select CPU_SUPPORTS_64BIT_KERNEL
  1460. select CPU_SUPPORTS_HUGEPAGES
  1461. help
  1462. NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV
  1463. instruction set.
  1464. config CPU_NEVADA
  1465. bool "RM52xx"
  1466. depends on SYS_HAS_CPU_NEVADA
  1467. select CPU_SUPPORTS_32BIT_KERNEL
  1468. select CPU_SUPPORTS_64BIT_KERNEL
  1469. select CPU_SUPPORTS_HUGEPAGES
  1470. help
  1471. QED / PMC-Sierra RM52xx-series ("Nevada") processors.
  1472. config CPU_R10000
  1473. bool "R10000"
  1474. depends on SYS_HAS_CPU_R10000
  1475. select CPU_HAS_PREFETCH
  1476. select CPU_SUPPORTS_32BIT_KERNEL
  1477. select CPU_SUPPORTS_64BIT_KERNEL
  1478. select CPU_SUPPORTS_HIGHMEM
  1479. select CPU_SUPPORTS_HUGEPAGES
  1480. help
  1481. MIPS Technologies R10000-series processors.
  1482. config CPU_RM7000
  1483. bool "RM7000"
  1484. depends on SYS_HAS_CPU_RM7000
  1485. select CPU_HAS_PREFETCH
  1486. select CPU_SUPPORTS_32BIT_KERNEL
  1487. select CPU_SUPPORTS_64BIT_KERNEL
  1488. select CPU_SUPPORTS_HIGHMEM
  1489. select CPU_SUPPORTS_HUGEPAGES
  1490. config CPU_SB1
  1491. bool "SB1"
  1492. depends on SYS_HAS_CPU_SB1
  1493. select CPU_SUPPORTS_32BIT_KERNEL
  1494. select CPU_SUPPORTS_64BIT_KERNEL
  1495. select CPU_SUPPORTS_HIGHMEM
  1496. select CPU_SUPPORTS_HUGEPAGES
  1497. select WEAK_ORDERING
  1498. config CPU_CAVIUM_OCTEON
  1499. bool "Cavium Octeon processor"
  1500. depends on SYS_HAS_CPU_CAVIUM_OCTEON
  1501. select CPU_HAS_PREFETCH
  1502. select CPU_SUPPORTS_64BIT_KERNEL
  1503. select WEAK_ORDERING
  1504. select CPU_SUPPORTS_HIGHMEM
  1505. select CPU_SUPPORTS_HUGEPAGES
  1506. select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
  1507. select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
  1508. select MIPS_L1_CACHE_SHIFT_7
  1509. select HAVE_KVM
  1510. help
  1511. The Cavium Octeon processor is a highly integrated chip containing
  1512. many ethernet hardware widgets for networking tasks. The processor
  1513. can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets.
  1514. Full details can be found at http://www.caviumnetworks.com.
  1515. config CPU_BMIPS
  1516. bool "Broadcom BMIPS"
  1517. depends on SYS_HAS_CPU_BMIPS
  1518. select CPU_MIPS32
  1519. select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300
  1520. select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350
  1521. select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380
  1522. select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000
  1523. select CPU_SUPPORTS_32BIT_KERNEL
  1524. select DMA_NONCOHERENT
  1525. select IRQ_MIPS_CPU
  1526. select SWAP_IO_SPACE
  1527. select WEAK_ORDERING
  1528. select CPU_SUPPORTS_HIGHMEM
  1529. select CPU_HAS_PREFETCH
  1530. select CPU_SUPPORTS_CPUFREQ
  1531. select MIPS_EXTERNAL_TIMER
  1532. select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
  1533. help
  1534. Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors.
  1535. endchoice
  1536. config CPU_MIPS32_3_5_FEATURES
  1537. bool "MIPS32 Release 3.5 Features"
  1538. depends on SYS_HAS_CPU_MIPS32_R3_5
  1539. depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \
  1540. CPU_P5600
  1541. help
  1542. Choose this option to build a kernel for release 2 or later of the
  1543. MIPS32 architecture including features from the 3.5 release such as
  1544. support for Enhanced Virtual Addressing (EVA).
  1545. config CPU_MIPS32_3_5_EVA
  1546. bool "Enhanced Virtual Addressing (EVA)"
  1547. depends on CPU_MIPS32_3_5_FEATURES
  1548. select EVA
  1549. default y
  1550. help
  1551. Choose this option if you want to enable the Enhanced Virtual
  1552. Addressing (EVA) on your MIPS32 core (such as proAptiv).
  1553. One of its primary benefits is an increase in the maximum size
  1554. of lowmem (up to 3GB). If unsure, say 'N' here.
  1555. config CPU_MIPS32_R5_FEATURES
  1556. bool "MIPS32 Release 5 Features"
  1557. depends on SYS_HAS_CPU_MIPS32_R5
  1558. depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600
  1559. help
  1560. Choose this option to build a kernel for release 2 or later of the
  1561. MIPS32 architecture including features from release 5 such as
  1562. support for Extended Physical Addressing (XPA).
  1563. config CPU_MIPS32_R5_XPA
  1564. bool "Extended Physical Addressing (XPA)"
  1565. depends on CPU_MIPS32_R5_FEATURES
  1566. depends on !EVA
  1567. depends on !PAGE_SIZE_4KB
  1568. depends on SYS_SUPPORTS_HIGHMEM
  1569. select XPA
  1570. select HIGHMEM
  1571. select PHYS_ADDR_T_64BIT
  1572. default n
  1573. help
  1574. Choose this option if you want to enable the Extended Physical
  1575. Addressing (XPA) on your MIPS32 core (such as P5600 series). The
  1576. benefit is to increase physical addressing equal to or greater
  1577. than 40 bits. Note that this has the side effect of turning on
  1578. 64-bit addressing which in turn makes the PTEs 64-bit in size.
  1579. If unsure, say 'N' here.
  1580. if CPU_LOONGSON2F
  1581. config CPU_NOP_WORKAROUNDS
  1582. bool
  1583. config CPU_JUMP_WORKAROUNDS
  1584. bool
  1585. config CPU_LOONGSON2F_WORKAROUNDS
  1586. bool "Loongson 2F Workarounds"
  1587. default y
  1588. select CPU_NOP_WORKAROUNDS
  1589. select CPU_JUMP_WORKAROUNDS
  1590. help
  1591. Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which
  1592. require workarounds. Without workarounds the system may hang
  1593. unexpectedly. For more information please refer to the gas
  1594. -mfix-loongson2f-nop and -mfix-loongson2f-jump options.
  1595. Loongson 2F03 and later have fixed these issues and no workarounds
  1596. are needed. The workarounds have no significant side effect on them
  1597. but may decrease the performance of the system so this option should
  1598. be disabled unless the kernel is intended to be run on 2F01 or 2F02
  1599. systems.
  1600. If unsure, please say Y.
  1601. endif # CPU_LOONGSON2F
  1602. config SYS_SUPPORTS_ZBOOT
  1603. bool
  1604. select HAVE_KERNEL_GZIP
  1605. select HAVE_KERNEL_BZIP2
  1606. select HAVE_KERNEL_LZ4
  1607. select HAVE_KERNEL_LZMA
  1608. select HAVE_KERNEL_LZO
  1609. select HAVE_KERNEL_XZ
  1610. select HAVE_KERNEL_ZSTD
  1611. config SYS_SUPPORTS_ZBOOT_UART16550
  1612. bool
  1613. select SYS_SUPPORTS_ZBOOT
  1614. config SYS_SUPPORTS_ZBOOT_UART_PROM
  1615. bool
  1616. select SYS_SUPPORTS_ZBOOT
  1617. config CPU_LOONGSON2EF
  1618. bool
  1619. select CPU_SUPPORTS_32BIT_KERNEL
  1620. select CPU_SUPPORTS_64BIT_KERNEL
  1621. select CPU_SUPPORTS_HIGHMEM
  1622. select CPU_SUPPORTS_HUGEPAGES
  1623. select ARCH_HAS_PHYS_TO_DMA
  1624. config CPU_LOONGSON32
  1625. bool
  1626. select CPU_MIPS32
  1627. select CPU_MIPSR2
  1628. select CPU_HAS_PREFETCH
  1629. select CPU_SUPPORTS_32BIT_KERNEL
  1630. select CPU_SUPPORTS_HIGHMEM
  1631. select CPU_SUPPORTS_CPUFREQ
  1632. config CPU_BMIPS32_3300
  1633. select SMP_UP if SMP
  1634. bool
  1635. config CPU_BMIPS4350
  1636. bool
  1637. select SYS_SUPPORTS_SMP
  1638. select SYS_SUPPORTS_HOTPLUG_CPU
  1639. config CPU_BMIPS4380
  1640. bool
  1641. select MIPS_L1_CACHE_SHIFT_6
  1642. select SYS_SUPPORTS_SMP
  1643. select SYS_SUPPORTS_HOTPLUG_CPU
  1644. select CPU_HAS_RIXI
  1645. config CPU_BMIPS5000
  1646. bool
  1647. select MIPS_CPU_SCACHE
  1648. select MIPS_L1_CACHE_SHIFT_7
  1649. select SYS_SUPPORTS_SMP
  1650. select SYS_SUPPORTS_HOTPLUG_CPU
  1651. select CPU_HAS_RIXI
  1652. config SYS_HAS_CPU_LOONGSON64
  1653. bool
  1654. select CPU_SUPPORTS_CPUFREQ
  1655. select CPU_HAS_RIXI
  1656. config SYS_HAS_CPU_LOONGSON2E
  1657. bool
  1658. config SYS_HAS_CPU_LOONGSON2F
  1659. bool
  1660. select CPU_SUPPORTS_CPUFREQ
  1661. select CPU_SUPPORTS_ADDRWINCFG if 64BIT
  1662. config SYS_HAS_CPU_LOONGSON1B
  1663. bool
  1664. config SYS_HAS_CPU_LOONGSON1C
  1665. bool
  1666. config SYS_HAS_CPU_MIPS32_R1
  1667. bool
  1668. config SYS_HAS_CPU_MIPS32_R2
  1669. bool
  1670. config SYS_HAS_CPU_MIPS32_R3_5
  1671. bool
  1672. config SYS_HAS_CPU_MIPS32_R5
  1673. bool
  1674. select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
  1675. config SYS_HAS_CPU_MIPS32_R6
  1676. bool
  1677. select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
  1678. config SYS_HAS_CPU_MIPS64_R1
  1679. bool
  1680. config SYS_HAS_CPU_MIPS64_R2
  1681. bool
  1682. config SYS_HAS_CPU_MIPS64_R5
  1683. bool
  1684. select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
  1685. config SYS_HAS_CPU_MIPS64_R6
  1686. bool
  1687. select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
  1688. config SYS_HAS_CPU_P5600
  1689. bool
  1690. select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
  1691. config SYS_HAS_CPU_R3000
  1692. bool
  1693. config SYS_HAS_CPU_R4300
  1694. bool
  1695. config SYS_HAS_CPU_R4X00
  1696. bool
  1697. config SYS_HAS_CPU_TX49XX
  1698. bool
  1699. config SYS_HAS_CPU_R5000
  1700. bool
  1701. config SYS_HAS_CPU_R5500
  1702. bool
  1703. config SYS_HAS_CPU_NEVADA
  1704. bool
  1705. config SYS_HAS_CPU_R10000
  1706. bool
  1707. select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
  1708. config SYS_HAS_CPU_RM7000
  1709. bool
  1710. config SYS_HAS_CPU_SB1
  1711. bool
  1712. config SYS_HAS_CPU_CAVIUM_OCTEON
  1713. bool
  1714. config SYS_HAS_CPU_BMIPS
  1715. bool
  1716. config SYS_HAS_CPU_BMIPS32_3300
  1717. bool
  1718. select SYS_HAS_CPU_BMIPS
  1719. config SYS_HAS_CPU_BMIPS4350
  1720. bool
  1721. select SYS_HAS_CPU_BMIPS
  1722. config SYS_HAS_CPU_BMIPS4380
  1723. bool
  1724. select SYS_HAS_CPU_BMIPS
  1725. config SYS_HAS_CPU_BMIPS5000
  1726. bool
  1727. select SYS_HAS_CPU_BMIPS
  1728. select ARCH_HAS_SYNC_DMA_FOR_CPU
  1729. #
  1730. # CPU may reorder R->R, R->W, W->R, W->W
  1731. # Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
  1732. #
  1733. config WEAK_ORDERING
  1734. bool
  1735. #
  1736. # CPU may reorder reads and writes beyond LL/SC
  1737. # CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
  1738. #
  1739. config WEAK_REORDERING_BEYOND_LLSC
  1740. bool
  1741. endmenu
  1742. #
  1743. # These two indicate any level of the MIPS32 and MIPS64 architecture
  1744. #
  1745. config CPU_MIPS32
  1746. bool
  1747. default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \
  1748. CPU_MIPS32_R6 || CPU_P5600
  1749. config CPU_MIPS64
  1750. bool
  1751. default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \
  1752. CPU_MIPS64_R6 || CPU_LOONGSON64 || CPU_CAVIUM_OCTEON
  1753. #
  1754. # These indicate the revision of the architecture
  1755. #
  1756. config CPU_MIPSR1
  1757. bool
  1758. default y if CPU_MIPS32_R1 || CPU_MIPS64_R1
  1759. config CPU_MIPSR2
  1760. bool
  1761. default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON
  1762. select CPU_HAS_RIXI
  1763. select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
  1764. select MIPS_SPRAM
  1765. config CPU_MIPSR5
  1766. bool
  1767. default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600
  1768. select CPU_HAS_RIXI
  1769. select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
  1770. select MIPS_SPRAM
  1771. config CPU_MIPSR6
  1772. bool
  1773. default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
  1774. select CPU_HAS_RIXI
  1775. select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
  1776. select HAVE_ARCH_BITREVERSE
  1777. select MIPS_ASID_BITS_VARIABLE
  1778. select MIPS_CRC_SUPPORT
  1779. select MIPS_SPRAM
  1780. config TARGET_ISA_REV
  1781. int
  1782. default 1 if CPU_MIPSR1
  1783. default 2 if CPU_MIPSR2
  1784. default 5 if CPU_MIPSR5
  1785. default 6 if CPU_MIPSR6
  1786. default 0
  1787. help
  1788. Reflects the ISA revision being targeted by the kernel build. This
  1789. is effectively the Kconfig equivalent of MIPS_ISA_REV.
  1790. config EVA
  1791. bool
  1792. config XPA
  1793. bool
  1794. config SYS_SUPPORTS_32BIT_KERNEL
  1795. bool
  1796. config SYS_SUPPORTS_64BIT_KERNEL
  1797. bool
  1798. config CPU_SUPPORTS_32BIT_KERNEL
  1799. bool
  1800. config CPU_SUPPORTS_64BIT_KERNEL
  1801. bool
  1802. config CPU_SUPPORTS_CPUFREQ
  1803. bool
  1804. config CPU_SUPPORTS_ADDRWINCFG
  1805. bool
  1806. config CPU_SUPPORTS_HUGEPAGES
  1807. bool
  1808. depends on !(32BIT && (PHYS_ADDR_T_64BIT || EVA))
  1809. config MIPS_PGD_C0_CONTEXT
  1810. bool
  1811. depends on 64BIT
  1812. default y if (CPU_MIPSR2 || CPU_MIPSR6)
  1813. #
  1814. # Set to y for ptrace access to watch registers.
  1815. #
  1816. config HARDWARE_WATCHPOINTS
  1817. bool
  1818. default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
  1819. menu "Kernel type"
  1820. choice
  1821. prompt "Kernel code model"
  1822. help
  1823. You should only select this option if you have a workload that
  1824. actually benefits from 64-bit processing or if your machine has
  1825. large memory. You will only be presented a single option in this
  1826. menu if your system does not support both 32-bit and 64-bit kernels.
  1827. config 32BIT
  1828. bool "32-bit kernel"
  1829. depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
  1830. select TRAD_SIGNALS
  1831. help
  1832. Select this option if you want to build a 32-bit kernel.
  1833. config 64BIT
  1834. bool "64-bit kernel"
  1835. depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
  1836. help
  1837. Select this option if you want to build a 64-bit kernel.
  1838. endchoice
  1839. config MIPS_VA_BITS_48
  1840. bool "48 bits virtual memory"
  1841. depends on 64BIT
  1842. help
  1843. Support a maximum at least 48 bits of application virtual
  1844. memory. Default is 40 bits or less, depending on the CPU.
  1845. For page sizes 16k and above, this option results in a small
  1846. memory overhead for page tables. For 4k page size, a fourth
  1847. level of page tables is added which imposes both a memory
  1848. overhead as well as slower TLB fault handling.
  1849. If unsure, say N.
  1850. config ZBOOT_LOAD_ADDRESS
  1851. hex "Compressed kernel load address"
  1852. default 0xffffffff80400000 if BCM47XX
  1853. default 0x0
  1854. depends on SYS_SUPPORTS_ZBOOT
  1855. help
  1856. The address to load compressed kernel, aka vmlinuz.
  1857. This is only used if non-zero.
  1858. choice
  1859. prompt "Kernel page size"
  1860. default PAGE_SIZE_4KB
  1861. config PAGE_SIZE_4KB
  1862. bool "4kB"
  1863. depends on !CPU_LOONGSON2EF && !CPU_LOONGSON64
  1864. help
  1865. This option select the standard 4kB Linux page size. On some
  1866. R3000-family processors this is the only available page size. Using
  1867. 4kB page size will minimize memory consumption and is therefore
  1868. recommended for low memory systems.
  1869. config PAGE_SIZE_8KB
  1870. bool "8kB"
  1871. depends on CPU_CAVIUM_OCTEON
  1872. depends on !MIPS_VA_BITS_48
  1873. help
  1874. Using 8kB page size will result in higher performance kernel at
  1875. the price of higher memory consumption. This option is available
  1876. only on cnMIPS processors. Note that you will need a suitable Linux
  1877. distribution to support this.
  1878. config PAGE_SIZE_16KB
  1879. bool "16kB"
  1880. depends on !CPU_R3000
  1881. help
  1882. Using 16kB page size will result in higher performance kernel at
  1883. the price of higher memory consumption. This option is available on
  1884. all non-R3000 family processors. Note that you will need a suitable
  1885. Linux distribution to support this.
  1886. config PAGE_SIZE_32KB
  1887. bool "32kB"
  1888. depends on CPU_CAVIUM_OCTEON
  1889. depends on !MIPS_VA_BITS_48
  1890. help
  1891. Using 32kB page size will result in higher performance kernel at
  1892. the price of higher memory consumption. This option is available
  1893. only on cnMIPS cores. Note that you will need a suitable Linux
  1894. distribution to support this.
  1895. config PAGE_SIZE_64KB
  1896. bool "64kB"
  1897. depends on !CPU_R3000
  1898. help
  1899. Using 64kB page size will result in higher performance kernel at
  1900. the price of higher memory consumption. This option is available on
  1901. all non-R3000 family processor. Not that at the time of this
  1902. writing this option is still high experimental.
  1903. endchoice
  1904. config ARCH_FORCE_MAX_ORDER
  1905. int "Maximum zone order"
  1906. range 14 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
  1907. default "14" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
  1908. range 13 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
  1909. default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
  1910. range 12 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
  1911. default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
  1912. range 0 64
  1913. default "11"
  1914. help
  1915. The kernel memory allocator divides physically contiguous memory
  1916. blocks into "zones", where each zone is a power of two number of
  1917. pages. This option selects the largest power of two that the kernel
  1918. keeps in the memory allocator. If you need to allocate very large
  1919. blocks of physically contiguous memory, then you may need to
  1920. increase this value.
  1921. This config option is actually maximum order plus one. For example,
  1922. a value of 11 means that the largest free memory block is 2^10 pages.
  1923. The page size is not necessarily 4KB. Keep this in mind
  1924. when choosing a value for this option.
  1925. config BOARD_SCACHE
  1926. bool
  1927. config IP22_CPU_SCACHE
  1928. bool
  1929. select BOARD_SCACHE
  1930. #
  1931. # Support for a MIPS32 / MIPS64 style S-caches
  1932. #
  1933. config MIPS_CPU_SCACHE
  1934. bool
  1935. select BOARD_SCACHE
  1936. config R5000_CPU_SCACHE
  1937. bool
  1938. select BOARD_SCACHE
  1939. config RM7000_CPU_SCACHE
  1940. bool
  1941. select BOARD_SCACHE
  1942. config SIBYTE_DMA_PAGEOPS
  1943. bool "Use DMA to clear/copy pages"
  1944. depends on CPU_SB1
  1945. help
  1946. Instead of using the CPU to zero and copy pages, use a Data Mover
  1947. channel. These DMA channels are otherwise unused by the standard
  1948. SiByte Linux port. Seems to give a small performance benefit.
  1949. config CPU_HAS_PREFETCH
  1950. bool
  1951. config CPU_GENERIC_DUMP_TLB
  1952. bool
  1953. default y if !CPU_R3000
  1954. config MIPS_FP_SUPPORT
  1955. bool "Floating Point support" if EXPERT
  1956. default y
  1957. help
  1958. Select y to include support for floating point in the kernel
  1959. including initialization of FPU hardware, FP context save & restore
  1960. and emulation of an FPU where necessary. Without this support any
  1961. userland program attempting to use floating point instructions will
  1962. receive a SIGILL.
  1963. If you know that your userland will not attempt to use floating point
  1964. instructions then you can say n here to shrink the kernel a little.
  1965. If unsure, say y.
  1966. config CPU_R2300_FPU
  1967. bool
  1968. depends on MIPS_FP_SUPPORT
  1969. default y if CPU_R3000
  1970. config CPU_R3K_TLB
  1971. bool
  1972. config CPU_R4K_FPU
  1973. bool
  1974. depends on MIPS_FP_SUPPORT
  1975. default y if !CPU_R2300_FPU
  1976. config CPU_R4K_CACHE_TLB
  1977. bool
  1978. default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON)
  1979. config MIPS_MT_SMP
  1980. bool "MIPS MT SMP support (1 TC on each available VPE)"
  1981. default y
  1982. depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MIPSR6 && !CPU_MICROMIPS
  1983. select CPU_MIPSR2_IRQ_VI
  1984. select CPU_MIPSR2_IRQ_EI
  1985. select SYNC_R4K
  1986. select MIPS_MT
  1987. select SMP
  1988. select SMP_UP
  1989. select SYS_SUPPORTS_SMP
  1990. select SYS_SUPPORTS_SCHED_SMT
  1991. select MIPS_PERF_SHARED_TC_COUNTERS
  1992. help
  1993. This is a kernel model which is known as SMVP. This is supported
  1994. on cores with the MT ASE and uses the available VPEs to implement
  1995. virtual processors which supports SMP. This is equivalent to the
  1996. Intel Hyperthreading feature. For further information go to
  1997. <http://www.imgtec.com/mips/mips-multithreading.asp>.
  1998. config MIPS_MT
  1999. bool
  2000. config SCHED_SMT
  2001. bool "SMT (multithreading) scheduler support"
  2002. depends on SYS_SUPPORTS_SCHED_SMT
  2003. default n
  2004. help
  2005. SMT scheduler support improves the CPU scheduler's decision making
  2006. when dealing with MIPS MT enabled cores at a cost of slightly
  2007. increased overhead in some places. If unsure say N here.
  2008. config SYS_SUPPORTS_SCHED_SMT
  2009. bool
  2010. config SYS_SUPPORTS_MULTITHREADING
  2011. bool
  2012. config MIPS_MT_FPAFF
  2013. bool "Dynamic FPU affinity for FP-intensive threads"
  2014. default y
  2015. depends on MIPS_MT_SMP
  2016. config MIPSR2_TO_R6_EMULATOR
  2017. bool "MIPS R2-to-R6 emulator"
  2018. depends on CPU_MIPSR6
  2019. depends on MIPS_FP_SUPPORT
  2020. default y
  2021. help
  2022. Choose this option if you want to run non-R6 MIPS userland code.
  2023. Even if you say 'Y' here, the emulator will still be disabled by
  2024. default. You can enable it using the 'mipsr2emu' kernel option.
  2025. The only reason this is a build-time option is to save ~14K from the
  2026. final kernel image.
  2027. config SYS_SUPPORTS_VPE_LOADER
  2028. bool
  2029. depends on SYS_SUPPORTS_MULTITHREADING
  2030. help
  2031. Indicates that the platform supports the VPE loader, and provides
  2032. physical_memsize.
  2033. config MIPS_VPE_LOADER
  2034. bool "VPE loader support."
  2035. depends on SYS_SUPPORTS_VPE_LOADER && MODULES
  2036. select CPU_MIPSR2_IRQ_VI
  2037. select CPU_MIPSR2_IRQ_EI
  2038. select MIPS_MT
  2039. help
  2040. Includes a loader for loading an elf relocatable object
  2041. onto another VPE and running it.
  2042. config MIPS_VPE_LOADER_CMP
  2043. bool
  2044. default "y"
  2045. depends on MIPS_VPE_LOADER && MIPS_CMP
  2046. config MIPS_VPE_LOADER_MT
  2047. bool
  2048. default "y"
  2049. depends on MIPS_VPE_LOADER && !MIPS_CMP
  2050. config MIPS_VPE_LOADER_TOM
  2051. bool "Load VPE program into memory hidden from linux"
  2052. depends on MIPS_VPE_LOADER
  2053. default y
  2054. help
  2055. The loader can use memory that is present but has been hidden from
  2056. Linux using the kernel command line option "mem=xxMB". It's up to
  2057. you to ensure the amount you put in the option and the space your
  2058. program requires is less or equal to the amount physically present.
  2059. config MIPS_VPE_APSP_API
  2060. bool "Enable support for AP/SP API (RTLX)"
  2061. depends on MIPS_VPE_LOADER
  2062. config MIPS_VPE_APSP_API_CMP
  2063. bool
  2064. default "y"
  2065. depends on MIPS_VPE_APSP_API && MIPS_CMP
  2066. config MIPS_VPE_APSP_API_MT
  2067. bool
  2068. default "y"
  2069. depends on MIPS_VPE_APSP_API && !MIPS_CMP
  2070. config MIPS_CMP
  2071. bool "MIPS CMP framework support (DEPRECATED)"
  2072. depends on SYS_SUPPORTS_MIPS_CMP && !CPU_MIPSR6
  2073. select SMP
  2074. select SYNC_R4K
  2075. select SYS_SUPPORTS_SMP
  2076. select WEAK_ORDERING
  2077. default n
  2078. help
  2079. Select this if you are using a bootloader which implements the "CMP
  2080. framework" protocol (ie. YAMON) and want your kernel to make use of
  2081. its ability to start secondary CPUs.
  2082. Unless you have a specific need, you should use CONFIG_MIPS_CPS
  2083. instead of this.
  2084. config MIPS_CPS
  2085. bool "MIPS Coherent Processing System support"
  2086. depends on SYS_SUPPORTS_MIPS_CPS
  2087. select MIPS_CM
  2088. select MIPS_CPS_PM if HOTPLUG_CPU
  2089. select SMP
  2090. select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
  2091. select SYS_SUPPORTS_HOTPLUG_CPU
  2092. select SYS_SUPPORTS_SCHED_SMT if CPU_MIPSR6
  2093. select SYS_SUPPORTS_SMP
  2094. select WEAK_ORDERING
  2095. select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
  2096. help
  2097. Select this if you wish to run an SMP kernel across multiple cores
  2098. within a MIPS Coherent Processing System. When this option is
  2099. enabled the kernel will probe for other cores and boot them with
  2100. no external assistance. It is safe to enable this when hardware
  2101. support is unavailable.
  2102. config MIPS_CPS_PM
  2103. depends on MIPS_CPS
  2104. bool
  2105. config MIPS_CM
  2106. bool
  2107. select MIPS_CPC
  2108. config MIPS_CPC
  2109. bool
  2110. config SB1_PASS_2_WORKAROUNDS
  2111. bool
  2112. depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2)
  2113. default y
  2114. config SB1_PASS_2_1_WORKAROUNDS
  2115. bool
  2116. depends on CPU_SB1 && CPU_SB1_PASS_2
  2117. default y
  2118. choice
  2119. prompt "SmartMIPS or microMIPS ASE support"
  2120. config CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS
  2121. bool "None"
  2122. help
  2123. Select this if you want neither microMIPS nor SmartMIPS support
  2124. config CPU_HAS_SMARTMIPS
  2125. depends on SYS_SUPPORTS_SMARTMIPS
  2126. bool "SmartMIPS"
  2127. help
  2128. SmartMIPS is a extension of the MIPS32 architecture aimed at
  2129. increased security at both hardware and software level for
  2130. smartcards. Enabling this option will allow proper use of the
  2131. SmartMIPS instructions by Linux applications. However a kernel with
  2132. this option will not work on a MIPS core without SmartMIPS core. If
  2133. you don't know you probably don't have SmartMIPS and should say N
  2134. here.
  2135. config CPU_MICROMIPS
  2136. depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6
  2137. bool "microMIPS"
  2138. help
  2139. When this option is enabled the kernel will be built using the
  2140. microMIPS ISA
  2141. endchoice
  2142. config CPU_HAS_MSA
  2143. bool "Support for the MIPS SIMD Architecture"
  2144. depends on CPU_SUPPORTS_MSA
  2145. depends on MIPS_FP_SUPPORT
  2146. depends on 64BIT || MIPS_O32_FP64_SUPPORT
  2147. help
  2148. MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
  2149. and a set of SIMD instructions to operate on them. When this option
  2150. is enabled the kernel will support allocating & switching MSA
  2151. vector register contexts. If you know that your kernel will only be
  2152. running on CPUs which do not support MSA or that your userland will
  2153. not be making use of it then you may wish to say N here to reduce
  2154. the size & complexity of your kernel.
  2155. If unsure, say Y.
  2156. config CPU_HAS_WB
  2157. bool
  2158. config XKS01
  2159. bool
  2160. config CPU_HAS_DIEI
  2161. depends on !CPU_DIEI_BROKEN
  2162. bool
  2163. config CPU_DIEI_BROKEN
  2164. bool
  2165. config CPU_HAS_RIXI
  2166. bool
  2167. config CPU_NO_LOAD_STORE_LR
  2168. bool
  2169. help
  2170. CPU lacks support for unaligned load and store instructions:
  2171. LWL, LWR, SWL, SWR (Load/store word left/right).
  2172. LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit
  2173. systems).
  2174. #
  2175. # Vectored interrupt mode is an R2 feature
  2176. #
  2177. config CPU_MIPSR2_IRQ_VI
  2178. bool
  2179. #
  2180. # Extended interrupt mode is an R2 feature
  2181. #
  2182. config CPU_MIPSR2_IRQ_EI
  2183. bool
  2184. config CPU_HAS_SYNC
  2185. bool
  2186. depends on !CPU_R3000
  2187. default y
  2188. #
  2189. # CPU non-features
  2190. #
  2191. # Work around the "daddi" and "daddiu" CPU errata:
  2192. #
  2193. # - The `daddi' instruction fails to trap on overflow.
  2194. # "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
  2195. # erratum #23
  2196. #
  2197. # - The `daddiu' instruction can produce an incorrect result.
  2198. # "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
  2199. # erratum #41
  2200. # "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
  2201. # #15
  2202. # "MIPS R4400PC/SC Errata, Processor Revision 1.0", erratum #7
  2203. # "MIPS R4400MC Errata, Processor Revision 1.0", erratum #5
  2204. config CPU_DADDI_WORKAROUNDS
  2205. bool
  2206. # Work around certain R4000 CPU errata (as implemented by GCC):
  2207. #
  2208. # - A double-word or a variable shift may give an incorrect result
  2209. # if executed immediately after starting an integer division:
  2210. # "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
  2211. # erratum #28
  2212. # "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
  2213. # #19
  2214. #
  2215. # - A double-word or a variable shift may give an incorrect result
  2216. # if executed while an integer multiplication is in progress:
  2217. # "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
  2218. # errata #16 & #28
  2219. #
  2220. # - An integer division may give an incorrect result if started in
  2221. # a delay slot of a taken branch or a jump:
  2222. # "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
  2223. # erratum #52
  2224. config CPU_R4000_WORKAROUNDS
  2225. bool
  2226. select CPU_R4400_WORKAROUNDS
  2227. # Work around certain R4400 CPU errata (as implemented by GCC):
  2228. #
  2229. # - A double-word or a variable shift may give an incorrect result
  2230. # if executed immediately after starting an integer division:
  2231. # "MIPS R4400MC Errata, Processor Revision 1.0", erratum #10
  2232. # "MIPS R4400MC Errata, Processor Revision 2.0 & 3.0", erratum #4
  2233. config CPU_R4400_WORKAROUNDS
  2234. bool
  2235. config CPU_R4X00_BUGS64
  2236. bool
  2237. default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1)
  2238. config MIPS_ASID_SHIFT
  2239. int
  2240. default 6 if CPU_R3000
  2241. default 0
  2242. config MIPS_ASID_BITS
  2243. int
  2244. default 0 if MIPS_ASID_BITS_VARIABLE
  2245. default 6 if CPU_R3000
  2246. default 8
  2247. config MIPS_ASID_BITS_VARIABLE
  2248. bool
  2249. config MIPS_CRC_SUPPORT
  2250. bool
  2251. # R4600 erratum. Due to the lack of errata information the exact
  2252. # technical details aren't known. I've experimentally found that disabling
  2253. # interrupts during indexed I-cache flushes seems to be sufficient to deal
  2254. # with the issue.
  2255. config WAR_R4600_V1_INDEX_ICACHEOP
  2256. bool
  2257. # Pleasures of the R4600 V1.x. Cite from the IDT R4600 V1.7 errata:
  2258. #
  2259. # 18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D,
  2260. # Hit_Invalidate_D and Create_Dirty_Excl_D should only be
  2261. # executed if there is no other dcache activity. If the dcache is
  2262. # accessed for another instruction immediately preceding when these
  2263. # cache instructions are executing, it is possible that the dcache
  2264. # tag match outputs used by these cache instructions will be
  2265. # incorrect. These cache instructions should be preceded by at least
  2266. # four instructions that are not any kind of load or store
  2267. # instruction.
  2268. #
  2269. # This is not allowed: lw
  2270. # nop
  2271. # nop
  2272. # nop
  2273. # cache Hit_Writeback_Invalidate_D
  2274. #
  2275. # This is allowed: lw
  2276. # nop
  2277. # nop
  2278. # nop
  2279. # nop
  2280. # cache Hit_Writeback_Invalidate_D
  2281. config WAR_R4600_V1_HIT_CACHEOP
  2282. bool
  2283. # Writeback and invalidate the primary cache dcache before DMA.
  2284. #
  2285. # R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D,
  2286. # Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only
  2287. # operate correctly if the internal data cache refill buffer is empty. These
  2288. # CACHE instructions should be separated from any potential data cache miss
  2289. # by a load instruction to an uncached address to empty the response buffer."
  2290. # (Revision 2.0 device errata from IDT available on https://www.idt.com/
  2291. # in .pdf format.)
  2292. config WAR_R4600_V2_HIT_CACHEOP
  2293. bool
  2294. # From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for
  2295. # the line which this instruction itself exists, the following
  2296. # operation is not guaranteed."
  2297. #
  2298. # Workaround: do two phase flushing for Index_Invalidate_I
  2299. config WAR_TX49XX_ICACHE_INDEX_INV
  2300. bool
  2301. # The RM7000 processors and the E9000 cores have a bug (though PMC-Sierra
  2302. # opposes it being called that) where invalid instructions in the same
  2303. # I-cache line worth of instructions being fetched may case spurious
  2304. # exceptions.
  2305. config WAR_ICACHE_REFILLS
  2306. bool
  2307. # On the R10000 up to version 2.6 (not sure about 2.7) there is a bug that
  2308. # may cause ll / sc and lld / scd sequences to execute non-atomically.
  2309. config WAR_R10000_LLSC
  2310. bool
  2311. # 34K core erratum: "Problems Executing the TLBR Instruction"
  2312. config WAR_MIPS34K_MISSED_ITLB
  2313. bool
  2314. #
  2315. # - Highmem only makes sense for the 32-bit kernel.
  2316. # - The current highmem code will only work properly on physically indexed
  2317. # caches such as R3000, SB1, R7000 or those that look like they're virtually
  2318. # indexed such as R4000/R4400 SC and MC versions or R10000. So for the
  2319. # moment we protect the user and offer the highmem option only on machines
  2320. # where it's known to be safe. This will not offer highmem on a few systems
  2321. # such as MIPS32 and MIPS64 CPUs which may have virtual and physically
  2322. # indexed CPUs but we're playing safe.
  2323. # - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
  2324. # know they might have memory configurations that could make use of highmem
  2325. # support.
  2326. #
  2327. config HIGHMEM
  2328. bool "High Memory Support"
  2329. depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA
  2330. select KMAP_LOCAL
  2331. config CPU_SUPPORTS_HIGHMEM
  2332. bool
  2333. config SYS_SUPPORTS_HIGHMEM
  2334. bool
  2335. config SYS_SUPPORTS_SMARTMIPS
  2336. bool
  2337. config SYS_SUPPORTS_MICROMIPS
  2338. bool
  2339. config SYS_SUPPORTS_MIPS16
  2340. bool
  2341. help
  2342. This option must be set if a kernel might be executed on a MIPS16-
  2343. enabled CPU even if MIPS16 is not actually being used. In other
  2344. words, it makes the kernel MIPS16-tolerant.
  2345. config CPU_SUPPORTS_MSA
  2346. bool
  2347. config ARCH_FLATMEM_ENABLE
  2348. def_bool y
  2349. depends on !NUMA && !CPU_LOONGSON2EF
  2350. config ARCH_SPARSEMEM_ENABLE
  2351. bool
  2352. config NUMA
  2353. bool "NUMA Support"
  2354. depends on SYS_SUPPORTS_NUMA
  2355. select SMP
  2356. select HAVE_SETUP_PER_CPU_AREA
  2357. select NEED_PER_CPU_EMBED_FIRST_CHUNK
  2358. help
  2359. Say Y to compile the kernel to support NUMA (Non-Uniform Memory
  2360. Access). This option improves performance on systems with more
  2361. than two nodes; on two node systems it is generally better to
  2362. leave it disabled; on single node systems leave this option
  2363. disabled.
  2364. config SYS_SUPPORTS_NUMA
  2365. bool
  2366. config HAVE_ARCH_NODEDATA_EXTENSION
  2367. bool
  2368. config RELOCATABLE
  2369. bool "Relocatable kernel"
  2370. depends on SYS_SUPPORTS_RELOCATABLE
  2371. depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \
  2372. CPU_MIPS32_R5 || CPU_MIPS64_R5 || \
  2373. CPU_MIPS32_R6 || CPU_MIPS64_R6 || \
  2374. CPU_P5600 || CAVIUM_OCTEON_SOC || \
  2375. CPU_LOONGSON64
  2376. help
  2377. This builds a kernel image that retains relocation information
  2378. so it can be loaded someplace besides the default 1MB.
  2379. The relocations make the kernel binary about 15% larger,
  2380. but are discarded at runtime
  2381. config RELOCATION_TABLE_SIZE
  2382. hex "Relocation table size"
  2383. depends on RELOCATABLE
  2384. range 0x0 0x01000000
  2385. default "0x00200000" if CPU_LOONGSON64
  2386. default "0x00100000"
  2387. help
  2388. A table of relocation data will be appended to the kernel binary
  2389. and parsed at boot to fix up the relocated kernel.
  2390. This option allows the amount of space reserved for the table to be
  2391. adjusted, although the default of 1Mb should be ok in most cases.
  2392. The build will fail and a valid size suggested if this is too small.
  2393. If unsure, leave at the default value.
  2394. config RANDOMIZE_BASE
  2395. bool "Randomize the address of the kernel image"
  2396. depends on RELOCATABLE
  2397. help
  2398. Randomizes the physical and virtual address at which the
  2399. kernel image is loaded, as a security feature that
  2400. deters exploit attempts relying on knowledge of the location
  2401. of kernel internals.
  2402. Entropy is generated using any coprocessor 0 registers available.
  2403. The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
  2404. If unsure, say N.
  2405. config RANDOMIZE_BASE_MAX_OFFSET
  2406. hex "Maximum kASLR offset" if EXPERT
  2407. depends on RANDOMIZE_BASE
  2408. range 0x0 0x40000000 if EVA || 64BIT
  2409. range 0x0 0x08000000
  2410. default "0x01000000"
  2411. help
  2412. When kASLR is active, this provides the maximum offset that will
  2413. be applied to the kernel image. It should be set according to the
  2414. amount of physical RAM available in the target system minus
  2415. PHYSICAL_START and must be a power of 2.
  2416. This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with
  2417. EVA or 64-bit. The default is 16Mb.
  2418. config NODES_SHIFT
  2419. int
  2420. default "6"
  2421. depends on NUMA
  2422. config HW_PERF_EVENTS
  2423. bool "Enable hardware performance counter support for perf events"
  2424. depends on PERF_EVENTS && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_LOONGSON64)
  2425. default y
  2426. help
  2427. Enable hardware performance counter support for perf events. If
  2428. disabled, perf events will use software events only.
  2429. config DMI
  2430. bool "Enable DMI scanning"
  2431. depends on MACH_LOONGSON64
  2432. select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
  2433. default y
  2434. help
  2435. Enabled scanning of DMI to identify machine quirks. Say Y
  2436. here unless you have verified that your setup is not
  2437. affected by entries in the DMI blacklist. Required by PNP
  2438. BIOS code.
  2439. config SMP
  2440. bool "Multi-Processing support"
  2441. depends on SYS_SUPPORTS_SMP
  2442. help
  2443. This enables support for systems with more than one CPU. If you have
  2444. a system with only one CPU, say N. If you have a system with more
  2445. than one CPU, say Y.
  2446. If you say N here, the kernel will run on uni- and multiprocessor
  2447. machines, but will use only one CPU of a multiprocessor machine. If
  2448. you say Y here, the kernel will run on many, but not all,
  2449. uniprocessor machines. On a uniprocessor machine, the kernel
  2450. will run faster if you say N here.
  2451. People using multiprocessor machines who say Y here should also say
  2452. Y to "Enhanced Real Time Clock Support", below.
  2453. See also the SMP-HOWTO available at
  2454. <https://www.tldp.org/docs.html#howto>.
  2455. If you don't know what to do here, say N.
  2456. config HOTPLUG_CPU
  2457. bool "Support for hot-pluggable CPUs"
  2458. depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU
  2459. help
  2460. Say Y here to allow turning CPUs off and on. CPUs can be
  2461. controlled through /sys/devices/system/cpu.
  2462. (Note: power management support will enable this option
  2463. automatically on SMP systems. )
  2464. Say N if you want to disable CPU hotplug.
  2465. config SMP_UP
  2466. bool
  2467. config SYS_SUPPORTS_MIPS_CMP
  2468. bool
  2469. config SYS_SUPPORTS_MIPS_CPS
  2470. bool
  2471. config SYS_SUPPORTS_SMP
  2472. bool
  2473. config NR_CPUS_DEFAULT_4
  2474. bool
  2475. config NR_CPUS_DEFAULT_8
  2476. bool
  2477. config NR_CPUS_DEFAULT_16
  2478. bool
  2479. config NR_CPUS_DEFAULT_32
  2480. bool
  2481. config NR_CPUS_DEFAULT_64
  2482. bool
  2483. config NR_CPUS
  2484. int "Maximum number of CPUs (2-256)"
  2485. range 2 256
  2486. depends on SMP
  2487. default "4" if NR_CPUS_DEFAULT_4
  2488. default "8" if NR_CPUS_DEFAULT_8
  2489. default "16" if NR_CPUS_DEFAULT_16
  2490. default "32" if NR_CPUS_DEFAULT_32
  2491. default "64" if NR_CPUS_DEFAULT_64
  2492. help
  2493. This allows you to specify the maximum number of CPUs which this
  2494. kernel will support. The maximum supported value is 32 for 32-bit
  2495. kernel and 64 for 64-bit kernels; the minimum value which makes
  2496. sense is 1 for Qemu (useful only for kernel debugging purposes)
  2497. and 2 for all others.
  2498. This is purely to save memory - each supported CPU adds
  2499. approximately eight kilobytes to the kernel image. For best
  2500. performance should round up your number of processors to the next
  2501. power of two.
  2502. config MIPS_PERF_SHARED_TC_COUNTERS
  2503. bool
  2504. config MIPS_NR_CPU_NR_MAP_1024
  2505. bool
  2506. config MIPS_NR_CPU_NR_MAP
  2507. int
  2508. depends on SMP
  2509. default 1024 if MIPS_NR_CPU_NR_MAP_1024
  2510. default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024
  2511. #
  2512. # Timer Interrupt Frequency Configuration
  2513. #
  2514. choice
  2515. prompt "Timer frequency"
  2516. default HZ_250
  2517. help
  2518. Allows the configuration of the timer frequency.
  2519. config HZ_24
  2520. bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ
  2521. config HZ_48
  2522. bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ
  2523. config HZ_100
  2524. bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ
  2525. config HZ_128
  2526. bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ
  2527. config HZ_250
  2528. bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ
  2529. config HZ_256
  2530. bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
  2531. config HZ_1000
  2532. bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
  2533. config HZ_1024
  2534. bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ
  2535. endchoice
  2536. config SYS_SUPPORTS_24HZ
  2537. bool
  2538. config SYS_SUPPORTS_48HZ
  2539. bool
  2540. config SYS_SUPPORTS_100HZ
  2541. bool
  2542. config SYS_SUPPORTS_128HZ
  2543. bool
  2544. config SYS_SUPPORTS_250HZ
  2545. bool
  2546. config SYS_SUPPORTS_256HZ
  2547. bool
  2548. config SYS_SUPPORTS_1000HZ
  2549. bool
  2550. config SYS_SUPPORTS_1024HZ
  2551. bool
  2552. config SYS_SUPPORTS_ARBIT_HZ
  2553. bool
  2554. default y if !SYS_SUPPORTS_24HZ && \
  2555. !SYS_SUPPORTS_48HZ && \
  2556. !SYS_SUPPORTS_100HZ && \
  2557. !SYS_SUPPORTS_128HZ && \
  2558. !SYS_SUPPORTS_250HZ && \
  2559. !SYS_SUPPORTS_256HZ && \
  2560. !SYS_SUPPORTS_1000HZ && \
  2561. !SYS_SUPPORTS_1024HZ
  2562. config HZ
  2563. int
  2564. default 24 if HZ_24
  2565. default 48 if HZ_48
  2566. default 100 if HZ_100
  2567. default 128 if HZ_128
  2568. default 250 if HZ_250
  2569. default 256 if HZ_256
  2570. default 1000 if HZ_1000
  2571. default 1024 if HZ_1024
  2572. config SCHED_HRTICK
  2573. def_bool HIGH_RES_TIMERS
  2574. config KEXEC
  2575. bool "Kexec system call"
  2576. select KEXEC_CORE
  2577. help
  2578. kexec is a system call that implements the ability to shutdown your
  2579. current kernel, and to start another kernel. It is like a reboot
  2580. but it is independent of the system firmware. And like a reboot
  2581. you can start any kernel with it, not just Linux.
  2582. The name comes from the similarity to the exec system call.
  2583. It is an ongoing process to be certain the hardware in a machine
  2584. is properly shutdown, so do not be surprised if this code does not
  2585. initially work for you. As of this writing the exact hardware
  2586. interface is strongly in flux, so no good recommendation can be
  2587. made.
  2588. config CRASH_DUMP
  2589. bool "Kernel crash dumps"
  2590. help
  2591. Generate crash dump after being started by kexec.
  2592. This should be normally only set in special crash dump kernels
  2593. which are loaded in the main kernel with kexec-tools into
  2594. a specially reserved region and then later executed after
  2595. a crash by kdump/kexec. The crash dump kernel must be compiled
  2596. to a memory address not used by the main kernel or firmware using
  2597. PHYSICAL_START.
  2598. config PHYSICAL_START
  2599. hex "Physical address where the kernel is loaded"
  2600. default "0xffffffff84000000"
  2601. depends on CRASH_DUMP
  2602. help
  2603. This gives the CKSEG0 or KSEG0 address where the kernel is loaded.
  2604. If you plan to use kernel for capturing the crash dump change
  2605. this value to start of the reserved region (the "X" value as
  2606. specified in the "crashkernel=YM@XM" command line boot parameter
  2607. passed to the panic-ed kernel).
  2608. config MIPS_O32_FP64_SUPPORT
  2609. bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6
  2610. depends on 32BIT || MIPS32_O32
  2611. help
  2612. When this is enabled, the kernel will support use of 64-bit floating
  2613. point registers with binaries using the O32 ABI along with the
  2614. EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On
  2615. 32-bit MIPS systems this support is at the cost of increasing the
  2616. size and complexity of the compiled FPU emulator. Thus if you are
  2617. running a MIPS32 system and know that none of your userland binaries
  2618. will require 64-bit floating point, you may wish to reduce the size
  2619. of your kernel & potentially improve FP emulation performance by
  2620. saying N here.
  2621. Although binutils currently supports use of this flag the details
  2622. concerning its effect upon the O32 ABI in userland are still being
  2623. worked on. In order to avoid userland becoming dependent upon current
  2624. behaviour before the details have been finalised, this option should
  2625. be considered experimental and only enabled by those working upon
  2626. said details.
  2627. If unsure, say N.
  2628. config USE_OF
  2629. bool
  2630. select OF
  2631. select OF_EARLY_FLATTREE
  2632. select IRQ_DOMAIN
  2633. config UHI_BOOT
  2634. bool
  2635. config BUILTIN_DTB
  2636. bool
  2637. choice
  2638. prompt "Kernel appended dtb support" if USE_OF
  2639. default MIPS_NO_APPENDED_DTB
  2640. config MIPS_NO_APPENDED_DTB
  2641. bool "None"
  2642. help
  2643. Do not enable appended dtb support.
  2644. config MIPS_ELF_APPENDED_DTB
  2645. bool "vmlinux"
  2646. help
  2647. With this option, the boot code will look for a device tree binary
  2648. DTB) included in the vmlinux ELF section .appended_dtb. By default
  2649. it is empty and the DTB can be appended using binutils command
  2650. objcopy:
  2651. objcopy --update-section .appended_dtb=<filename>.dtb vmlinux
  2652. This is meant as a backward compatibility convenience for those
  2653. systems with a bootloader that can't be upgraded to accommodate
  2654. the documented boot protocol using a device tree.
  2655. config MIPS_RAW_APPENDED_DTB
  2656. bool "vmlinux.bin or vmlinuz.bin"
  2657. help
  2658. With this option, the boot code will look for a device tree binary
  2659. DTB) appended to raw vmlinux.bin or vmlinuz.bin.
  2660. (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb).
  2661. This is meant as a backward compatibility convenience for those
  2662. systems with a bootloader that can't be upgraded to accommodate
  2663. the documented boot protocol using a device tree.
  2664. Beware that there is very little in terms of protection against
  2665. this option being confused by leftover garbage in memory that might
  2666. look like a DTB header after a reboot if no actual DTB is appended
  2667. to vmlinux.bin. Do not leave this option active in a production kernel
  2668. if you don't intend to always append a DTB.
  2669. endchoice
  2670. choice
  2671. prompt "Kernel command line type" if !CMDLINE_OVERRIDE
  2672. default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
  2673. !MACH_LOONGSON64 && !MIPS_MALTA && \
  2674. !CAVIUM_OCTEON_SOC
  2675. default MIPS_CMDLINE_FROM_BOOTLOADER
  2676. config MIPS_CMDLINE_FROM_DTB
  2677. depends on USE_OF
  2678. bool "Dtb kernel arguments if available"
  2679. config MIPS_CMDLINE_DTB_EXTEND
  2680. depends on USE_OF
  2681. bool "Extend dtb kernel arguments with bootloader arguments"
  2682. config MIPS_CMDLINE_FROM_BOOTLOADER
  2683. bool "Bootloader kernel arguments if available"
  2684. config MIPS_CMDLINE_BUILTIN_EXTEND
  2685. depends on CMDLINE_BOOL
  2686. bool "Extend builtin kernel arguments with bootloader arguments"
  2687. endchoice
  2688. endmenu
  2689. config LOCKDEP_SUPPORT
  2690. bool
  2691. default y
  2692. config STACKTRACE_SUPPORT
  2693. bool
  2694. default y
  2695. config PGTABLE_LEVELS
  2696. int
  2697. default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48
  2698. default 3 if 64BIT && (!PAGE_SIZE_64KB || MIPS_VA_BITS_48)
  2699. default 2
  2700. config MIPS_AUTO_PFN_OFFSET
  2701. bool
  2702. menu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
  2703. config PCI_DRIVERS_GENERIC
  2704. select PCI_DOMAINS_GENERIC if PCI
  2705. bool
  2706. config PCI_DRIVERS_LEGACY
  2707. def_bool !PCI_DRIVERS_GENERIC
  2708. select NO_GENERIC_PCI_IOPORT_MAP
  2709. select PCI_DOMAINS if PCI
  2710. #
  2711. # ISA support is now enabled via select. Too many systems still have the one
  2712. # or other ISA chip on the board that users don't know about so don't expect
  2713. # users to choose the right thing ...
  2714. #
  2715. config ISA
  2716. bool
  2717. config TC
  2718. bool "TURBOchannel support"
  2719. depends on MACH_DECSTATION
  2720. help
  2721. TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS
  2722. processors. TURBOchannel programming specifications are available
  2723. at:
  2724. <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/>
  2725. and:
  2726. <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/>
  2727. Linux driver support status is documented at:
  2728. <http://www.linux-mips.org/wiki/DECstation>
  2729. config MMU
  2730. bool
  2731. default y
  2732. config ARCH_MMAP_RND_BITS_MIN
  2733. default 12 if 64BIT
  2734. default 8
  2735. config ARCH_MMAP_RND_BITS_MAX
  2736. default 18 if 64BIT
  2737. default 15
  2738. config ARCH_MMAP_RND_COMPAT_BITS_MIN
  2739. default 8
  2740. config ARCH_MMAP_RND_COMPAT_BITS_MAX
  2741. default 15
  2742. config I8253
  2743. bool
  2744. select CLKSRC_I8253
  2745. select CLKEVT_I8253
  2746. select MIPS_EXTERNAL_TIMER
  2747. endmenu
  2748. config TRAD_SIGNALS
  2749. bool
  2750. config MIPS32_COMPAT
  2751. bool
  2752. config COMPAT
  2753. bool
  2754. config MIPS32_O32
  2755. bool "Kernel support for o32 binaries"
  2756. depends on 64BIT
  2757. select ARCH_WANT_OLD_COMPAT_IPC
  2758. select COMPAT
  2759. select MIPS32_COMPAT
  2760. help
  2761. Select this option if you want to run o32 binaries. These are pure
  2762. 32-bit binaries as used by the 32-bit Linux/MIPS port. Most of
  2763. existing binaries are in this format.
  2764. If unsure, say Y.
  2765. config MIPS32_N32
  2766. bool "Kernel support for n32 binaries"
  2767. depends on 64BIT
  2768. select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
  2769. select COMPAT
  2770. select MIPS32_COMPAT
  2771. help
  2772. Select this option if you want to run n32 binaries. These are
  2773. 64-bit binaries using 32-bit quantities for addressing and certain
  2774. data that would normally be 64-bit. They are used in special
  2775. cases.
  2776. If unsure, say N.
  2777. config CC_HAS_MNO_BRANCH_LIKELY
  2778. def_bool y
  2779. depends on $(cc-option,-mno-branch-likely)
  2780. menu "Power management options"
  2781. config ARCH_HIBERNATION_POSSIBLE
  2782. def_bool y
  2783. depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
  2784. config ARCH_SUSPEND_POSSIBLE
  2785. def_bool y
  2786. depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
  2787. source "kernel/power/Kconfig"
  2788. endmenu
  2789. config MIPS_EXTERNAL_TIMER
  2790. bool
  2791. menu "CPU Power Management"
  2792. if CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
  2793. source "drivers/cpufreq/Kconfig"
  2794. endif # CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
  2795. source "drivers/cpuidle/Kconfig"
  2796. endmenu
  2797. source "arch/mips/kvm/Kconfig"
  2798. source "arch/mips/vdso/Kconfig"