2015-07-21 23:12:17 +08:00
|
|
|
menuconfig GPIO
|
|
|
|
bool
|
|
|
|
prompt "GPIO Drivers"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Include GPIO drivers in system config
|
|
|
|
|
2015-09-17 02:50:12 +08:00
|
|
|
config GPIO_DW
|
|
|
|
prompt "Designware GPIO"
|
|
|
|
default n
|
|
|
|
depends on GPIO
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Enable driver for Designware GPIO
|
|
|
|
|
2015-08-25 22:31:48 +08:00
|
|
|
config GPIO_DW_VENDOR_ID
|
|
|
|
hex "PCI Vendor ID"
|
|
|
|
depends on GPIO_DW && PCI
|
|
|
|
default 0x8086
|
|
|
|
|
|
|
|
config GPIO_DW_DEVICE_ID
|
|
|
|
hex "PCI Device ID"
|
|
|
|
depends on GPIO_DW && PCI
|
2015-08-31 20:44:15 +08:00
|
|
|
default 0x934
|
2015-08-25 22:31:48 +08:00
|
|
|
|
|
|
|
config GPIO_DW_CLASS
|
|
|
|
hex "PCI class"
|
|
|
|
depends on GPIO_DW && PCI
|
2015-08-31 20:44:15 +08:00
|
|
|
default 0x0C
|
2015-08-25 22:31:48 +08:00
|
|
|
|
2015-07-21 23:12:17 +08:00
|
|
|
config GPIO_DW_0
|
|
|
|
bool "Designware GPIO block 0"
|
2015-09-17 02:50:12 +08:00
|
|
|
depends on GPIO_DW
|
2015-07-21 23:12:17 +08:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Include Designware GPIO driver
|
|
|
|
|
|
|
|
config GPIO_DW_0_NAME
|
|
|
|
string "Driver name"
|
|
|
|
depends on GPIO_DW_0
|
|
|
|
default "GPIO_0"
|
|
|
|
|
|
|
|
config GPIO_DW_0_BASE_ADDR
|
|
|
|
hex "Controller base address"
|
|
|
|
depends on GPIO_DW_0
|
|
|
|
default 0x00000000
|
|
|
|
|
2015-08-25 22:31:48 +08:00
|
|
|
config GPIO_DW_0_BUS
|
|
|
|
int "Port 0 PCI Bus"
|
|
|
|
depends on GPIO_DW_0 && PCI
|
|
|
|
default 0
|
|
|
|
|
|
|
|
config GPIO_DW_0_DEV
|
|
|
|
int "Port 0 PCI Dev"
|
|
|
|
depends on GPIO_DW_0 && PCI
|
|
|
|
default 0
|
|
|
|
|
|
|
|
config GPIO_DW_0_FUNCTION
|
|
|
|
int "PCI function number"
|
|
|
|
depends on GPIO_DW_0 && PCI
|
|
|
|
default 0
|
|
|
|
|
|
|
|
config GPIO_DW_0_BAR
|
|
|
|
int "PCI BAR slot"
|
|
|
|
depends on GPIO_DW_0 && PCI
|
|
|
|
default 0
|
|
|
|
|
2015-07-21 23:12:17 +08:00
|
|
|
config GPIO_DW_0_BITS
|
|
|
|
int "number of pins controlled"
|
|
|
|
depends on GPIO_DW_0
|
|
|
|
default 32
|
|
|
|
help
|
|
|
|
Number of pins controlled by controller
|
|
|
|
|
|
|
|
config GPIO_DW_0_IRQ
|
|
|
|
int "Controller interrupt number"
|
|
|
|
depends on GPIO_DW_0
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
IRQ number for the controller
|
|
|
|
|
|
|
|
config GPIO_DW_0_PRI
|
|
|
|
int "Controller interrupt priority"
|
|
|
|
depends on GPIO_DW_0
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
IRQ priority
|
|
|
|
|
|
|
|
config GPIO_DW_1
|
|
|
|
bool "Designware GPIO block 1"
|
2015-09-17 02:50:12 +08:00
|
|
|
depends on GPIO_DW
|
2015-07-21 23:12:17 +08:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Include Designware GPIO driver
|
|
|
|
|
|
|
|
config GPIO_DW_1_NAME
|
|
|
|
string "Driver name"
|
|
|
|
depends on GPIO_DW_1
|
|
|
|
default "GPIO_1"
|
|
|
|
|
|
|
|
config GPIO_DW_1_BASE_ADDR
|
|
|
|
hex "Controller base address"
|
|
|
|
depends on GPIO_DW_1
|
|
|
|
default 0x00000000
|
|
|
|
|
|
|
|
config GPIO_DW_1_BITS
|
|
|
|
int "number of pins controlled"
|
|
|
|
depends on GPIO_DW_1
|
|
|
|
default 32
|
|
|
|
help
|
|
|
|
Number of pins controlled by controller
|
|
|
|
|
|
|
|
config GPIO_DW_1_IRQ
|
|
|
|
int "Controller interrupt number"
|
|
|
|
depends on GPIO_DW_1
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
IRQ number for the controller
|
|
|
|
|
|
|
|
config GPIO_DW_1_PRI
|
|
|
|
int "Controller interrupt priority"
|
|
|
|
depends on GPIO_DW_1
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
IRQ priority
|