diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-07-27 21:49:15 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-07-27 21:49:15 +0000 |
commit | 59c0149bc6b4e29c6605e943d4c30686c2bed589 (patch) | |
tree | dfe2e6f372618e67db721ae844aac4ac3e4d10a6 | |
parent | d4af3de224fbb4677744e9d0661a6296fca791ba (diff) |
Update TNF bit in I2C status register, original patch by Juergen Lock.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3088 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | hw/pxa2xx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c index a1c54b9881..6109fc13e9 100644 --- a/hw/pxa2xx.c +++ b/hw/pxa2xx.c @@ -1530,6 +1530,8 @@ static inline void pxa2xx_i2s_update(struct pxa2xx_i2s_s *i2s) pxa2xx_dma_request(i2s->dma, PXA2XX_TX_RQ_I2S, tfs); i2s->status &= 0xe0; + if (i2s->fifo_len < 16 || !i2s->enable) + i2s->status |= 1 << 0; /* TNF */ if (i2s->rx_len) i2s->status |= 1 << 1; /* RNE */ if (i2s->enable) |