From 30f42668ce9be163611ff2b3c58aa64bb9193729 Mon Sep 17 00:00:00 2001 From: Ben Dooks Date: Sat, 2 Apr 2005 01:10:31 +0100 Subject: [ARM PATCH] 2638/1: RX3715 - allow fclk as clock source Patch from Ben Dooks Since the RX3715 inits with fclk as the clock source, and to allow the system to generate the baud-rates for bluetooth control, this patch configures the platform data for "fclk" as a clock source Signed-off-by: Ben Dooks Signed-off-by: Russell King --- arch/arm/mach-s3c2410/mach-rx3715.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/mach-s3c2410/mach-rx3715.c b/arch/arm/mach-s3c2410/mach-rx3715.c index 26e2d86cdd03c..f8d3a9784e711 100644 --- a/arch/arm/mach-s3c2410/mach-rx3715.c +++ b/arch/arm/mach-s3c2410/mach-rx3715.c @@ -54,6 +54,16 @@ static struct map_desc rx3715_iodesc[] __initdata = { { (u32)S3C24XX_VA_ISA_BYTE, S3C2410_CS3, SZ_16M, MT_DEVICE }, }; + +static struct s3c24xx_uart_clksrc rx3715_serial_clocks[] = { + [0] = { + .name = "fclk", + .divisor = 0, + .min_baud = 0, + .max_baud = 0, + } +}; + static struct s3c2410_uartcfg rx3715_uartcfgs[] = { [0] = { .hwport = 0, @@ -61,6 +71,8 @@ static struct s3c2410_uartcfg rx3715_uartcfgs[] = { .ucon = 0x3c5, .ulcon = 0x03, .ufcon = 0x51, + .clocks = rx3715_serial_clocks, + .clocks_size = ARRAY_SIZE(rx3715_serial_clocks), }, [1] = { .hwport = 1, @@ -68,6 +80,8 @@ static struct s3c2410_uartcfg rx3715_uartcfgs[] = { .ucon = 0x3c5, .ulcon = 0x03, .ufcon = 0x00, + .clocks = rx3715_serial_clocks, + .clocks_size = ARRAY_SIZE(rx3715_serial_clocks), }, /* IR port */ [2] = { @@ -76,6 +90,8 @@ static struct s3c2410_uartcfg rx3715_uartcfgs[] = { .ucon = 0x3c5, .ulcon = 0x43, .ufcon = 0x51, + .clocks = rx3715_serial_clocks, + .clocks_size = ARRAY_SIZE(rx3715_serial_clocks), } }; -- cgit 1.2.3-korg