summaryrefslogtreecommitdiffstats
path: root/package/ltq-dsl/src/ifxmips_atm_amazon_se.c
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-03-25 08:50:42 +0000
committerJohn Crispin <john@openwrt.org>2012-03-25 08:50:42 +0000
commitb85de8f3855448a54bdb4572e724660e2d0b2ba6 (patch)
tree9136d132a4db037899efd50481a36b193d0736bc /package/ltq-dsl/src/ifxmips_atm_amazon_se.c
parentb982e8166bebeb79c64aae2689c06db06fe6d506 (diff)
downloadmaster-31e0f0ae-b85de8f3855448a54bdb4572e724660e2d0b2ba6.tar.gz
master-31e0f0ae-b85de8f3855448a54bdb4572e724660e2d0b2ba6.tar.bz2
master-31e0f0ae-b85de8f3855448a54bdb4572e724660e2d0b2ba6.zip
fix for 3.2.9
SVN-Revision: 31065
Diffstat (limited to 'package/ltq-dsl/src/ifxmips_atm_amazon_se.c')
-rw-r--r--package/ltq-dsl/src/ifxmips_atm_amazon_se.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/package/ltq-dsl/src/ifxmips_atm_amazon_se.c b/package/ltq-dsl/src/ifxmips_atm_amazon_se.c
index 35a5cd9d53..1028815927 100644
--- a/package/ltq-dsl/src/ifxmips_atm_amazon_se.c
+++ b/package/ltq-dsl/src/ifxmips_atm_amazon_se.c
@@ -40,6 +40,7 @@
#include <linux/proc_fs.h>
#include <linux/init.h>
#include <linux/ioctl.h>
+#include <linux/clk.h>
#include <asm/delay.h>
/*
@@ -107,23 +108,27 @@ static inline void init_pmu(void)
{
//*(unsigned long *)0xBF10201C &= ~((1 << 15) | (1 << 13) | (1 << 9));
//PPE_TOP_PMU_SETUP(IFX_PMU_ENABLE);
- PPE_SLL01_PMU_SETUP(IFX_PMU_ENABLE);
+/* PPE_SLL01_PMU_SETUP(IFX_PMU_ENABLE);
PPE_TC_PMU_SETUP(IFX_PMU_ENABLE);
PPE_EMA_PMU_SETUP(IFX_PMU_ENABLE);
//PPE_QSB_PMU_SETUP(IFX_PMU_ENABLE);
PPE_TPE_PMU_SETUP(IFX_PMU_ENABLE);
- DSL_DFE_PMU_SETUP(IFX_PMU_ENABLE);
+ DSL_DFE_PMU_SETUP(IFX_PMU_ENABLE);*/
+ struct clk *clk = clk_get_sys("ltq_dsl", NULL);
+ clk_enable(clk);
}
static inline void uninit_pmu(void)
{
- PPE_SLL01_PMU_SETUP(IFX_PMU_DISABLE);
+/* PPE_SLL01_PMU_SETUP(IFX_PMU_DISABLE);
PPE_TC_PMU_SETUP(IFX_PMU_DISABLE);
PPE_EMA_PMU_SETUP(IFX_PMU_DISABLE);
//PPE_QSB_PMU_SETUP(IFX_PMU_DISABLE);
PPE_TPE_PMU_SETUP(IFX_PMU_DISABLE);
DSL_DFE_PMU_SETUP(IFX_PMU_DISABLE);
- //PPE_TOP_PMU_SETUP(IFX_PMU_DISABLE);
+ //PPE_TOP_PMU_SETUP(IFX_PMU_DISABLE);*/
+ struct clk *clk = clk_get_sys("ltq_dsl", NULL);
+ clk_disable(clk);
}
static inline void reset_ppe(void)