merge of '7393275c6ccce67cadeb49d4afb3459e56edf8a9'
[vuplus_openembedded] / packages / linux / linux-rp-2.6.24 / tosa / 0016-This-patch-fixes-the-pxa25x-clocks-definitions-to-ad.patch
1 From 0fe7b491b70efafbd41185f8e95a3eada65984a1 Mon Sep 17 00:00:00 2001
2 From: Dmitry Baryshkov <dbaryshkov@gmail.com>
3 Date: Mon, 28 Jan 2008 01:49:28 +0300
4 Subject: [PATCH 16/64] This patch fixes the pxa25x clocks definitions to add hwuart.
5
6 Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
7 ---
8  arch/arm/mach-pxa/pxa25x.c |    9 ++++++++-
9  1 files changed, 8 insertions(+), 1 deletions(-)
10
11 diff --git a/arch/arm/mach-pxa/pxa25x.c b/arch/arm/mach-pxa/pxa25x.c
12 index 9732d5d..006a6e0 100644
13 --- a/arch/arm/mach-pxa/pxa25x.c
14 +++ b/arch/arm/mach-pxa/pxa25x.c
15 @@ -111,11 +111,14 @@ static const struct clkops clk_pxa25x_lcd_ops = {
16   * 95.842MHz -> MMC 19.169MHz, I2C 31.949MHz, FICP 47.923MHz, USB 47.923MHz
17   * 147.456MHz -> UART 14.7456MHz, AC97 12.288MHz, I2S 5.672MHz (allegedly)
18   */
19 +static struct clk pxa25x_hwuart_clk =
20 +       INIT_CKEN("UARTCLK", HWUART, 14745600, 1, &pxa_device_hwuart.dev)
21 +;
22 +
23  static struct clk pxa25x_clks[] = {
24         INIT_CK("LCDCLK", LCD, &clk_pxa25x_lcd_ops, &pxa_device_fb.dev),
25         INIT_CKEN("UARTCLK", FFUART, 14745600, 1, &pxa_device_ffuart.dev),
26         INIT_CKEN("UARTCLK", BTUART, 14745600, 1, &pxa_device_btuart.dev),
27 -       INIT_CKEN("UARTCLK", BTUART, 14745600, 1, &pxa_device_btuart.dev),
28         INIT_CKEN("UARTCLK", STUART, 14745600, 1, NULL),
29         INIT_CKEN("UDCCLK", USB, 47923000, 5, &pxa_device_udc.dev),
30         INIT_CKEN("MMCCLK", MMC, 19169000, 0, &pxa_device_mci.dev),
31 @@ -303,6 +306,10 @@ static int __init pxa25x_init(void)
32  {
33         int ret = 0;
34  
35 +       /* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */
36 +       if (cpu_is_pxa25x())
37 +               clks_register(&pxa25x_hwuart_clk, 1);
38 +
39         if (cpu_is_pxa21x() || cpu_is_pxa25x()) {
40                 clks_register(pxa25x_clks, ARRAY_SIZE(pxa25x_clks));
41  
42 -- 
43 1.5.3.8
44