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-03-26 12:09:19 +0000 |
commit | 9c9fec92524e9b96ac1f82c25f1d4a4efed43fa5 (patch) | |
tree | a4772afb4459b541c40cbf29661b6f0f973f6821 | |
parent | 945a450b6db63c26647137f65f4be66acb7bbdc7 (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); |