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