mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
CLK: ARC: HSDK: make set_clock optional
We don't want to allow change some clocks, i.e. DDR clock. So allow to have set_clock to be unset in clock map. Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
This commit is contained in:
parent
debfe38445
commit
c6988688ee
|
@ -662,7 +662,10 @@ static ulong hsdk_cgu_set_rate(struct clk *sclk, ulong rate)
|
|||
if (hsdk_prepare_clock_tree_branch(sclk))
|
||||
return -EINVAL;
|
||||
|
||||
return clk->map[sclk->id].set_rate(sclk, rate);
|
||||
if (clk->map[sclk->id].set_rate)
|
||||
return clk->map[sclk->id].set_rate(sclk, rate);
|
||||
|
||||
return -ENOTSUPP;
|
||||
}
|
||||
|
||||
static int hsdk_cgu_disable(struct clk *sclk)
|
||||
|
|
Loading…
Reference in New Issue
Block a user