diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2016-09-20 00:41:32 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-10-12 21:56:08 +0100 |
commit | ebf4fabc3df33ddcc24e824b63425dc589d20279 (patch) | |
tree | 2e4d1f261fece52ac125a2bbd3e7e47d847513e4 | |
parent | cfa92c6fa776843abd86be6cd2773fc587b5c128 (diff) |
h3xxx: add socket0
-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); |