rockchip: dwmmc: add handling for u-boot, spl-fifo-mode
authorHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Tue, 19 Nov 2019 11:04:01 +0000 (12:04 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 23 Nov 2019 15:41:44 +0000 (23:41 +0800)
commitc8dd0e42d709c9734f313c547d0707e27ca0de51
treec6f735f43518d6544827828d1ef587a9d8ab9457
parentd4fba131bb8a773bf6026abef3496fed28287145
rockchip: dwmmc: add handling for u-boot, spl-fifo-mode

Rockchips dwmmc controllers can't do dma to non-ddr addresses,
like for example the soc-internal sram but during boot parts of
TrustedFirmware need to be placed there from the read FIT image.

So add handling for a u-boot,spl-fifo-mode to not put the mmc
controllers into fifo mode for all time.

The regular fifo-mode property still takes precedent and only
if not set do we check for the spl-specific property.

Suggested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/mmc/rockchip_dw_mmc.c