diff options
author | John Crispin <blogic@openwrt.org> | 2013-09-17 21:46:10 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-09-17 21:46:10 +0000 |
commit | 718e5fe27e81d84b1e08ac57486433e4267ae74c (patch) | |
tree | bc305784e92a261300f79b3999710bc635e947c3 /target/linux/lantiq/patches-3.10/0005-MIPS-lantiq-falcon-fix-asc-clock-definition.patch | |
parent | e032c312184f85253ca93a46f47cfae2f3f64f00 (diff) | |
download | master-187ad058-718e5fe27e81d84b1e08ac57486433e4267ae74c.tar.gz master-187ad058-718e5fe27e81d84b1e08ac57486433e4267ae74c.tar.bz2 master-187ad058-718e5fe27e81d84b1e08ac57486433e4267ae74c.zip |
lantiq: add v3.10 patches
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38031 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-3.10/0005-MIPS-lantiq-falcon-fix-asc-clock-definition.patch')
-rw-r--r-- | target/linux/lantiq/patches-3.10/0005-MIPS-lantiq-falcon-fix-asc-clock-definition.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-3.10/0005-MIPS-lantiq-falcon-fix-asc-clock-definition.patch b/target/linux/lantiq/patches-3.10/0005-MIPS-lantiq-falcon-fix-asc-clock-definition.patch new file mode 100644 index 0000000000..7ec3cc5800 --- /dev/null +++ b/target/linux/lantiq/patches-3.10/0005-MIPS-lantiq-falcon-fix-asc-clock-definition.patch @@ -0,0 +1,48 @@ +From 64d344de9e5d8ab6d94189360237b0cb36a24d1a Mon Sep 17 00:00:00 2001 +From: Thomas Langer <thomas.langer@lantiq.com> +Date: Thu, 8 Aug 2013 11:07:26 +0200 +Subject: [PATCH 05/34] MIPS: lantiq: falcon: fix asc clock definition + +The clocks of the serial ports were not setup properly. + +Signed-off-by: Thomas Langer <thomas.langer@lantiq.com> +Acked-by: John Crispin <blogic@openwrt.org> + +Acked-by: John Crispin <blogic@openwrt.org> +Patchwork: http://patchwork.linux-mips.org/patch/5659/ +--- + arch/mips/lantiq/falcon/sysctrl.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/arch/mips/lantiq/falcon/sysctrl.c b/arch/mips/lantiq/falcon/sysctrl.c +index ff4894a..8f1866d 100644 +--- a/arch/mips/lantiq/falcon/sysctrl.c ++++ b/arch/mips/lantiq/falcon/sysctrl.c +@@ -48,6 +48,7 @@ + #define CPU0CC_CPUDIV 0x0001 + + /* Activation Status Register */ ++#define ACTS_ASC0_ACT 0x00001000 + #define ACTS_ASC1_ACT 0x00000800 + #define ACTS_I2C_ACT 0x00004000 + #define ACTS_P0 0x00010000 +@@ -108,6 +109,7 @@ static void sysctl_deactivate(struct clk *clk) + static int sysctl_clken(struct clk *clk) + { + sysctl_w32(clk->module, clk->bits, SYSCTL_CLKEN); ++ sysctl_w32(clk->module, clk->bits, SYSCTL_ACT); + sysctl_wait(clk, clk->bits, SYSCTL_CLKS); + return 0; + } +@@ -256,6 +258,7 @@ void __init ltq_soc_init(void) + clkdev_add_sys("1e800400.pad", SYSCTL_SYS1, ACTS_PADCTRL1); + clkdev_add_sys("1e800500.pad", SYSCTL_SYS1, ACTS_PADCTRL3); + clkdev_add_sys("1e800600.pad", SYSCTL_SYS1, ACTS_PADCTRL4); +- clkdev_add_sys("1e100C00.serial", SYSCTL_SYS1, ACTS_ASC1_ACT); ++ clkdev_add_sys("1e100b00.serial", SYSCTL_SYS1, ACTS_ASC1_ACT); ++ clkdev_add_sys("1e100c00.serial", SYSCTL_SYS1, ACTS_ASC0_ACT); + clkdev_add_sys("1e200000.i2c", SYSCTL_SYS1, ACTS_I2C_ACT); + } +-- +1.7.10.4 + |