mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
qspi: dra7x: enable quad mode read for ti-qspi driver
This patch enables QUAD read mode for qspi to improve the read performace while loading the binaries from qspi. Signed-off-by: Ravi Babu <ravibabu@ti.com> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
This commit is contained in:
parent
81a66446c3
commit
46122960f0
2 changed files with 8 additions and 0 deletions
|
@ -109,10 +109,17 @@ static void ti_spi_setup_spi_register(struct ti_qspi_slave *qslave)
|
|||
slave->op_mode_rx = 8;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_QSPI_QUAD_SUPPORT
|
||||
memval |= (QSPI_CMD_READ_QUAD | QSPI_SETUP0_NUM_A_BYTES |
|
||||
QSPI_SETUP0_NUM_D_BYTES_8_BITS |
|
||||
QSPI_SETUP0_READ_QUAD | QSPI_CMD_WRITE |
|
||||
QSPI_NUM_DUMMY_BITS);
|
||||
#else
|
||||
memval |= QSPI_CMD_READ | QSPI_SETUP0_NUM_A_BYTES |
|
||||
QSPI_SETUP0_NUM_D_BYTES_NO_BITS |
|
||||
QSPI_SETUP0_READ_NORMAL | QSPI_CMD_WRITE |
|
||||
QSPI_NUM_DUMMY_BITS;
|
||||
#endif
|
||||
|
||||
writel(memval, &qslave->base->setup0);
|
||||
}
|
||||
|
|
|
@ -77,6 +77,7 @@
|
|||
#define CONFIG_TI_SPI_MMAP
|
||||
#define CONFIG_SF_DEFAULT_SPEED 48000000
|
||||
#define CONFIG_DEFAULT_SPI_MODE SPI_MODE_3
|
||||
#define CONFIG_QSPI_QUAD_SUPPORT
|
||||
|
||||
/*
|
||||
* Default to using SPI for environment, etc.
|
||||
|
|
Loading…
Reference in a new issue