mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
aw_ccung: Add more debug printfs
No functional changes MFC after: 1 month
This commit is contained in:
parent
b411a285d9
commit
59c7842efe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353524
@ -132,10 +132,12 @@ aw_ccung_reset_assert(device_t dev, intptr_t id, bool reset)
|
|||||||
|
|
||||||
mtx_lock(&sc->mtx);
|
mtx_lock(&sc->mtx);
|
||||||
val = CCU_READ4(sc, sc->resets[id].offset);
|
val = CCU_READ4(sc, sc->resets[id].offset);
|
||||||
|
dprintf("offset=%x Read %x\n", sc->resets[id].offset, val);
|
||||||
if (reset)
|
if (reset)
|
||||||
val &= ~(1 << sc->resets[id].shift);
|
val &= ~(1 << sc->resets[id].shift);
|
||||||
else
|
else
|
||||||
val |= 1 << sc->resets[id].shift;
|
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);
|
CCU_WRITE4(sc, sc->resets[id].offset, val);
|
||||||
mtx_unlock(&sc->mtx);
|
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);
|
mtx_lock(&sc->mtx);
|
||||||
val = CCU_READ4(sc, sc->resets[id].offset);
|
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;
|
*reset = (val & (1 << sc->resets[id].shift)) != 0 ? false : true;
|
||||||
mtx_unlock(&sc->mtx);
|
mtx_unlock(&sc->mtx);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user