Kconfig 81 KB

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