xilinx_spips: Add automatic start support
SPI has a mode where it automatically starts based on tx fifo occupancy. Implemented. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> Message-id: f4e9accb5de87b526fff6ed937f63278db76533b.1369117359.git.peter.crosthwaite@xilinx.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
b5cd9143e7
commit
e100f3be0c
@ -451,7 +451,8 @@ static void xilinx_spips_write(void *opaque, hwaddr addr,
|
||||
}
|
||||
s->regs[addr] = (s->regs[addr] & ~mask) | (value & mask);
|
||||
no_reg_update:
|
||||
if (man_start_com) {
|
||||
if ((man_start_com && s->regs[R_CONFIG] & MAN_START_EN) ||
|
||||
(fifo8_is_empty(&s->tx_fifo) && s->regs[R_CONFIG] & MAN_START_EN)) {
|
||||
xilinx_spips_flush_txfifo(s);
|
||||
}
|
||||
xilinx_spips_update_ixr(s);
|
||||
|
Loading…
Reference in New Issue
Block a user