Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/rockchip/rk_dwc3.c
Context not available. | |||||
clk_get_name(sc->clk_bus)); | clk_get_name(sc->clk_bus)); | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
if (sc->type == RK3399) { | /* Optional clocks */ | ||||
if (clk_get_by_ofw_name(dev, 0, "grf_clk", &sc->clk_grf) != 0) { | if (clk_get_by_ofw_name(dev, 0, "grf_clk", &sc->clk_grf) == 0) { | ||||
device_printf(dev, "Cannot get grf_clk clock\n"); | |||||
return (ENXIO); | |||||
} | |||||
err = clk_enable(sc->clk_grf); | err = clk_enable(sc->clk_grf); | ||||
if (err != 0) { | if (err != 0) { | ||||
device_printf(dev, "Could not enable clock %s\n", | device_printf(dev, "Could not enable clock %s\n", | ||||
Context not available. | |||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
} | } | ||||
/* Optional clocks */ | |||||
manu: Comment is still accurate. | |||||
andrewUnsubmitted Not Done Inline ActionsDidn't it just get moved up? andrew: Didn't it just get moved up? | |||||
if (clk_get_by_ofw_name(dev, 0, "aclk_usb3_rksoc_axi_perf", &sc->clk_axi_perf) == 0) { | if (clk_get_by_ofw_name(dev, 0, "aclk_usb3_rksoc_axi_perf", &sc->clk_axi_perf) == 0) { | ||||
err = clk_enable(sc->clk_axi_perf); | err = clk_enable(sc->clk_axi_perf); | ||||
if (err != 0) { | if (err != 0) { | ||||
Context not available. |
Comment is still accurate.