mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-03 18:10:13 +00:00
53f4ef0a4b
Fix the issue where some flash chips like cypress S25HS256T return the value of the same register over and over in DAC mode. For example in the TI K3-AM62x Processors refer [0] Technical Reference Manual there is a layer of digital logic in front of the QSPI/OSPI Drive when used in DAC mode. This is part of the Flash Subsystem (FSS) which provides access to external Flash devices. The FSS0_0_SYSCONFIG Register (Offset = 4h) has a BIT Field for OSPI_32B_DISABLE_MODE which has a Reset value = 0. This means, OSPI 32bit mode enabled by default. Thus, by default controller operates in 32 bit mode causing it to always align all data to 4 bytes from a 4byte aligned address. In some flash chips like cypress for example if we try to read some regs in DAC mode then it keeps sending the value of the first register that was requested and inorder to read the next reg, we have to stop and re-initiate a new transaction. This causes wrong register values to be read than what is desired when registers are read in DAC mode. Hence if the data.nbytes is very less then prefer STIG mode for such small reads. [0] https://www.ti.com/lit/ug/spruiv7a/spruiv7a.pdf Tested-by: Vaishnav Achath <vaishnav.a@ti.com> Signed-off-by: Dhruva Gole <d-gole@ti.com> [jagan: add tab space for comments] Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com> |
||
---|---|---|
.. | ||
altera_spi.c | ||
apple_spi.c | ||
atcspi200_spi.c | ||
ath79_spi.c | ||
atmel-quadspi.c | ||
atmel_spi.c | ||
atmel_spi.h | ||
bcm63xx_hsspi.c | ||
bcm63xx_spi.c | ||
bcmstb_spi.c | ||
ca_sflash.c | ||
cadence_ospi_versal.c | ||
cadence_qspi.c | ||
cadence_qspi.h | ||
cadence_qspi_apb.c | ||
cf_spi.c | ||
davinci_spi.c | ||
designware_spi.c | ||
exynos_spi.c | ||
fsl_dspi.c | ||
fsl_espi.c | ||
fsl_qspi.c | ||
gxp_spi.c | ||
ich.c | ||
ich.h | ||
iproc_qspi.c | ||
Kconfig | ||
kirkwood_spi.c | ||
Makefile | ||
meson_spifc.c | ||
microchip_coreqspi.c | ||
mpc8xx_spi.c | ||
mpc8xxx_spi.c | ||
mscc_bb_spi.c | ||
mt7620_spi.c | ||
mt7621_spi.c | ||
mtk_snfi_spi.c | ||
mtk_snor.c | ||
mtk_spim.c | ||
mvebu_a3700_spi.c | ||
mxc_spi.c | ||
mxs_spi.c | ||
npcm_fiu_spi.c | ||
npcm_pspi.c | ||
nxp_fspi.c | ||
octeon_spi.c | ||
omap3_spi.c | ||
pic32_spi.c | ||
pl022_spi.c | ||
renesas_rpc_spi.c | ||
rk_spi.c | ||
rk_spi.h | ||
rockchip_sfc.c | ||
sandbox_spi.c | ||
sh_qspi.c | ||
soft_spi.c | ||
spi-aspeed-smc.c | ||
spi-emul-uclass.c | ||
spi-mem-nodm.c | ||
spi-mem.c | ||
spi-mxic.c | ||
spi-qup.c | ||
spi-sifive.c | ||
spi-sn-f-ospi.c | ||
spi-sunxi.c | ||
spi-synquacer.c | ||
spi-uclass.c | ||
spi.c | ||
stm32_qspi.c | ||
stm32_spi.c | ||
tegra20_sflash.c | ||
tegra20_slink.c | ||
tegra114_spi.c | ||
tegra210_qspi.c | ||
tegra_spi.h | ||
ti_qspi.c | ||
uniphier_spi.c | ||
xilinx_spi.c | ||
zynq_qspi.c | ||
zynq_spi.c | ||
zynqmp_gqspi.c |