summaryrefslogtreecommitdiffstats
path: root/hw/pxa2xx.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-27 21:49:15 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-27 21:49:15 +0000
commit59c0149bc6b4e29c6605e943d4c30686c2bed589 (patch)
treedfe2e6f372618e67db721ae844aac4ac3e4d10a6 /hw/pxa2xx.c
parentd4af3de224fbb4677744e9d0661a6296fca791ba (diff)
downloadhqemu-59c0149bc6b4e29c6605e943d4c30686c2bed589.zip
hqemu-59c0149bc6b4e29c6605e943d4c30686c2bed589.tar.gz
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
Diffstat (limited to 'hw/pxa2xx.c')
-rw-r--r--hw/pxa2xx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c
index a1c54b9..6109fc1 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)
OpenPOWER on IntegriCloud