arm64: rockchip: cru: Call clk_set_assigned
We need to call clk_set_assigned after all the clock have been registered to set the parents/rates described in the dtb.
This commit is contained in:
parent
d195d4acee
commit
08f3f0f953
@ -197,11 +197,14 @@ int
|
||||
rk_cru_attach(device_t dev)
|
||||
{
|
||||
struct rk_cru_softc *sc;
|
||||
phandle_t node;
|
||||
int i;
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
sc->dev = dev;
|
||||
|
||||
node = ofw_bus_get_node(dev);
|
||||
|
||||
if (bus_alloc_resources(dev, rk_cru_spec, &sc->res) != 0) {
|
||||
device_printf(dev, "cannot allocate resources for device\n");
|
||||
return (ENXIO);
|
||||
@ -242,6 +245,8 @@ rk_cru_attach(device_t dev)
|
||||
if (bootverbose)
|
||||
clkdom_dump(sc->clkdom);
|
||||
|
||||
clk_set_assigned(dev, node);
|
||||
|
||||
/* If we have resets, register our self as a reset provider */
|
||||
if (sc->resets)
|
||||
hwreset_register_ofw_provider(dev);
|
||||
|
Loading…
x
Reference in New Issue
Block a user