diff options
Diffstat (limited to 'arch/arm/mach-sa1100/h3600.c')
-rw-r--r-- | arch/arm/mach-sa1100/h3600.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-sa1100/h3600.c b/arch/arm/mach-sa1100/h3600.c index 5f4fb3027799..28ce2d1353c7 100644 --- a/arch/arm/mach-sa1100/h3600.c +++ b/arch/arm/mach-sa1100/h3600.c @@ -104,9 +104,22 @@ static struct gpiod_lookup_table h3600_irda_gpio_table = { }, }; +static struct gpiod_lookup_table h3600_sleeve_gpio_table = { + .dev_id = "ipaq-h3xxx-sleeve", + .table = { + GPIO_LOOKUP("gpio", H3600_GPIO_OPT_DET, + "option-detect", GPIO_ACTIVE_LOW), + GPIO_LOOKUP("htc-egpio", 2, "option-reset", GPIO_ACTIVE_HIGH), + GPIO_LOOKUP("htc-egpio", 4, "nvram-on", GPIO_ACTIVE_HIGH), + GPIO_LOOKUP("htc-egpio", 5, "option-on", GPIO_ACTIVE_HIGH), + { }, + }, +}; + static void __init h3600_mach_init(void) { gpiod_add_lookup_table(&h3600_irda_gpio_table); + gpiod_add_lookup_table(&h3600_sleeve_gpio_table); h3xxx_mach_init(); |