Commit 59c0149b authored by balrog's avatar balrog
Browse files

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
parent d4af3de2
...@@ -1530,6 +1530,8 @@ static inline void pxa2xx_i2s_update(struct pxa2xx_i2s_s *i2s) ...@@ -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); pxa2xx_dma_request(i2s->dma, PXA2XX_TX_RQ_I2S, tfs);
i2s->status &= 0xe0; i2s->status &= 0xe0;
if (i2s->fifo_len < 16 || !i2s->enable)
i2s->status |= 1 << 0; /* TNF */
if (i2s->rx_len) if (i2s->rx_len)
i2s->status |= 1 << 1; /* RNE */ i2s->status |= 1 << 1; /* RNE */
if (i2s->enable) if (i2s->enable)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment