lantiq: add v3.10 patches
[openwrt.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 diff --git a/arch/mips/lantiq/falcon/sysctrl.c b/arch/mips/lantiq/falcon/sysctrl.c
18 index ff4894a..8f1866d 100644
19 --- a/arch/mips/lantiq/falcon/sysctrl.c
20 +++ b/arch/mips/lantiq/falcon/sysctrl.c
21 @@ -48,6 +48,7 @@
22  #define CPU0CC_CPUDIV          0x0001
23  
24  /* Activation Status Register */
25 +#define ACTS_ASC0_ACT  0x00001000
26  #define ACTS_ASC1_ACT  0x00000800
27  #define ACTS_I2C_ACT   0x00004000
28  #define ACTS_P0                0x00010000
29 @@ -108,6 +109,7 @@ static void sysctl_deactivate(struct clk *clk)
30  static int sysctl_clken(struct clk *clk)
31  {
32         sysctl_w32(clk->module, clk->bits, SYSCTL_CLKEN);
33 +       sysctl_w32(clk->module, clk->bits, SYSCTL_ACT);
34         sysctl_wait(clk, clk->bits, SYSCTL_CLKS);
35         return 0;
36  }
37 @@ -256,6 +258,7 @@ void __init ltq_soc_init(void)
38         clkdev_add_sys("1e800400.pad", SYSCTL_SYS1, ACTS_PADCTRL1);
39         clkdev_add_sys("1e800500.pad", SYSCTL_SYS1, ACTS_PADCTRL3);
40         clkdev_add_sys("1e800600.pad", SYSCTL_SYS1, ACTS_PADCTRL4);
41 -       clkdev_add_sys("1e100C00.serial", SYSCTL_SYS1, ACTS_ASC1_ACT);
42 +       clkdev_add_sys("1e100b00.serial", SYSCTL_SYS1, ACTS_ASC1_ACT);
43 +       clkdev_add_sys("1e100c00.serial", SYSCTL_SYS1, ACTS_ASC0_ACT);
44         clkdev_add_sys("1e200000.i2c", SYSCTL_SYS1, ACTS_I2C_ACT);
45  }
46 -- 
47 1.7.10.4
48