kernel/3.10: refresh all target patches
[openwrt/staging/lynxis/omap.git] / target / linux / lantiq / patches-3.10 / 0005-MIPS-lantiq-falcon-fix-asc-clock-definition.patch
1 From 64d344de9e5d8ab6d94189360237b0cb36a24d1a Mon Sep 17 00:00:00 2001
2 From: Thomas Langer <thomas.langer@lantiq.com>
3 Date: Thu, 8 Aug 2013 11:07:26 +0200
4 Subject: [PATCH 05/34] MIPS: lantiq: falcon: fix asc clock definition
5
6 The clocks of the serial ports were not setup properly.
7
8 Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
9 Acked-by: John Crispin <blogic@openwrt.org>
10
11 Acked-by: John Crispin <blogic@openwrt.org>
12 Patchwork: http://patchwork.linux-mips.org/patch/5659/
13 ---
14 arch/mips/lantiq/falcon/sysctrl.c | 5 ++++-
15 1 file changed, 4 insertions(+), 1 deletion(-)
16
17 --- a/arch/mips/lantiq/falcon/sysctrl.c
18 +++ b/arch/mips/lantiq/falcon/sysctrl.c
19 @@ -48,6 +48,7 @@
20 #define CPU0CC_CPUDIV 0x0001
21
22 /* Activation Status Register */
23 +#define ACTS_ASC0_ACT 0x00001000
24 #define ACTS_ASC1_ACT 0x00000800
25 #define ACTS_I2C_ACT 0x00004000
26 #define ACTS_P0 0x00010000
27 @@ -108,6 +109,7 @@ static void sysctl_deactivate(struct clk
28 static int sysctl_clken(struct clk *clk)
29 {
30 sysctl_w32(clk->module, clk->bits, SYSCTL_CLKEN);
31 + sysctl_w32(clk->module, clk->bits, SYSCTL_ACT);
32 sysctl_wait(clk, clk->bits, SYSCTL_CLKS);
33 return 0;
34 }
35 @@ -256,6 +258,7 @@ void __init ltq_soc_init(void)
36 clkdev_add_sys("1e800400.pad", SYSCTL_SYS1, ACTS_PADCTRL1);
37 clkdev_add_sys("1e800500.pad", SYSCTL_SYS1, ACTS_PADCTRL3);
38 clkdev_add_sys("1e800600.pad", SYSCTL_SYS1, ACTS_PADCTRL4);
39 - clkdev_add_sys("1e100C00.serial", SYSCTL_SYS1, ACTS_ASC1_ACT);
40 + clkdev_add_sys("1e100b00.serial", SYSCTL_SYS1, ACTS_ASC1_ACT);
41 + clkdev_add_sys("1e100c00.serial", SYSCTL_SYS1, ACTS_ASC0_ACT);
42 clkdev_add_sys("1e200000.i2c", SYSCTL_SYS1, ACTS_I2C_ACT);
43 }