diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2016-09-26 18:53:39 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-10-12 21:56:19 +0100 |
commit | f81d38f4dba0b8e2228d10c9b3db59632344690c (patch) | |
tree | d074361150e69537ca16128e73aa47853817f36c /arch/arm | |
parent | e7d29477757885346d9a537c6f496fd10cd5f24c (diff) |
clk: add iPAQ audio sysclock driver
Add clock driver for iPAQ audio sysclock.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm')
-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(); |