diff options
author | Thomas Abraham <thomas.abraham@linaro.org> | 2011-10-24 06:08:42 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-12-22 20:06:58 -0500 |
commit | 0cfb26e1fb9d7afe9c79a40a257808eafb2aff34 (patch) | |
tree | f79fb4267e4b0814b4cb3bfda69acda6bc3bd579 /arch/arm/mach-s3c2410/s3c2410.c | |
parent | c3310fbbeb9db6967900ed22eb3d0bd0bb0e892c (diff) |
ARM: SAMSUNG: register uart clocks to clock lookup list
Samsung uart driver lookups the clock using the connection id 'clk_uart_baud'.
The uart clocks for all Samsung platforms are reorganized to register them
with the lookup name as required by the uart driver.
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c2410/s3c2410.c')
-rw-r--r-- | arch/arm/mach-s3c2410/s3c2410.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/s3c2410.c b/arch/arm/mach-s3c2410/s3c2410.c index 3d7ebc557a72..af74927bca14 100644 --- a/arch/arm/mach-s3c2410/s3c2410.c +++ b/arch/arm/mach-s3c2410/s3c2410.c | |||
@@ -123,12 +123,18 @@ static struct clk s3c2410_armclk = { | |||
123 | .id = -1, | 123 | .id = -1, |
124 | }; | 124 | }; |
125 | 125 | ||
126 | static struct clk_lookup s3c2410_clk_lookup[] = { | ||
127 | CLKDEV_INIT(NULL, "clk_uart_baud0", &clk_p), | ||
128 | CLKDEV_INIT(NULL, "clk_uart_baud1", &s3c24xx_uclk), | ||
129 | }; | ||
130 | |||
126 | void __init s3c2410_init_clocks(int xtal) | 131 | void __init s3c2410_init_clocks(int xtal) |
127 | { | 132 | { |
128 | s3c24xx_register_baseclocks(xtal); | 133 | s3c24xx_register_baseclocks(xtal); |
129 | s3c2410_setup_clocks(); | 134 | s3c2410_setup_clocks(); |
130 | s3c2410_baseclk_add(); | 135 | s3c2410_baseclk_add(); |
131 | s3c24xx_register_clock(&s3c2410_armclk); | 136 | s3c24xx_register_clock(&s3c2410_armclk); |
137 | clkdev_add_table(s3c2410_clk_lookup, ARRAY_SIZE(s3c2410_clk_lookup)); | ||
132 | } | 138 | } |
133 | 139 | ||
134 | struct sysdev_class s3c2410_sysclass = { | 140 | struct sysdev_class s3c2410_sysclass = { |