Skip to content

Commit 84d1078

Browse files
bijudaskrzk
authored andcommitted
memory: renesas-rpc-if: Use Hi-Z state as the default setting for IOVF pins
The RZ/{G2L,G2LC,V2L} SMARC EVK uses Micron MT25QU412A flash and RZ/G2UL SMARC EVK uses Renesas AT25QL128A flash. With current pin setting for IOVF pin, 4-bit flash write fails for AT25QL128A flash. Use Hi-Z state as the default for IOVF pin, so that spi controller driver in linux will be independent of flash type. To support this, during board production, the bit 4 of the NV config register must be cleared by the bootloader for Micron flash. Output from u-boot after clearing bit4 of NVCR register. => renesas_micron_flash_nvcr SF: Detected mt25qu512a with page size 256 Bytes, erase size 64 KiB, total 64 MiB NVCR=0xef Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Link: https://lore.kernel.org/r/20240830203014.199326-2-biju.das.jz@bp.renesas.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent ff39018 commit 84d1078

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/memory/renesas-rpc-if.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ int rpcif_hw_init(struct device *dev, bool hyperflash)
367367
regmap_update_bits(rpc->regmap, RPCIF_CMNCR,
368368
RPCIF_CMNCR_MOIIO(3) | RPCIF_CMNCR_IOFV(3) |
369369
RPCIF_CMNCR_BSZ(3),
370-
RPCIF_CMNCR_MOIIO(1) | RPCIF_CMNCR_IOFV(2) |
370+
RPCIF_CMNCR_MOIIO(1) | RPCIF_CMNCR_IOFV(3) |
371371
RPCIF_CMNCR_BSZ(hyperflash ? 1 : 0));
372372
else
373373
regmap_update_bits(rpc->regmap, RPCIF_CMNCR,

0 commit comments

Comments
 (0)