summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2016-09-26 15:13:04 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2024-03-26 12:09:27 +0000
commit072501a5fd9bcf441d8018dc2fc38d7f7723b8e6 (patch)
tree436a55c523222668c34859d3fab39a63d203f606
parent33b458816d182325d07e173f34030dae035fd114 (diff)
h3600 audio gpios
-rw-r--r--arch/arm/mach-sa1100/h3600.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-sa1100/h3600.c b/arch/arm/mach-sa1100/h3600.c
index 4c0ba7372487..d9ac9aa87308 100644
--- a/arch/arm/mach-sa1100/h3600.c
+++ b/arch/arm/mach-sa1100/h3600.c
@@ -116,10 +116,30 @@ static struct platform_device_info h3600_audio_clk_device = {
.id = -1,
};
+static struct gpiod_lookup_table h3600_uda134x_gpio_table = {
+ .dev_id = "uda134x-codec",
+ .table = {
+ GPIO_LOOKUP("htc-egpio", 12, "qmute", GPIO_ACTIVE_HIGH),
+ { },
+ },
+};
+
+static struct gpiod_lookup_table h3600_asoc_gpio_table = {
+ .dev_id = "h3xxx-asoc",
+ .table = {
+ GPIO_LOOKUP("htc-egpio", 3, "audio-reset", GPIO_ACTIVE_HIGH),
+ GPIO_LOOKUP("htc-egpio", 10, "amp-power", GPIO_ACTIVE_HIGH),
+ GPIO_LOOKUP("htc-egpio", 11, "audio-power", GPIO_ACTIVE_HIGH),
+ { },
+ },
+};
+
static void __init h3600_mach_init(void)
{
gpiod_add_lookup_table(&h3600_sleeve_gpio_table);
gpiod_add_lookup_table(&h3600_audio_clk_gpio_table);
+ gpiod_add_lookup_table(&h3600_uda134x_gpio_table);
+ gpiod_add_lookup_table(&h3600_asoc_gpio_table);
platform_device_register_full(&h3600_audio_clk_device);