xref: /openbmc/u-boot/arch/mips/Kconfig (revision d1c3d8bdfa41a7002bc9c9c0fe8cf7b41d573c0e)
1dd84058dSMasahiro Yamadamenu "MIPS architecture"
2dd84058dSMasahiro Yamada	depends on MIPS
3dd84058dSMasahiro Yamada
4dd84058dSMasahiro Yamadaconfig SYS_ARCH
5dd84058dSMasahiro Yamada	default "mips"
6dd84058dSMasahiro Yamada
7b9863b6dSDaniel Schwierzeckconfig SYS_CPU
820286cdfSPaul Burton	default "mips32" if CPU_MIPS32
920286cdfSPaul Burton	default "mips64" if CPU_MIPS64
10b9863b6dSDaniel Schwierzeck
11dd84058dSMasahiro Yamadachoice
12dd84058dSMasahiro Yamada	prompt "Target select"
13a26cd049SJoe Hershberger	optional
14dd84058dSMasahiro Yamada
15dd84058dSMasahiro Yamadaconfig TARGET_QEMU_MIPS
16dd84058dSMasahiro Yamada	bool "Support qemu-mips"
175ed063d1SMichal Simek	select ROM_EXCEPTION_VECTORS
180e1dc345SDaniel Schwierzeck	select SUPPORTS_BIG_ENDIAN
1902611cbbSDaniel Schwierzeck	select SUPPORTS_CPU_MIPS32_R1
2002611cbbSDaniel Schwierzeck	select SUPPORTS_CPU_MIPS32_R2
21aa45f75eSDaniel Schwierzeck	select SUPPORTS_CPU_MIPS64_R1
22aa45f75eSDaniel Schwierzeck	select SUPPORTS_CPU_MIPS64_R2
235ed063d1SMichal Simek	select SUPPORTS_LITTLE_ENDIAN
24dd84058dSMasahiro Yamada
25dd84058dSMasahiro Yamadaconfig TARGET_MALTA
26dd84058dSMasahiro Yamada	bool "Support malta"
276242aa13SPaul Burton	select DM
286242aa13SPaul Burton	select DM_SERIAL
2905e34255SPaul Burton	select DYNAMIC_IO_PORT_BASE
30566ce04dSPaul Burton	select MIPS_CM
31*d1c3d8bdSDaniel Schwierzeck	select MIPS_INSERT_BOOT_CONFIG
325ed063d1SMichal Simek	select MIPS_L1_CACHE_SHIFT_6
33566ce04dSPaul Burton	select MIPS_L2_CACHE
346242aa13SPaul Burton	select OF_CONTROL
356242aa13SPaul Burton	select OF_ISA_BUS
365ed063d1SMichal Simek	select ROM_EXCEPTION_VECTORS
370e1dc345SDaniel Schwierzeck	select SUPPORTS_BIG_ENDIAN
3802611cbbSDaniel Schwierzeck	select SUPPORTS_CPU_MIPS32_R1
3902611cbbSDaniel Schwierzeck	select SUPPORTS_CPU_MIPS32_R2
4040ba13c9SPaul Burton	select SUPPORTS_CPU_MIPS32_R6
410f832b9cSPaul Burton	select SUPPORTS_CPU_MIPS64_R1
420f832b9cSPaul Burton	select SUPPORTS_CPU_MIPS64_R2
430f832b9cSPaul Burton	select SUPPORTS_CPU_MIPS64_R6
445ed063d1SMichal Simek	select SUPPORTS_LITTLE_ENDIAN
459d638eeaSDaniel Schwierzeck	select SWAP_IO_SPACE
4608a00cbaSMichal Simek	imply CMD_DM
47dd84058dSMasahiro Yamada
48dd84058dSMasahiro Yamadaconfig TARGET_VCT
49dd84058dSMasahiro Yamada	bool "Support vct"
505ed063d1SMichal Simek	select ROM_EXCEPTION_VECTORS
510e1dc345SDaniel Schwierzeck	select SUPPORTS_BIG_ENDIAN
5202611cbbSDaniel Schwierzeck	select SUPPORTS_CPU_MIPS32_R1
5302611cbbSDaniel Schwierzeck	select SUPPORTS_CPU_MIPS32_R2
54dd7c7200SPaul Burton	select SYS_MIPS_CACHE_INIT_RAM_LOAD
55dd84058dSMasahiro Yamada
561d3d0f1fSWills Wangconfig ARCH_ATH79
571d3d0f1fSWills Wang	bool "Support QCA/Atheros ath79"
581d3d0f1fSWills Wang	select DM
595ed063d1SMichal Simek	select OF_CONTROL
6008a00cbaSMichal Simek	imply CMD_DM
611d3d0f1fSWills Wang
62ee422142SÁlvaro Fernández Rojasconfig ARCH_BMIPS
63ee422142SÁlvaro Fernández Rojas	bool "Support BMIPS SoCs"
64ee422142SÁlvaro Fernández Rojas	select CLK
65ee422142SÁlvaro Fernández Rojas	select CPU
665ed063d1SMichal Simek	select DM
675ed063d1SMichal Simek	select OF_CONTROL
68ee422142SÁlvaro Fernández Rojas	select RAM
69ee422142SÁlvaro Fernández Rojas	select SYSRESET
7008a00cbaSMichal Simek	imply CMD_DM
71ee422142SÁlvaro Fernández Rojas
7232c1a6eeSPurna Chandra Mandalconfig MACH_PIC32
7332c1a6eeSPurna Chandra Mandal	bool "Support Microchip PIC32"
7432c1a6eeSPurna Chandra Mandal	select DM
755ed063d1SMichal Simek	select OF_CONTROL
7608a00cbaSMichal Simek	imply CMD_DM
7732c1a6eeSPurna Chandra Mandal
78ad8783cbSPaul Burtonconfig TARGET_BOSTON
79ad8783cbSPaul Burton	bool "Support Boston"
80ad8783cbSPaul Burton	select DM
81ad8783cbSPaul Burton	select DM_SERIAL
82ad8783cbSPaul Burton	select MIPS_CM
83ad8783cbSPaul Burton	select MIPS_L1_CACHE_SHIFT_6
84ad8783cbSPaul Burton	select MIPS_L2_CACHE
85d2b12a57SPaul Burton	select OF_BOARD_SETUP
865ed063d1SMichal Simek	select OF_CONTROL
875ed063d1SMichal Simek	select ROM_EXCEPTION_VECTORS
88ad8783cbSPaul Burton	select SUPPORTS_BIG_ENDIAN
89ad8783cbSPaul Burton	select SUPPORTS_CPU_MIPS32_R1
90ad8783cbSPaul Burton	select SUPPORTS_CPU_MIPS32_R2
91ad8783cbSPaul Burton	select SUPPORTS_CPU_MIPS32_R6
92ad8783cbSPaul Burton	select SUPPORTS_CPU_MIPS64_R1
93ad8783cbSPaul Burton	select SUPPORTS_CPU_MIPS64_R2
94ad8783cbSPaul Burton	select SUPPORTS_CPU_MIPS64_R6
955ed063d1SMichal Simek	select SUPPORTS_LITTLE_ENDIAN
9608a00cbaSMichal Simek	imply CMD_DM
97ad8783cbSPaul Burton
98ebf2b9e3SZubair Lutfullah Kakakhelconfig TARGET_XILFPGA
99ebf2b9e3SZubair Lutfullah Kakakhel	bool "Support Imagination Xilfpga"
100ebf2b9e3SZubair Lutfullah Kakakhel	select DM
101ebf2b9e3SZubair Lutfullah Kakakhel	select DM_ETH
1025ed063d1SMichal Simek	select DM_GPIO
1035ed063d1SMichal Simek	select DM_SERIAL
1045ed063d1SMichal Simek	select MIPS_L1_CACHE_SHIFT_4
1055ed063d1SMichal Simek	select OF_CONTROL
1065ed063d1SMichal Simek	select ROM_EXCEPTION_VECTORS
107ebf2b9e3SZubair Lutfullah Kakakhel	select SUPPORTS_CPU_MIPS32_R1
108ebf2b9e3SZubair Lutfullah Kakakhel	select SUPPORTS_CPU_MIPS32_R2
1095ed063d1SMichal Simek	select SUPPORTS_LITTLE_ENDIAN
11008a00cbaSMichal Simek	imply CMD_DM
111ebf2b9e3SZubair Lutfullah Kakakhel	help
112ebf2b9e3SZubair Lutfullah Kakakhel	  This supports IMGTEC MIPSfpga platform
113ebf2b9e3SZubair Lutfullah Kakakhel
114dd84058dSMasahiro Yamadaendchoice
115dd84058dSMasahiro Yamada
116ad8783cbSPaul Burtonsource "board/imgtec/boston/Kconfig"
117dd84058dSMasahiro Yamadasource "board/imgtec/malta/Kconfig"
118ebf2b9e3SZubair Lutfullah Kakakhelsource "board/imgtec/xilfpga/Kconfig"
119dd84058dSMasahiro Yamadasource "board/micronas/vct/Kconfig"
120dd84058dSMasahiro Yamadasource "board/qemu-mips/Kconfig"
1211d3d0f1fSWills Wangsource "arch/mips/mach-ath79/Kconfig"
122ee422142SÁlvaro Fernández Rojassource "arch/mips/mach-bmips/Kconfig"
12332c1a6eeSPurna Chandra Mandalsource "arch/mips/mach-pic32/Kconfig"
124dd84058dSMasahiro Yamada
1250e1dc345SDaniel Schwierzeckif MIPS
1260e1dc345SDaniel Schwierzeck
1270e1dc345SDaniel Schwierzeckchoice
1280e1dc345SDaniel Schwierzeck	prompt "Endianness selection"
1290e1dc345SDaniel Schwierzeck	help
1300e1dc345SDaniel Schwierzeck	  Some MIPS boards can be configured for either little or big endian
1310e1dc345SDaniel Schwierzeck	  byte order. These modes require different U-Boot images. In general there
1320e1dc345SDaniel Schwierzeck	  is one preferred byteorder for a particular system but some systems are
1330e1dc345SDaniel Schwierzeck	  just as commonly used in the one or the other endianness.
1340e1dc345SDaniel Schwierzeck
1350e1dc345SDaniel Schwierzeckconfig SYS_BIG_ENDIAN
1360e1dc345SDaniel Schwierzeck	bool "Big endian"
1370e1dc345SDaniel Schwierzeck	depends on SUPPORTS_BIG_ENDIAN
1380e1dc345SDaniel Schwierzeck
1390e1dc345SDaniel Schwierzeckconfig SYS_LITTLE_ENDIAN
1400e1dc345SDaniel Schwierzeck	bool "Little endian"
1410e1dc345SDaniel Schwierzeck	depends on SUPPORTS_LITTLE_ENDIAN
1420e1dc345SDaniel Schwierzeck
1430e1dc345SDaniel Schwierzeckendchoice
1440e1dc345SDaniel Schwierzeck
14502611cbbSDaniel Schwierzeckchoice
14602611cbbSDaniel Schwierzeck	prompt "CPU selection"
14702611cbbSDaniel Schwierzeck	default CPU_MIPS32_R2
14802611cbbSDaniel Schwierzeck
14902611cbbSDaniel Schwierzeckconfig CPU_MIPS32_R1
15002611cbbSDaniel Schwierzeck	bool "MIPS32 Release 1"
15102611cbbSDaniel Schwierzeck	depends on SUPPORTS_CPU_MIPS32_R1
15202611cbbSDaniel Schwierzeck	select 32BIT
15302611cbbSDaniel Schwierzeck	help
154c52ebea1SPaul Burton	  Choose this option to build an U-Boot for release 1 through 5 of the
15502611cbbSDaniel Schwierzeck	  MIPS32 architecture.
15602611cbbSDaniel Schwierzeck
15702611cbbSDaniel Schwierzeckconfig CPU_MIPS32_R2
15802611cbbSDaniel Schwierzeck	bool "MIPS32 Release 2"
15902611cbbSDaniel Schwierzeck	depends on SUPPORTS_CPU_MIPS32_R2
16002611cbbSDaniel Schwierzeck	select 32BIT
16102611cbbSDaniel Schwierzeck	help
162c52ebea1SPaul Burton	  Choose this option to build an U-Boot for release 2 through 5 of the
163c52ebea1SPaul Burton	  MIPS32 architecture.
164c52ebea1SPaul Burton
165c52ebea1SPaul Burtonconfig CPU_MIPS32_R6
166c52ebea1SPaul Burton	bool "MIPS32 Release 6"
167c52ebea1SPaul Burton	depends on SUPPORTS_CPU_MIPS32_R6
168c52ebea1SPaul Burton	select 32BIT
169c52ebea1SPaul Burton	help
170c52ebea1SPaul Burton	  Choose this option to build an U-Boot for release 6 or later of the
17102611cbbSDaniel Schwierzeck	  MIPS32 architecture.
17202611cbbSDaniel Schwierzeck
17302611cbbSDaniel Schwierzeckconfig CPU_MIPS64_R1
17402611cbbSDaniel Schwierzeck	bool "MIPS64 Release 1"
17502611cbbSDaniel Schwierzeck	depends on SUPPORTS_CPU_MIPS64_R1
17602611cbbSDaniel Schwierzeck	select 64BIT
17702611cbbSDaniel Schwierzeck	help
178c52ebea1SPaul Burton	  Choose this option to build a kernel for release 1 through 5 of the
17902611cbbSDaniel Schwierzeck	  MIPS64 architecture.
18002611cbbSDaniel Schwierzeck
18102611cbbSDaniel Schwierzeckconfig CPU_MIPS64_R2
18202611cbbSDaniel Schwierzeck	bool "MIPS64 Release 2"
18302611cbbSDaniel Schwierzeck	depends on SUPPORTS_CPU_MIPS64_R2
18402611cbbSDaniel Schwierzeck	select 64BIT
18502611cbbSDaniel Schwierzeck	help
186c52ebea1SPaul Burton	  Choose this option to build a kernel for release 2 through 5 of the
187c52ebea1SPaul Burton	  MIPS64 architecture.
188c52ebea1SPaul Burton
189c52ebea1SPaul Burtonconfig CPU_MIPS64_R6
190c52ebea1SPaul Burton	bool "MIPS64 Release 6"
191c52ebea1SPaul Burton	depends on SUPPORTS_CPU_MIPS64_R6
192c52ebea1SPaul Burton	select 64BIT
193c52ebea1SPaul Burton	help
194c52ebea1SPaul Burton	  Choose this option to build a kernel for release 6 or later of the
19502611cbbSDaniel Schwierzeck	  MIPS64 architecture.
19602611cbbSDaniel Schwierzeck
19702611cbbSDaniel Schwierzeckendchoice
19802611cbbSDaniel Schwierzeck
199af3971f8SDaniel Schwierzeckmenu "General setup"
200af3971f8SDaniel Schwierzeck
201af3971f8SDaniel Schwierzeckconfig ROM_EXCEPTION_VECTORS
202af3971f8SDaniel Schwierzeck	bool "Build U-Boot image with exception vectors"
203af3971f8SDaniel Schwierzeck	help
204af3971f8SDaniel Schwierzeck	  Enable this to include exception vectors in the U-Boot image. This is
205af3971f8SDaniel Schwierzeck	  required if the U-Boot entry point is equal to the address of the
206af3971f8SDaniel Schwierzeck	  CPU reset exception vector (e.g. U-Boot as ROM loader in Qemu,
207af3971f8SDaniel Schwierzeck	  U-Boot booted from parallel NOR flash).
208af3971f8SDaniel Schwierzeck	  Disable this, if the U-Boot image is booted from DRAM (e.g. by SPL).
209af3971f8SDaniel Schwierzeck	  In that case the image size will be reduced by 0x500 bytes.
210af3971f8SDaniel Schwierzeck
211939a255aSPaul Burtonconfig MIPS_CM_BASE
212939a255aSPaul Burton	hex "MIPS CM GCR Base Address"
213939a255aSPaul Burton	depends on MIPS_CM
214ed048e7cSPaul Burton	default 0x16100000 if TARGET_BOSTON
215939a255aSPaul Burton	default 0x1fbf8000
216939a255aSPaul Burton	help
217939a255aSPaul Burton	  The physical base address at which to map the MIPS Coherence Manager
218939a255aSPaul Burton	  Global Configuration Registers (GCRs). This should be set such that
219939a255aSPaul Burton	  the GCRs occupy a region of the physical address space which is
220939a255aSPaul Burton	  otherwise unused, or at minimum that software doesn't need to access.
221939a255aSPaul Burton
222af3971f8SDaniel Schwierzeckendmenu
223af3971f8SDaniel Schwierzeck
22425fc664fSDaniel Schwierzeckmenu "OS boot interface"
22525fc664fSDaniel Schwierzeck
22625fc664fSDaniel Schwierzeckconfig MIPS_BOOT_CMDLINE_LEGACY
22725fc664fSDaniel Schwierzeck	bool "Hand over legacy command line to Linux kernel"
22825fc664fSDaniel Schwierzeck	default y
22925fc664fSDaniel Schwierzeck	help
23025fc664fSDaniel Schwierzeck	  Enable this option if you want U-Boot to hand over the Yamon-style
23125fc664fSDaniel Schwierzeck	  command line to the kernel. All bootargs will be prepared as argc/argv
23225fc664fSDaniel Schwierzeck	  compatible list. The argument count (argc) is stored in register $a0.
23325fc664fSDaniel Schwierzeck	  The address of the argument list (argv) is stored in register $a1.
23425fc664fSDaniel Schwierzeck
235ca65e585SDaniel Schwierzeckconfig MIPS_BOOT_ENV_LEGACY
236ca65e585SDaniel Schwierzeck	bool "Hand over legacy environment to Linux kernel"
237ca65e585SDaniel Schwierzeck	default y
238ca65e585SDaniel Schwierzeck	help
239ca65e585SDaniel Schwierzeck	  Enable this option if you want U-Boot to hand over the Yamon-style
240ca65e585SDaniel Schwierzeck	  environment to the kernel. Information like memory size, initrd
241ca65e585SDaniel Schwierzeck	  address and size will be prepared as zero-terminated key/value list.
2421cc0a9f4SRobert P. J. Day	  The address of the environment is stored in register $a2.
243ca65e585SDaniel Schwierzeck
2445002d8ccSDaniel Schwierzeckconfig MIPS_BOOT_FDT
24590b1c9faSDaniel Schwierzeck	bool "Hand over a flattened device tree to Linux kernel"
2465002d8ccSDaniel Schwierzeck	default n
2475002d8ccSDaniel Schwierzeck	help
2485002d8ccSDaniel Schwierzeck	  Enable this option if you want U-Boot to hand over a flattened
24990b1c9faSDaniel Schwierzeck	  device tree to the kernel. According to UHI register $a0 will be set
25090b1c9faSDaniel Schwierzeck	  to -2 and the FDT address is stored in $a1.
2515002d8ccSDaniel Schwierzeck
25225fc664fSDaniel Schwierzeckendmenu
25325fc664fSDaniel Schwierzeck
2540e1dc345SDaniel Schwierzeckconfig SUPPORTS_BIG_ENDIAN
2550e1dc345SDaniel Schwierzeck	bool
2560e1dc345SDaniel Schwierzeck
2570e1dc345SDaniel Schwierzeckconfig SUPPORTS_LITTLE_ENDIAN
2580e1dc345SDaniel Schwierzeck	bool
2590e1dc345SDaniel Schwierzeck
26002611cbbSDaniel Schwierzeckconfig SUPPORTS_CPU_MIPS32_R1
26102611cbbSDaniel Schwierzeck	bool
26202611cbbSDaniel Schwierzeck
26302611cbbSDaniel Schwierzeckconfig SUPPORTS_CPU_MIPS32_R2
26402611cbbSDaniel Schwierzeck	bool
26502611cbbSDaniel Schwierzeck
266c52ebea1SPaul Burtonconfig SUPPORTS_CPU_MIPS32_R6
267c52ebea1SPaul Burton	bool
268c52ebea1SPaul Burton
26902611cbbSDaniel Schwierzeckconfig SUPPORTS_CPU_MIPS64_R1
27002611cbbSDaniel Schwierzeck	bool
27102611cbbSDaniel Schwierzeck
27202611cbbSDaniel Schwierzeckconfig SUPPORTS_CPU_MIPS64_R2
27302611cbbSDaniel Schwierzeck	bool
27402611cbbSDaniel Schwierzeck
275c52ebea1SPaul Burtonconfig SUPPORTS_CPU_MIPS64_R6
276c52ebea1SPaul Burton	bool
277c52ebea1SPaul Burton
278c57dafb5SDaniel Schwierzeckconfig CPU_MIPS32
279c57dafb5SDaniel Schwierzeck	bool
280c52ebea1SPaul Burton	default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R6
281c57dafb5SDaniel Schwierzeck
282c57dafb5SDaniel Schwierzeckconfig CPU_MIPS64
283c57dafb5SDaniel Schwierzeck	bool
284c52ebea1SPaul Burton	default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R6
285c57dafb5SDaniel Schwierzeck
2860315a289SDaniel Schwierzeckconfig MIPS_TUNE_4KC
2870315a289SDaniel Schwierzeck	bool
2880315a289SDaniel Schwierzeck
2890315a289SDaniel Schwierzeckconfig MIPS_TUNE_14KC
2900315a289SDaniel Schwierzeck	bool
2910315a289SDaniel Schwierzeck
2920315a289SDaniel Schwierzeckconfig MIPS_TUNE_24KC
2930315a289SDaniel Schwierzeck	bool
2940315a289SDaniel Schwierzeck
2955f9cc363SDaniel Schwierzeckconfig MIPS_TUNE_34KC
2965f9cc363SDaniel Schwierzeck	bool
2975f9cc363SDaniel Schwierzeck
2980a0a958bSMarek Vasutconfig MIPS_TUNE_74KC
2990a0a958bSMarek Vasut	bool
3000a0a958bSMarek Vasut
30102611cbbSDaniel Schwierzeckconfig 32BIT
30202611cbbSDaniel Schwierzeck	bool
30302611cbbSDaniel Schwierzeck
30402611cbbSDaniel Schwierzeckconfig 64BIT
30502611cbbSDaniel Schwierzeck	bool
30602611cbbSDaniel Schwierzeck
3079d638eeaSDaniel Schwierzeckconfig SWAP_IO_SPACE
3089d638eeaSDaniel Schwierzeck	bool
3099d638eeaSDaniel Schwierzeck
310dd7c7200SPaul Burtonconfig SYS_MIPS_CACHE_INIT_RAM_LOAD
311dd7c7200SPaul Burton	bool
312dd7c7200SPaul Burton
313924ad866SDaniel Schwierzeckconfig MIPS_INIT_STACK_IN_SRAM
314924ad866SDaniel Schwierzeck	bool
315924ad866SDaniel Schwierzeck	default n
316924ad866SDaniel Schwierzeck	help
317924ad866SDaniel Schwierzeck	  Select this if the initial stack frame could be setup in SRAM.
318924ad866SDaniel Schwierzeck	  Normally the initial stack frame is set up in DRAM which is often
319924ad866SDaniel Schwierzeck	  only available after lowlevel_init. With this option the initial
320924ad866SDaniel Schwierzeck	  stack frame and the early C environment is set up before
321924ad866SDaniel Schwierzeck	  lowlevel_init. Thus lowlevel_init does not need to be implemented
322924ad866SDaniel Schwierzeck	  in assembler.
323924ad866SDaniel Schwierzeck
324ace3be4fSPaul Burtonconfig SYS_DCACHE_SIZE
325ace3be4fSPaul Burton	int
326ace3be4fSPaul Burton	default 0
327ace3be4fSPaul Burton	help
328ace3be4fSPaul Burton	  The total size of the L1 Dcache, if known at compile time.
329ace3be4fSPaul Burton
33037228621SPaul Burtonconfig SYS_DCACHE_LINE_SIZE
3314b7b0a0fSPaul Burton	int
33237228621SPaul Burton	default 0
33337228621SPaul Burton	help
33437228621SPaul Burton	  The size of L1 Dcache lines, if known at compile time.
33537228621SPaul Burton
336ace3be4fSPaul Burtonconfig SYS_ICACHE_SIZE
337ace3be4fSPaul Burton	int
338ace3be4fSPaul Burton	default 0
339ace3be4fSPaul Burton	help
340ace3be4fSPaul Burton	  The total size of the L1 ICache, if known at compile time.
341ace3be4fSPaul Burton
34237228621SPaul Burtonconfig SYS_ICACHE_LINE_SIZE
343ace3be4fSPaul Burton	int
344ace3be4fSPaul Burton	default 0
345ace3be4fSPaul Burton	help
34637228621SPaul Burton	  The size of L1 Icache lines, if known at compile time.
347ace3be4fSPaul Burton
348ace3be4fSPaul Burtonconfig SYS_CACHE_SIZE_AUTO
349ace3be4fSPaul Burton	def_bool y if SYS_DCACHE_SIZE = 0 && SYS_ICACHE_SIZE = 0 && \
35037228621SPaul Burton		SYS_DCACHE_LINE_SIZE = 0 && SYS_ICACHE_LINE_SIZE = 0
351ace3be4fSPaul Burton	help
352ace3be4fSPaul Burton	  Select this (or let it be auto-selected by not defining any cache
353ace3be4fSPaul Burton	  sizes) in order to allow U-Boot to automatically detect the sizes
354ace3be4fSPaul Burton	  of caches at runtime. This has a small cost in code size & runtime
355ace3be4fSPaul Burton	  so if you know the cache configuration for your system at compile
356ace3be4fSPaul Burton	  time it would be beneficial to configure it.
357ace3be4fSPaul Burton
358f53830e7SDaniel Schwierzeckconfig MIPS_L1_CACHE_SHIFT_4
359f53830e7SDaniel Schwierzeck	bool
360f53830e7SDaniel Schwierzeck
361f53830e7SDaniel Schwierzeckconfig MIPS_L1_CACHE_SHIFT_5
362f53830e7SDaniel Schwierzeck	bool
363f53830e7SDaniel Schwierzeck
364f53830e7SDaniel Schwierzeckconfig MIPS_L1_CACHE_SHIFT_6
365f53830e7SDaniel Schwierzeck	bool
366f53830e7SDaniel Schwierzeck
367f53830e7SDaniel Schwierzeckconfig MIPS_L1_CACHE_SHIFT_7
368f53830e7SDaniel Schwierzeck	bool
369f53830e7SDaniel Schwierzeck
370f53830e7SDaniel Schwierzeckconfig MIPS_L1_CACHE_SHIFT
371f53830e7SDaniel Schwierzeck	int
372f53830e7SDaniel Schwierzeck	default "7" if MIPS_L1_CACHE_SHIFT_7
373f53830e7SDaniel Schwierzeck	default "6" if MIPS_L1_CACHE_SHIFT_6
374f53830e7SDaniel Schwierzeck	default "5" if MIPS_L1_CACHE_SHIFT_5
375f53830e7SDaniel Schwierzeck	default "4" if MIPS_L1_CACHE_SHIFT_4
376f53830e7SDaniel Schwierzeck	default "5"
377f53830e7SDaniel Schwierzeck
3784baa0ab6SPaul Burtonconfig MIPS_L2_CACHE
3794baa0ab6SPaul Burton	bool
3804baa0ab6SPaul Burton	help
3814baa0ab6SPaul Burton	  Select this if your system includes an L2 cache and you want U-Boot
3824baa0ab6SPaul Burton	  to initialise & maintain it.
3834baa0ab6SPaul Burton
38405e34255SPaul Burtonconfig DYNAMIC_IO_PORT_BASE
38505e34255SPaul Burton	bool
38605e34255SPaul Burton
387b2b135d9SPaul Burtonconfig MIPS_CM
388b2b135d9SPaul Burton	bool
389b2b135d9SPaul Burton	help
390b2b135d9SPaul Burton	  Select this if your system contains a MIPS Coherence Manager and you
391b2b135d9SPaul Burton	  wish U-Boot to configure it or make use of it to retrieve system
392b2b135d9SPaul Burton	  information such as cache configuration.
393b2b135d9SPaul Burton
394*d1c3d8bdSDaniel Schwierzeckconfig MIPS_INSERT_BOOT_CONFIG
395*d1c3d8bdSDaniel Schwierzeck	bool
396*d1c3d8bdSDaniel Schwierzeck	default n
397*d1c3d8bdSDaniel Schwierzeck	help
398*d1c3d8bdSDaniel Schwierzeck	  Enable this to insert some board-specific boot configuration in
399*d1c3d8bdSDaniel Schwierzeck	  the U-Boot binary at offset 0x10.
400*d1c3d8bdSDaniel Schwierzeck
401*d1c3d8bdSDaniel Schwierzeckconfig MIPS_BOOT_CONFIG_WORD0
402*d1c3d8bdSDaniel Schwierzeck	hex
403*d1c3d8bdSDaniel Schwierzeck	depends on MIPS_INSERT_BOOT_CONFIG
404*d1c3d8bdSDaniel Schwierzeck	default 0x420 if TARGET_MALTA
405*d1c3d8bdSDaniel Schwierzeck	default 0x0
406*d1c3d8bdSDaniel Schwierzeck	help
407*d1c3d8bdSDaniel Schwierzeck	  Value which is inserted as boot config word 0.
408*d1c3d8bdSDaniel Schwierzeck
409*d1c3d8bdSDaniel Schwierzeckconfig MIPS_BOOT_CONFIG_WORD1
410*d1c3d8bdSDaniel Schwierzeck	hex
411*d1c3d8bdSDaniel Schwierzeck	depends on MIPS_INSERT_BOOT_CONFIG
412*d1c3d8bdSDaniel Schwierzeck	default 0x0
413*d1c3d8bdSDaniel Schwierzeck	help
414*d1c3d8bdSDaniel Schwierzeck	  Value which is inserted as boot config word 1.
415*d1c3d8bdSDaniel Schwierzeck
4160e1dc345SDaniel Schwierzeckendif
4170e1dc345SDaniel Schwierzeck
418dd84058dSMasahiro Yamadaendmenu
419