From 3b60b677a3b5927df491372b7eacf593c5c6e51d Mon Sep 17 00:00:00 2001 From: Dongjin Kim Date: Sat, 11 Dec 2021 12:59:23 +0000 Subject: [PATCH] ODROID-M1: rkflash: enforce to disable 4bit bus access Signed-off-by: Dongjin Kim Change-Id: Ifd9bc9a8a7d1eeff93f8f20495da791ccf36e2c9 --- drivers/rkflash/sfc_nor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/rkflash/sfc_nor.c b/drivers/rkflash/sfc_nor.c index 622c9e0b6b08..547194031897 100644 --- a/drivers/rkflash/sfc_nor.c +++ b/drivers/rkflash/sfc_nor.c @@ -679,6 +679,10 @@ static int snor_parse_flash_table(struct SFNOR_DEV *p_dev, else if (i == 2) p_dev->write_status = snor_write_status2; +#if defined(CONFIG_ARCH_ROCKCHIP_ODROID_COMMON) + g_spi_flash_info->feature &= ~(FEA_4BIT_PROG | FEA_4BIT_READ); +#endif + if (g_spi_flash_info->feature & FEA_4BIT_READ) { ret = SFC_OK; if (g_spi_flash_info->QE_bits)