mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
Merge branch 'master' of git://dev.phrozen.org/mips-next into mips-for-linux-next
This commit is contained in:
@@ -188,10 +188,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user