xref: /openbmc/linux/arch/mips/sibyte/Kconfig (revision 76e7f799)
1config SIBYTE_SB1250
2	bool
3	select HW_HAS_PCI
4	select SIBYTE_ENABLE_LDT_IF_PCI
5	select SIBYTE_HAS_ZBUS_PROFILING
6	select SIBYTE_SB1xxx_SOC
7	select SYS_SUPPORTS_SMP
8
9config SIBYTE_BCM1120
10	bool
11	select SIBYTE_BCM112X
12	select SIBYTE_HAS_ZBUS_PROFILING
13	select SIBYTE_SB1xxx_SOC
14
15config SIBYTE_BCM1125
16	bool
17	select HW_HAS_PCI
18	select SIBYTE_BCM112X
19	select SIBYTE_HAS_ZBUS_PROFILING
20	select SIBYTE_SB1xxx_SOC
21
22config SIBYTE_BCM1125H
23	bool
24	select HW_HAS_PCI
25	select SIBYTE_BCM112X
26	select SIBYTE_ENABLE_LDT_IF_PCI
27	select SIBYTE_HAS_ZBUS_PROFILING
28	select SIBYTE_SB1xxx_SOC
29
30config SIBYTE_BCM112X
31	bool
32	select SIBYTE_SB1xxx_SOC
33	select SIBYTE_HAS_ZBUS_PROFILING
34
35config SIBYTE_BCM1x80
36	bool
37	select HW_HAS_PCI
38	select SIBYTE_HAS_ZBUS_PROFILING
39	select SIBYTE_SB1xxx_SOC
40	select SYS_SUPPORTS_SMP
41
42config SIBYTE_BCM1x55
43	bool
44	select HW_HAS_PCI
45	select SIBYTE_SB1xxx_SOC
46	select SIBYTE_HAS_ZBUS_PROFILING
47	select SYS_SUPPORTS_SMP
48
49config SIBYTE_SB1xxx_SOC
50	bool
51	select DMA_COHERENT
52	select SIBYTE_CFE
53	select SWAP_IO_SPACE
54	select SYS_SUPPORTS_32BIT_KERNEL
55	select SYS_SUPPORTS_64BIT_KERNEL
56
57choice
58	prompt "SiByte SOC Stepping"
59	depends on SIBYTE_SB1xxx_SOC
60
61config CPU_SB1_PASS_1
62	bool "1250 Pass1"
63	depends on SIBYTE_SB1250
64	select CPU_HAS_PREFETCH
65
66config CPU_SB1_PASS_2_1250
67	bool "1250 An"
68	depends on SIBYTE_SB1250
69	select CPU_SB1_PASS_2
70	help
71	  Also called BCM1250 Pass 2
72
73config CPU_SB1_PASS_2_2
74	bool "1250 Bn"
75	depends on SIBYTE_SB1250
76	select CPU_HAS_PREFETCH
77	help
78	  Also called BCM1250 Pass 2.2
79
80config CPU_SB1_PASS_4
81	bool "1250 Cn"
82	depends on SIBYTE_SB1250
83	select CPU_HAS_PREFETCH
84	help
85	  Also called BCM1250 Pass 3
86
87config CPU_SB1_PASS_2_112x
88	bool "112x Hybrid"
89	depends on SIBYTE_BCM112X
90	select CPU_SB1_PASS_2
91
92config CPU_SB1_PASS_3
93	bool "112x An"
94	depends on SIBYTE_BCM112X
95	select CPU_HAS_PREFETCH
96
97endchoice
98
99config CPU_SB1_PASS_2
100	bool
101
102config SIBYTE_HAS_LDT
103	bool
104
105config SIBYTE_ENABLE_LDT_IF_PCI
106	bool
107	select SIBYTE_HAS_LDT if PCI
108
109config SIMULATION
110	bool "Running under simulation"
111	depends on SIBYTE_SB1xxx_SOC
112	help
113	  Build a kernel suitable for running under the GDB simulator.
114	  Primarily adjusts the kernel's notion of time.
115
116config SB1_CEX_ALWAYS_FATAL
117	bool "All cache exceptions considered fatal (no recovery attempted)"
118	depends on SIBYTE_SB1xxx_SOC
119
120config SB1_CERR_STALL
121	bool "Stall (rather than panic) on fatal cache error"
122	depends on SIBYTE_SB1xxx_SOC
123
124config SIBYTE_CFE
125	bool "Booting from CFE"
126	depends on SIBYTE_SB1xxx_SOC
127	select SYS_HAS_EARLY_PRINTK
128	help
129	  Make use of the CFE API for enumerating available memory,
130	  controlling secondary CPUs, and possibly console output.
131
132config SIBYTE_CFE_CONSOLE
133	bool "Use firmware console"
134	depends on SIBYTE_CFE
135	help
136	  Use the CFE API's console write routines during boot.  Other console
137	  options (VT console, sb1250 duart console, etc.) should not be
138	  configured.
139
140config SIBYTE_STANDALONE
141	bool
142	depends on SIBYTE_SB1xxx_SOC && !SIBYTE_CFE
143	select SYS_HAS_EARLY_PRINTK
144	default y
145
146config SIBYTE_STANDALONE_RAM_SIZE
147	int "Memory size (in megabytes)"
148	depends on SIBYTE_STANDALONE
149	default "32"
150
151config SIBYTE_BUS_WATCHER
152	bool "Support for Bus Watcher statistics"
153	depends on SIBYTE_SB1xxx_SOC
154	help
155	  Handle and keep statistics on the bus error interrupts (COR_ECC,
156	  BAD_ECC, IO_BUS).
157
158config SIBYTE_BW_TRACE
159	bool "Capture bus trace before bus error"
160	depends on SIBYTE_BUS_WATCHER
161	help
162	  Run a continuous bus trace, dumping the raw data as soon as
163	  a ZBbus error is detected.  Cannot work if ZBbus profiling
164	  is turned on, and also will interfere with JTAG-based trace
165	  buffer activity.  Raw buffer data is dumped to console, and
166	  must be processed off-line.
167
168config SIBYTE_SB1250_PROF
169	bool "Support for SB1/SOC profiling - SB1/SCD perf counters"
170	depends on SIBYTE_SB1xxx_SOC
171
172config SIBYTE_TBPROF
173	tristate "Support for ZBbus profiling"
174	depends on SIBYTE_HAS_ZBUS_PROFILING
175
176config SIBYTE_HAS_ZBUS_PROFILING
177	bool
178