| 144 | } |
| 145 | |
| 146 | int |
| 147 | ti_prm_write_4(device_t dev, bus_addr_t addr, uint32_t val) |
| 148 | { |
| 149 | struct ti_prm_softc *sc; |
| 150 | device_t parent; |
| 151 | |
| 152 | parent = device_get_parent(dev); |
| 153 | sc = device_get_softc(dev); |
| 154 | DPRINTF(sc->dev, "offset=%lx write %x\n", addr, val); |
| 155 | ti_prcm_device_lock(parent); |
| 156 | ti_prcm_write_4(parent, addr, val); |
| 157 | ti_prcm_device_unlock(parent); |
| 158 | return (0); |
| 159 | } |
| 160 | |
| 161 | int |
| 162 | ti_prm_read_4(device_t dev, bus_addr_t addr, uint32_t *val) |
nothing calls this directly
no test coverage detected