• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SPDX-License-Identifier: GPL-2.0
2config BF52x
3	def_bool y
4	depends on (BF522 || BF523 || BF524 || BF525 || BF526 || BF527)
5
6if (BF52x)
7
8source "arch/blackfin/mach-bf527/boards/Kconfig"
9
10menu "BF527 Specific Configuration"
11
12comment "Alternative Multiplexing Scheme"
13
14choice
15	prompt "SPORT0"
16	default BF527_SPORT0_PORTG
17	help
18	  Select PORT used for SPORT0. See Hardware Reference Manual
19
20config BF527_SPORT0_PORTF
21	bool "PORT F"
22	help
23	  PORT F
24
25config BF527_SPORT0_PORTG
26	bool "PORT G"
27	help
28	  PORT G
29endchoice
30
31choice
32	prompt "SPORT0 TSCLK Location"
33	depends on BF527_SPORT0_PORTG
34	default BF527_SPORT0_TSCLK_PG10
35	help
36	  Select PIN used for SPORT0_TSCLK. See Hardware Reference Manual
37
38config BF527_SPORT0_TSCLK_PG10
39	bool "PORT PG10"
40	help
41	  PORT PG10
42
43config BF527_SPORT0_TSCLK_PG14
44	bool "PORT PG14"
45	help
46	  PORT PG14
47endchoice
48
49choice
50	prompt "UART1"
51	default BF527_UART1_PORTF
52	help
53	  Select PORT used for UART1. See Hardware Reference Manual
54
55config BF527_UART1_PORTF
56	bool "PORT F"
57	help
58	  PORT F
59
60config BF527_UART1_PORTG
61	bool "PORT G"
62	help
63	  PORT G
64endchoice
65
66choice
67	prompt "NAND (NFC) Data"
68	default BF527_NAND_D_PORTH
69	help
70	  Select PORT used for NAND Data Bus. See Hardware Reference Manual
71
72config BF527_NAND_D_PORTF
73	bool "PORT F"
74	help
75	  PORT F
76
77config BF527_NAND_D_PORTH
78	bool "PORT H"
79	help
80	  PORT H
81endchoice
82
83comment "Hysteresis/Schmitt Trigger Control"
84config BFIN_HYSTERESIS_CONTROL
85	bool "Enable Hysteresis Control"
86	help
87	  The ADSP-BF52x allows to control input hysteresis for Port F,
88	  Port G and Port H and other processor signal inputs.
89	  The Schmitt trigger enables can be set only for pin groups.
90	  Saying Y will overwrite the default reset or boot loader
91	  initialization.
92
93menu "PORT F"
94	depends on BFIN_HYSTERESIS_CONTROL
95config GPIO_HYST_PORTF_0_7
96	bool "Enable Hysteresis on PORTF {0...7}"
97config GPIO_HYST_PORTF_8_9
98	bool "Enable Hysteresis on PORTF {8, 9}"
99config GPIO_HYST_PORTF_10
100	bool "Enable Hysteresis on PORTF 10"
101config GPIO_HYST_PORTF_11
102	bool "Enable Hysteresis on PORTF 11"
103config GPIO_HYST_PORTF_12_13
104	bool "Enable Hysteresis on PORTF {12, 13}"
105config GPIO_HYST_PORTF_14_15
106	bool "Enable Hysteresis on PORTF {14, 15}"
107endmenu
108
109menu "PORT G"
110	depends on BFIN_HYSTERESIS_CONTROL
111config GPIO_HYST_PORTG_0
112	bool "Enable Hysteresis on PORTG 0"
113config GPIO_HYST_PORTG_1_4
114	bool "Enable Hysteresis on PORTG {1...4}"
115config GPIO_HYST_PORTG_5_6
116	bool "Enable Hysteresis on PORTG {5, 6}"
117config GPIO_HYST_PORTG_7_8
118	bool "Enable Hysteresis on PORTG {7, 8}"
119config GPIO_HYST_PORTG_9
120	bool "Enable Hysteresis on PORTG 9"
121config GPIO_HYST_PORTG_10
122	bool "Enable Hysteresis on PORTG 10"
123config GPIO_HYST_PORTG_11_13
124	bool "Enable Hysteresis on PORTG {11...13}"
125config GPIO_HYST_PORTG_14_15
126	bool "Enable Hysteresis on PORTG {14, 15}"
127endmenu
128
129menu "PORT H"
130	depends on BFIN_HYSTERESIS_CONTROL
131config GPIO_HYST_PORTH_0_7
132	bool "Enable Hysteresis on PORTH {0...7}"
133config GPIO_HYST_PORTH_8
134	bool "Enable Hysteresis on PORTH 8"
135config GPIO_HYST_PORTH_9_15
136	bool "Enable Hysteresis on PORTH {9...15}"
137endmenu
138
139menu "None-GPIO"
140	depends on BFIN_HYSTERESIS_CONTROL
141config NONEGPIO_HYST_TMR0_FS1_PPICLK
142	bool "Enable Hysteresis on {TMR0, PPI_FS1, PPI_CLK}"
143config NONEGPIO_HYST_NMI_RST_BMODE
144	bool "Enable Hysteresis on {NMI, RESET, BMODE}"
145config NONEGPIO_HYST_JTAG
146	bool "Enable Hysteresis on JTAG"
147endmenu
148
149comment "Interrupt Priority Assignment"
150menu "Priority"
151
152config IRQ_PLL_WAKEUP
153	int "IRQ_PLL_WAKEUP"
154	default 7
155config IRQ_DMA0_ERROR
156	int "IRQ_DMA0_ERROR"
157	default 7
158config IRQ_DMAR0_BLK
159	int "IRQ_DMAR0_BLK"
160	default 7
161config IRQ_DMAR1_BLK
162	int "IRQ_DMAR1_BLK"
163	default 7
164config IRQ_DMAR0_OVR
165	int "IRQ_DMAR0_OVR"
166	default 7
167config IRQ_DMAR1_OVR
168	int "IRQ_DMAR1_OVR"
169	default 7
170config IRQ_PPI_ERROR
171	int "IRQ_PPI_ERROR"
172	default 7
173config IRQ_MAC_ERROR
174	int "IRQ_MAC_ERROR"
175	default 7
176config IRQ_SPORT0_ERROR
177	int "IRQ_SPORT0_ERROR"
178	default 7
179config IRQ_SPORT1_ERROR
180	int "IRQ_SPORT1_ERROR"
181	default 7
182config IRQ_UART0_ERROR
183	int "IRQ_UART0_ERROR"
184	default 7
185config IRQ_UART1_ERROR
186	int "IRQ_UART1_ERROR"
187	default 7
188config IRQ_RTC
189	int "IRQ_RTC"
190	default 8
191config IRQ_PPI
192	int "IRQ_PPI"
193	default 8
194config IRQ_SPORT0_RX
195	int "IRQ_SPORT0_RX"
196	default 9
197config IRQ_SPORT0_TX
198	int "IRQ_SPORT0_TX"
199	default 9
200config IRQ_SPORT1_RX
201	int "IRQ_SPORT1_RX"
202	default 9
203config IRQ_SPORT1_TX
204	int "IRQ_SPORT1_TX"
205	default 9
206config IRQ_TWI
207	int "IRQ_TWI"
208	default 10
209config IRQ_SPI
210	int "IRQ_SPI"
211	default 10
212config IRQ_UART0_RX
213	int "IRQ_UART0_RX"
214	default 10
215config IRQ_UART0_TX
216	int "IRQ_UART0_TX"
217	default 10
218config IRQ_UART1_RX
219	int "IRQ_UART1_RX"
220	default 10
221config IRQ_UART1_TX
222	int "IRQ_UART1_TX"
223	default 10
224config IRQ_OPTSEC
225	int "IRQ_OPTSEC"
226	default 11
227config IRQ_CNT
228	int "IRQ_CNT"
229	default 11
230config IRQ_MAC_RX
231	int "IRQ_MAC_RX"
232	default 11
233config IRQ_PORTH_INTA
234	int "IRQ_PORTH_INTA"
235	default 11
236config IRQ_MAC_TX
237	int "IRQ_MAC_TX/NFC"
238	default 11
239config IRQ_PORTH_INTB
240	int "IRQ_PORTH_INTB"
241	default 11
242config IRQ_TIMER0
243	int "IRQ_TIMER0"
244	default 7 if TICKSOURCE_GPTMR0
245	default 8
246config IRQ_TIMER1
247	int "IRQ_TIMER1"
248	default 12
249config IRQ_TIMER2
250	int "IRQ_TIMER2"
251	default 12
252config IRQ_TIMER3
253	int "IRQ_TIMER3"
254	default 12
255config IRQ_TIMER4
256	int "IRQ_TIMER4"
257	default 12
258config IRQ_TIMER5
259	int "IRQ_TIMER5"
260	default 12
261config IRQ_TIMER6
262	int "IRQ_TIMER6"
263	default 12
264config IRQ_TIMER7
265	int "IRQ_TIMER7"
266	default 12
267config IRQ_PORTG_INTA
268	int "IRQ_PORTG_INTA"
269	default 12
270config IRQ_PORTG_INTB
271	int "IRQ_PORTG_INTB"
272	default 12
273config IRQ_MEM_DMA0
274	int "IRQ_MEM_DMA0"
275	default 13
276config IRQ_MEM_DMA1
277	int "IRQ_MEM_DMA1"
278	default 13
279config IRQ_WATCH
280	int "IRQ_WATCH"
281	default 13
282config IRQ_PORTF_INTA
283	int "IRQ_PORTF_INTA"
284	default 13
285config IRQ_PORTF_INTB
286	int "IRQ_PORTF_INTB"
287	default 13
288config IRQ_SPI_ERROR
289	int "IRQ_SPI_ERROR"
290	default 7
291config IRQ_NFC_ERROR
292	int "IRQ_NFC_ERROR"
293	default 7
294config IRQ_HDMA_ERROR
295	int "IRQ_HDMA_ERROR"
296	default 7
297config IRQ_HDMA
298	int "IRQ_HDMA"
299	default 7
300config IRQ_USB_EINT
301	int "IRQ_USB_EINT"
302	default 10
303config IRQ_USB_INT0
304	int "IRQ_USB_INT0"
305	default 10
306config IRQ_USB_INT1
307	int "IRQ_USB_INT1"
308	default 10
309config IRQ_USB_INT2
310	int "IRQ_USB_INT2"
311	default 10
312config IRQ_USB_DMA
313	int "IRQ_USB_DMA"
314	default 10
315
316	help
317	  Enter the priority numbers between 7-13 ONLY.  Others are Reserved.
318	  This applies to all the above.  It is not recommended to assign the
319	  highest priority number 7 to UART or any other device.
320
321endmenu
322
323endmenu
324
325endif
326