diff options
author | John Crispin <blogic@openwrt.org> | 2012-07-24 06:56:41 (GMT) |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-08-22 21:46:37 (GMT) |
commit | 98dbc5764d8b6fa9cabe316fe725281703bf0fc6 (patch) | |
tree | 168580f5cfc992341931f30642106f1fc0d42f06 /arch/mips/lantiq/xway | |
parent | fea7a08acb13524b47711625eebea40a0ede69a0 (diff) | |
download | linux-98dbc5764d8b6fa9cabe316fe725281703bf0fc6.tar.xz |
MIPS: lantiq: explicitly enable clkout generation
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>
Patchwork: http://patchwork.linux-mips.org/patch/4120/
Diffstat (limited to 'arch/mips/lantiq/xway')
-rw-r--r-- | 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 befbb76..8430983 100644 --- a/arch/mips/lantiq/xway/sysctrl.c +++ b/arch/mips/lantiq/xway/sysctrl.c @@ -187,10 +187,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; } |