Kconfig 86 KB

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