mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
rockchip: clk: rk3328: add clk_enable ops for HCLK_HOST0
Required to successfully probe the ehci generic driver Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
parent
e0f907efa5
commit
2fcff365e0
1 changed files with 12 additions and 0 deletions
|
@ -745,10 +745,22 @@ static int rk3328_clk_set_parent(struct clk *clk, struct clk *parent)
|
|||
return -ENOENT;
|
||||
}
|
||||
|
||||
static int rk3328_clk_enable(struct clk *clk)
|
||||
{
|
||||
switch (clk->id) {
|
||||
case HCLK_HOST0:
|
||||
/* Required to successfully probe the ehci generic driver */
|
||||
return 0;
|
||||
}
|
||||
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
static struct clk_ops rk3328_clk_ops = {
|
||||
.get_rate = rk3328_clk_get_rate,
|
||||
.set_rate = rk3328_clk_set_rate,
|
||||
.set_parent = rk3328_clk_set_parent,
|
||||
.enable = rk3328_clk_enable,
|
||||
};
|
||||
|
||||
static int rk3328_clk_probe(struct udevice *dev)
|
||||
|
|
Loading…
Add table
Reference in a new issue