summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2016-09-26 18:53:39 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2024-01-08 10:30:21 +0000
commitca83fd461f56c6e0ad90f2f81399932df3414c2f (patch)
treed465a5a386ee0d73eda80e0f3bac1e432d54bfa8 /arch
parent2b4c0434435ae0cfeeb5894d77fb74d09153357f (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')
-rw-r--r--arch/arm/mach-sa1100/h3600.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-sa1100/h3600.c b/arch/arm/mach-sa1100/h3600.c
index 645ecaa000ac..4c0ba7372487 100644
--- a/arch/arm/mach-sa1100/h3600.c
+++ b/arch/arm/mach-sa1100/h3600.c
@@ -9,6 +9,7 @@
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/gpio.h>
+#include <linux/platform_device.h>
#include <video/sa1100fb.h>
@@ -101,9 +102,26 @@ 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_sleeve_gpio_table);
+ gpiod_add_lookup_table(&h3600_audio_clk_gpio_table);
+
+ platform_device_register_full(&h3600_audio_clk_device);
h3xxx_mach_init();