MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ti_sysc_clock_enable

Function ti_sysc_clock_enable

freebsd/arm/ti/ti_sysc.c:239–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239int
240ti_sysc_clock_enable(device_t dev) {
241 struct clk_list *clkp, *clkp_tmp;
242 struct ti_sysc_softc *sc = device_get_softc(dev);
243 int err;
244
245 TAILQ_FOREACH_SAFE(clkp, &sc->clk_list, next, clkp_tmp) {
246 err = clk_enable(clkp->clk);
247
248 if (err) {
249 DPRINTF(sc->dev, "clk_enable %s failed %d\n",
250 clk_get_name(clkp->clk), err);
251 break;
252 }
253 }
254 return (err);
255}
256
257int
258ti_sysc_clock_disable(device_t dev) {

Callers 15

ti_sdma_attachFunction · 0.85
ti_mbox_attachFunction · 0.85
ti_spi_attachFunction · 0.85
ti_edma3_attachFunction · 0.85
ti_sdhci_hw_initFunction · 0.85
ti_i2c_activateFunction · 0.85
ti_pruss_attachFunction · 0.85
ti_gpio_bank_initFunction · 0.85
ti_adc_attachFunction · 0.85
omap_tll_initFunction · 0.85
omap_uhh_initFunction · 0.85
am335x_lcd_attachFunction · 0.85

Calls 1

device_get_softcFunction · 0.85

Tested by

no test coverage detected