diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2016-09-20 00:41:32 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-01-08 10:30:14 +0000 |
commit | d38c8fbf810860dac8c7165ffcde649b11c8cfce (patch) | |
tree | cb68a4ec63c64e482ead362db943055158c6e226 /arch | |
parent | 81f738bb015cd7cbe2ee66a7a68e03a1d6846fd0 (diff) |
h3xxx: add socket0
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-sa1100/h3xxx.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-sa1100/h3xxx.c b/arch/arm/mach-sa1100/h3xxx.c index 2e43f0ff9948..baf62ef2ad70 100644 --- a/arch/arm/mach-sa1100/h3xxx.c +++ b/arch/arm/mach-sa1100/h3xxx.c @@ -204,9 +204,22 @@ static struct gpiod_lookup_table h3xxx_pcmcia_gpio_table = { }, }; +static struct gpiod_lookup_table h3xxx_pcmcia_socket0_gpio_table = { + .dev_id = "sa11x0-pcmcia", + .table = { + GPIO_LOOKUP("gpio", H3XXX_GPIO_PCMCIA_CD0, + "detect", GPIO_ACTIVE_LOW), + GPIO_LOOKUP("gpio", H3XXX_GPIO_PCMCIA_IRQ0, + "ready", GPIO_ACTIVE_HIGH), + GPIO_LOOKUP("htc-gpio", 1, "reset", GPIO_ACTIVE_HIGH), + { }, + }, +}; + void __init h3xxx_mach_init(void) { gpiod_add_lookup_table(&h3xxx_pcmcia_gpio_table); + gpiod_add_lookup_table(&h3xxx_pcmcia_socket0_gpio_table); gpiod_add_lookup_table(&h3xxx_uart3_gpio_table); sa1100_register_uart_fns(&h3xxx_port_fns); sa11x0_register_mtd(&h3xxx_flash_data, &h3xxx_flash_resource, 1); |