aw_ccung: Add more debug printfs
No functional changes MFC after: 1 month
This commit is contained in:
parent
411ff0649c
commit
8d778d43ab
@ -132,10 +132,12 @@ aw_ccung_reset_assert(device_t dev, intptr_t id, bool reset)
|
||||
|
||||
mtx_lock(&sc->mtx);
|
||||
val = CCU_READ4(sc, sc->resets[id].offset);
|
||||
dprintf("offset=%x Read %x\n", sc->resets[id].offset, val);
|
||||
if (reset)
|
||||
val &= ~(1 << sc->resets[id].shift);
|
||||
else
|
||||
val |= 1 << sc->resets[id].shift;
|
||||
dprintf("offset=%x Write %x\n", sc->resets[id].offset, val);
|
||||
CCU_WRITE4(sc, sc->resets[id].offset, val);
|
||||
mtx_unlock(&sc->mtx);
|
||||
|
||||
@ -155,6 +157,7 @@ aw_ccung_reset_is_asserted(device_t dev, intptr_t id, bool *reset)
|
||||
|
||||
mtx_lock(&sc->mtx);
|
||||
val = CCU_READ4(sc, sc->resets[id].offset);
|
||||
dprintf("offset=%x Read %x\n", sc->resets[id].offset, val);
|
||||
*reset = (val & (1 << sc->resets[id].shift)) != 0 ? false : true;
|
||||
mtx_unlock(&sc->mtx);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user