diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-08-03 08:53:02 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-08-03 08:53:02 +0000 |
commit | cea2b4210d9b3706cad3cc60cc54dde063e09b58 (patch) | |
tree | 81a9746583b2c1c212f8c35a51d07d9353080561 /target/linux/lantiq/patches-3.3/0060-MIPS-lantiq-fixes-danube-clock.patch | |
parent | 6b899d5deac5b0ad531d7a7f2d1d241727848535 (diff) |
[lantiq] cleanup patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32953 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-3.3/0060-MIPS-lantiq-fixes-danube-clock.patch')
-rw-r--r-- | target/linux/lantiq/patches-3.3/0060-MIPS-lantiq-fixes-danube-clock.patch | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/target/linux/lantiq/patches-3.3/0060-MIPS-lantiq-fixes-danube-clock.patch b/target/linux/lantiq/patches-3.3/0060-MIPS-lantiq-fixes-danube-clock.patch deleted file mode 100644 index 02b98f104..000000000 --- a/target/linux/lantiq/patches-3.3/0060-MIPS-lantiq-fixes-danube-clock.patch +++ /dev/null @@ -1,52 +0,0 @@ -From e8f13d2824871027e8b6d374a2db3672db043915 Mon Sep 17 00:00:00 2001 -From: John Crispin <blogic@openwrt.org> -Date: Mon, 19 Mar 2012 15:53:37 +0100 -Subject: [PATCH 60/70] MIPS: lantiq: fixes danube clock - ---- - arch/mips/lantiq/xway/clk.c | 20 ++++++++++---------- - 1 files changed, 10 insertions(+), 10 deletions(-) - ---- a/arch/mips/lantiq/xway/clk.c -+++ b/arch/mips/lantiq/xway/clk.c -@@ -181,7 +181,7 @@ unsigned long ltq_danube_io_region_clock - { - unsigned int ret = ltq_get_pll0_fosc(); - -- switch (ltq_cgu_r32(LTQ_CGU_PLL2_CFG) & CGU_SYS_DDR_SEL) { -+ switch (ltq_cgu_r32(LTQ_CGU_SYS) & 0x3) { - default: - case 0: - return (ret + 1) / 2; -@@ -203,6 +203,15 @@ unsigned long ltq_danube_fpi_bus_clock(i - return ret; - } - -+unsigned long ltq_danube_fpi_hz(void) -+{ -+ unsigned long ddr_clock = DDR_HZ; -+ -+ if (ltq_cgu_r32(LTQ_CGU_SYS) & 0x40) -+ return ddr_clock >> 1; -+ return ddr_clock; -+} -+ - unsigned long ltq_danube_cpu_hz(void) - { - switch (ltq_cgu_r32(LTQ_CGU_SYS) & 0xc) { -@@ -241,15 +250,6 @@ unsigned long ltq_ar9_cpu_hz(void) - return ltq_ar9_sys_hz(); - } - --unsigned long ltq_danube_fpi_hz(void) --{ -- unsigned long ddr_clock = DDR_HZ; -- -- if (ltq_cgu_r32(LTQ_CGU_SYS) & 0x40) -- return ddr_clock >> 1; -- return ddr_clock; --} -- - unsigned long ltq_vr9_cpu_hz(void) - { - unsigned int cpu_sel; |