diff options
Diffstat (limited to 'arch/arm/mach-sa1100/h3600.c')
-rw-r--r-- | arch/arm/mach-sa1100/h3600.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-sa1100/h3600.c b/arch/arm/mach-sa1100/h3600.c index 28ce2d1353c7..029f949cbc56 100644 --- a/arch/arm/mach-sa1100/h3600.c +++ b/arch/arm/mach-sa1100/h3600.c @@ -10,6 +10,7 @@ #include <linux/kernel.h> #include <linux/gpio.h> #include <linux/gpio/machine.h> +#include <linux/platform_device.h> #include <video/sa1100fb.h> @@ -116,10 +117,27 @@ static struct gpiod_lookup_table h3600_sleeve_gpio_table = { }, }; +static struct gpiod_lookup_table h3600_audio_clk_gpio_table = { + .dev_id = "ipaq-audio-clk", + .table = { + GPIO_LOOKUP("gpio", 12, "clk0", GPIO_ACTIVE_HIGH), + GPIO_LOOKUP("gpio", 13, "clk1", GPIO_ACTIVE_HIGH), + { }, + }, +}; + +static struct platform_device_info h3600_audio_clk_device = { + .name = "ipaq-audio-clk", + .id = -1, +}; + static void __init h3600_mach_init(void) { gpiod_add_lookup_table(&h3600_irda_gpio_table); gpiod_add_lookup_table(&h3600_sleeve_gpio_table); + gpiod_add_lookup_table(&h3600_audio_clk_gpio_table); + + platform_device_register_full(&h3600_audio_clk_device); h3xxx_mach_init(); |