Statistics
| Branch: | Revision:

root / hw / ssi @ 2c9b15ca

# Date Author Comment
2c9b15ca 07/04/2013 06:42 pm Paolo Bonzini

memory: add owner argument to initialization functions

Signed-off-by: Paolo Bonzini <>

fef7fbc9 06/07/2013 03:55 pm Andreas Färber

qdev: Drop FROM_QBUS() macro

Use QOM cast macros I2C_BUS(), SSI_BUS(), PCI_BUS() instead.

Signed-off-by: Andreas Färber <>

a66418f6 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: lqspi: Push more data to tx-fifo

Do 16 words per fifo flush. Increases performance and decreases
debug verbosity. This data depth has no real hardware analogue,
so just go with something that has reasonable performance.

Signed-off-by: Peter Crosthwaite <>...

b0b7ae62 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: lqspi: Fix byte/misaligned access

The LQSPI bus attachment supports byte/halfword and misaligned
accesses. Fixed. Refactored the LQSPI cache to be byte-wise
instead of word wise accordingly.

Signed-off-by: Peter Crosthwaite <>...

15408b42 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: lqspi: Dont touch config register

The LQSPI mode is supposed to work via the automatic CS mode feature
rather than manipulate CS lines itself. Now that auto CS is implemented
remove LQSPIs CS mode override logic. There is still a need to
manipulate the U_PAGE bit in LQSPI config register to implement...

2133a5f6 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Fix CTRL register RW bits

The CTRL register was RAZ/WI on some of the RW bits. Even though the
function behind these bits is invalid in QEMU, they should still be
guest accessible. Fix.

Signed-off-by: Peter Crosthwaite <>...

9151da25 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Fix striping behaviour

The QSPI controller was using byte-wide stripes when striping across
the two flashes in dual parallel mode. The real hardware however uses
individual bit striping. QEMU misbehaves in the (corner) case where
data is written/read in dual-parallel mode and read/written back in...

c37fc509 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Debug msgs for Snoop state

This is worth keeping track of when debugging the device model.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>
Reviewed-by: Edgar E. Iglesias <>...

4a5b6fa8 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Multiple debug verbosity levels

The debug printfs on every SPI operation is extremely verbose. Add
a second level of debug for this.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>...

10e60b35 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Fix QSPI FIFO size

QSPI has a bigger FIFO than the regular SPI controller. Differentiate
between the two with correct FIFO sizes for each.

This is the first piece of class data for SPIPS, so this patch sees
the creation of the XilinxSPIPSClass definition and assoicated QOM...

b5cd9143 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Trash LQ page cache on mode change

Invalidate the LQSPI cached page when transitioning into LQSPI mode.
Otherwise there is a possibility that the controller will return stale
data to the guest when transitioning back to LQ_MODE after a page...

e100f3be 06/03/2013 07:17 pm Peter Crosthwaite

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 <>
Reviewed-by: Peter Maydell <>
Reviewed-by: Edgar E. Iglesias <>...

c4f08ffe 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Implement automatic CS

Implement the automatic CS control feature. If the MANUAL_CS bit is
cleared then the chip select stay de-asserted as long as the tx FIFO
is empty.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>...

6b91f015 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: seperate SPI and QSPI as two classes

Make SPI and QSPI different classes. QSPIPS is setup as a child of SPIPS.
Only QSPI has the LQSPI functionality, so move all that to the child class.

Signed-off-by: Peter Crosthwaite <>...

87920b44 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Make interrupts clear on read

By default these interrupts are clear on read.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>
Reviewed-by: Edgar E. Iglesias <>...

3ea728d0 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Inhibit interrupts in LQSPI mode

The real hardware does not produce interrupts in LQSPI mode. Inhibit
generation of interrupts when the LQ_MODE bit is set.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>...

abef5fa6 06/03/2013 07:17 pm Peter Crosthwaite

xilinx_spips: Add verbose LQSPI debug output

You really need this is you want to track a guest banging on LQSPI.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Peter Maydell <>
Reviewed-by: Edgar E. Iglesias <>...

31e17060 04/08/2013 07:13 pm Paolo Bonzini

hw: move SSI controllers to hw/ssi/, configure via default-configs/

Signed-off-by: Paolo Bonzini <>

49ab747f 04/08/2013 07:13 pm Paolo Bonzini

hw: move target-independent files to subdirectories

This patch tackles all files that are compiled once, moving
them to subdirectories of hw/.

Signed-off-by: Paolo Bonzini <>

1fd6bb44 04/08/2013 07:13 pm Paolo Bonzini

hw: make subdirectories for devices

Prepare the new directory structure.

Signed-off-by: Paolo Bonzini <>