| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 2/4] MIPS: lantiq: explicitly enable clkout generation |
| From: | John Crispin <blogic@openwrt.org> |
| Date: | Thu, 16 Aug 2012 11:25:40 +0200 |
| Cc: | linux-mips@linux-mips.org, John Crispin <blogic@openwrt.org> |
| In-reply-to: | <1345109142-1756-1-git-send-email-blogic@openwrt.org> |
| List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
| List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
| List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
| List-owner: | <mailto:ralf@linux-mips.org> |
| List-post: | <mailto:linux-mips@linux-mips.org> |
| List-software: | Ecartis version 1.0.0 |
| List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
| List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
| References: | <1345109142-1756-1-git-send-email-blogic@openwrt.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
Previously we relied on the bootloader to have enabled this bit. However some
bootloaders seem to not enable this for us.
Signed-off-by: John Crispin <blogic@openwrt.org>
---
arch/mips/lantiq/xway/sysctrl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/mips/lantiq/xway/sysctrl.c b/arch/mips/lantiq/xway/sysctrl.c
index 79887af..8863cca 100644
--- a/arch/mips/lantiq/xway/sysctrl.c
+++ b/arch/mips/lantiq/xway/sysctrl.c
@@ -191,10 +191,12 @@ static int clkout_enable(struct clk *clk)
for (i = 0; i < 4; i++) {
if (clk->rates[i] == clk->rate) {
int shift = 14 - (2 * clk->module);
+ int enable = 7 - clk->module;
unsigned int val = ltq_cgu_r32(ifccr);
val &= ~(3 << shift);
val |= i << shift;
+ val |= enable;
ltq_cgu_w32(val, ifccr);
return 0;
}
--
1.7.9.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 1/4] MIPS: lantiq: adds support for nmi and ejtag bootrom vectors, John Crispin |
|---|---|
| Next by Date: | [PATCH 3/4] MIPS: lantiq: falcon clocks were not enabled properly, John Crispin |
| Previous by Thread: | [PATCH 1/4] MIPS: lantiq: adds support for nmi and ejtag bootrom vectors, John Crispin |
| Next by Thread: | [PATCH 3/4] MIPS: lantiq: falcon clocks were not enabled properly, John Crispin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |