diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2016-09-26 15:13:04 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-05-23 16:02:34 +0100 |
commit | 720127668b1a5c014554efbf87fcb8d4cc8c4e25 (patch) | |
tree | 81c992440d50d4d72a8a76bdf2800795e32f9266 /arch/arm/mach-sa1100/h3100.c | |
parent | 7b0721657b912c54c10ed03d2f40f32d3ca1a42a (diff) |
h3600 audio gpios
Diffstat (limited to 'arch/arm/mach-sa1100/h3100.c')
-rw-r--r-- | arch/arm/mach-sa1100/h3100.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-sa1100/h3100.c b/arch/arm/mach-sa1100/h3100.c index d32e03ed6d1d..c3dc51c90c40 100644 --- a/arch/arm/mach-sa1100/h3100.c +++ b/arch/arm/mach-sa1100/h3100.c @@ -96,9 +96,29 @@ static struct gpiod_lookup_table h3100_irda_gpio_table = { }, }; +static struct gpiod_lookup_table h3100_uda134x_gpio_table = { + .dev_id = "uda134x-codec", + .table = { + GPIO_LOOKUP("gpio", 4, "qmute", GPIO_ACTIVE_HIGH), + { }, + }, +}; + +static struct gpiod_lookup_table h3100_asoc_gpio_table = { + .dev_id = "h3xxx-asoc", + .table = { + GPIO_LOOKUP("gpio", 6, "audio-on", GPIO_ACTIVE_HIGH), + GPIO_LOOKUP("gpio", 7, "audio-power-on", GPIO_ACTIVE_HIGH), + GPIO_LOOKUP("htc-egpio", 3, "audio-reset", GPIO_ACTIVE_HIGH), + { }, + }, +}; + static void __init h3100_mach_init(void) { gpiod_add_lookup_table(&h3100_irda_gpio_table); + gpiod_add_lookup_table(&h3100_uda134x_gpio_table); + gpiod_add_lookup_table(&h3100_asoc_gpio_table); h3xxx_mach_init(); |