[U-Boot] [PATCH v1 06/11] spi: stm32_qspi: Update mode management
Jagan Teki
jagannadh.teki at gmail.com
Tue May 1 05:31:25 UTC 2018
On Thu, Apr 26, 2018 at 8:35 PM, Patrice Chotard <patrice.chotard at st.com> wrote:
> From: Christophe Kerello <christophe.kerello at st.com>
>
> We face issue on Macronix/Spansion spi nors due to bad mode management.
> We solve these issues using following mode configurations:
> - read_cmd = CMD_READ_QUAD_OUTPUT_FAST => 1-1-4
> - read_cmd = CMD_READ_DUAL_OUTPUT_FAST => 1-1-2
> - write_cmd = CMD_QUAD_PAGE_PROGRAM => 1-1-4
> - others commands => 1-1-1
>
> Signed-off-by: Christophe Kerello <christophe.kerello at st.com>
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---
>
> drivers/spi/stm32_qspi.c | 30 ++++++++++++++++++------------
> 1 file changed, 18 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/spi/stm32_qspi.c b/drivers/spi/stm32_qspi.c
> index 6b7232905bc8..46915194f034 100644
> --- a/drivers/spi/stm32_qspi.c
> +++ b/drivers/spi/stm32_qspi.c
> @@ -156,6 +156,10 @@ enum STM32_QSPI_CCR_FMODE {
> /* default SCK frequency, unit: HZ */
> #define STM32_QSPI_DEFAULT_SCK_FREQ 108000000
>
> +#define STM32_CMD_READ_DUAL_OUTPUT_FAST 0x3b
> +#define STM32_CMD_READ_QUAD_OUTPUT_FAST 0x6b
> +#define STM32_CMD_QUAD_PP 0x32
NAK, pls don't add flash changes in spi.
Jagan.
More information about the U-Boot
mailing list