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

Function ti_prm_reset

freebsd/arm/ti/ti_prm.c:132–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132int
133ti_prm_reset(device_t dev)
134{
135 struct ti_prm_softc *sc;
136 int err;
137
138 sc = device_get_softc(dev);
139 if (sc->has_reset == false)
140 return 1;
141
142 err = ti_prm_modify_4(dev, TI_PRM_PER_RSTCTRL, 0x2, 0x00);
143 return (err);
144}
145
146int
147ti_prm_write_4(device_t dev, bus_addr_t addr, uint32_t val)

Callers 1

ti_pruss_attachFunction · 0.85

Calls 2

device_get_softcFunction · 0.85
ti_prm_modify_4Function · 0.85

Tested by

no test coverage detected