Kconfig 83 KB

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