aw_ccung: Add more debug printfs

No functional changes

MFC after:	1 month
This commit is contained in:
Emmanuel Vadot 2019-10-14 21:45:15 +00:00
parent b411a285d9
commit 59c7842efe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353524

View File

@ -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);