| 130 | } |
| 131 | |
| 132 | int |
| 133 | ti_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 | |
| 146 | int |
| 147 | ti_prm_write_4(device_t dev, bus_addr_t addr, uint32_t val) |
no test coverage detected