From ebf4fabc3df33ddcc24e824b63425dc589d20279 Mon Sep 17 00:00:00 2001 From: Russell King Date: Tue, 20 Sep 2016 00:41:32 +0100 Subject: h3xxx: add socket0 --- arch/arm/mach-sa1100/h3xxx.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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); -- cgit