mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
spi: zynqmp_gqspi: Add parallel memories support in GQSPI driver
Add support for parallel memories in zynqmp_gqspi.c driver. In case of parallel memories STRIPE bit is set and sent to the qspi ip, which will send data bits to both the flashes in parallel. However for few commands we should not use stripe, instead send same data to both the flashes. Those commands are exclueded by using zynqmp_qspi_update_stripe(). Also update copyright info for this file. Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com> Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
This commit is contained in:
committed by
Tom Rini
parent
34da258bb0
commit
217b0a28b6
@@ -38,6 +38,9 @@
|
||||
|
||||
#define SPI_DEFAULT_WORDLEN 8
|
||||
|
||||
#define SPI_3BYTE_MODE 0x0
|
||||
#define SPI_4BYTE_MODE 0x1
|
||||
|
||||
/* SPI transfer flags */
|
||||
#define SPI_XFER_STRIPE (1 << 6)
|
||||
#define SPI_XFER_MASK (3 << 8)
|
||||
@@ -172,6 +175,7 @@ struct spi_slave {
|
||||
* at once.
|
||||
*/
|
||||
bool multi_cs_cap;
|
||||
u32 bytemode;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user