1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 | # Kconfig.dw - DesignWare GPIO configuration options
#
#
# Copyright (c) 2016 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig GPIO_DW
bool "Designware GPIO"
select HAS_DTS_GPIO
help
Enable driver for Designware GPIO
if GPIO_DW
config GPIO_DW_SHARED_IRQ
bool
config GPIO_DW_INIT_PRIORITY
int "Init priority"
default 60
help
Device driver initialization priority.
config GPIO_DW_CLOCK_GATE
bool "Enable clock gating"
select CLOCK_CONTROL
config GPIO_DW_CLOCK_GATE_DRV_NAME
string
depends on GPIO_DW_CLOCK_GATE
default ""
config GPIO_DW_0
bool "Designware GPIO block 0"
help
Include Designware GPIO driver
if !HAS_DTS
config GPIO_DW_0_NAME
string "Driver name"
depends on GPIO_DW_0
default "GPIO_0"
endif
config GPIO_DW_0_CLOCK_GATE_SUBSYS
int "Clock controller's subsystem"
depends on GPIO_DW_CLOCK_GATE && GPIO_DW_0
choice
prompt "Port 0 Interrupts via"
default GPIO_DW_0_IRQ_DIRECT
depends on GPIO_DW_0
config GPIO_DW_0_IRQ_DIRECT
bool "Direct Hardware Interrupt"
help
When interrupts fire, the driver's ISR function is being called directly.
config GPIO_DW_0_IRQ_SHARED
bool "Shared IRQ"
depends on SHARED_IRQ
select GPIO_DW_SHARED_IRQ
help
When interrupts fire, the shared IRQ driver is notified. Then the shared IRQ
driver dispatches the interrupt to other drivers.
endchoice
if !HAS_DTS
config GPIO_DW_0_IRQ_PRI
int "Controller interrupt priority"
depends on GPIO_DW_0 && GPIO_DW_0_IRQ_DIRECT
help
IRQ priority
endif
config GPIO_DW_1
bool "Designware GPIO block 1"
help
Include Designware GPIO driver
if !HAS_DTS
config GPIO_DW_1_NAME
string "Driver name"
depends on GPIO_DW_1
default "GPIO_1"
endif
config GPIO_DW_1_CLOCK_GATE_SUBSYS
int "Clock controller's subsystem"
depends on GPIO_DW_CLOCK_GATE && GPIO_DW_1
choice
prompt "Port 1 Interrupts via"
default GPIO_DW_1_IRQ_DIRECT
depends on GPIO_DW_1
config GPIO_DW_1_IRQ_DIRECT
bool "Direct Hardware Interrupt"
help
When interrupts fire, the driver's ISR function is being called directly.
config GPIO_DW_1_IRQ_SHARED
bool "Shared IRQ"
depends on SHARED_IRQ
select GPIO_DW_SHARED_IRQ
help
When interrupts fire, the shared IRQ driver is notified. Then the shared IRQ
driver dispatches the interrupt to other drivers.
endchoice
if !HAS_DTS
config GPIO_DW_1_IRQ_PRI
int "Controller interrupt priority"
depends on GPIO_DW_1 && GPIO_DW_1_IRQ_DIRECT
help
IRQ priority
endif
config GPIO_DW_2
bool "Designware GPIO block 1"
help
Include Designware GPIO driver
if !HAS_DTS
config GPIO_DW_2_NAME
string "Driver name"
depends on GPIO_DW_2
default "GPIO_2"
endif
config GPIO_DW_2_CLOCK_GATE_SUBSYS
int "Clock controller's subsystem"
depends on GPIO_DW_CLOCK_GATE && GPIO_DW_2
choice
prompt "Port 1 Interrupts via"
default GPIO_DW_2_IRQ_DIRECT
depends on GPIO_DW_2
config GPIO_DW_2_IRQ_DIRECT
bool "Direct Hardware Interrupt"
help
When interrupts fire, the driver's ISR function is being called directly.
config GPIO_DW_2_IRQ_SHARED
bool "Shared IRQ"
depends on SHARED_IRQ
select GPIO_DW_SHARED_IRQ
help
When interrupts fire, the shared IRQ driver is notified. Then the shared IRQ
driver dispatches the interrupt to other drivers.
endchoice
if !HAS_DTS
config GPIO_DW_2_IRQ_PRI
int "Controller interrupt priority"
depends on GPIO_DW_2 && GPIO_DW_2_IRQ_DIRECT
help
IRQ priority
endif
config GPIO_DW_3
bool "Designware GPIO block 1"
help
Include Designware GPIO driver
if !HAS_DTS
config GPIO_DW_3_NAME
string "Driver name"
depends on GPIO_DW_3
default "GPIO_3"
endif
config GPIO_DW_3_CLOCK_GATE_SUBSYS
int "Clock controller's subsystem"
depends on GPIO_DW_CLOCK_GATE && GPIO_DW_3
choice
prompt "Port 1 Interrupts via"
default GPIO_DW_3_IRQ_DIRECT
depends on GPIO_DW_3
config GPIO_DW_3_IRQ_DIRECT
bool "Direct Hardware Interrupt"
help
When interrupts fire, the driver's ISR function is being called directly.
config GPIO_DW_3_IRQ_SHARED
bool "Shared IRQ"
depends on SHARED_IRQ
select GPIO_DW_SHARED_IRQ
help
When interrupts fire, the shared IRQ driver is notified. Then the shared IRQ
driver dispatches the interrupt to other drivers.
endchoice
if !HAS_DTS
config GPIO_DW_3_IRQ_PRI
int "Controller interrupt priority"
depends on GPIO_DW_3 && GPIO_DW_3_IRQ_DIRECT
help
IRQ priority
endif
endif # GPIO_DW
|