]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: mmc: rockchip_dw_mmc: add rk3066/rk3188 support
authorJohan Jonker <jbx6244@gmail.com>
Sat, 9 Apr 2022 16:55:09 +0000 (18:55 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 18 Apr 2022 03:25:13 +0000 (11:25 +0800)
commit2d3bb400f37b86c3da3a64a9ee4c1d79caa2fdd6
treefcf1674ab6ae636f6417eda2762aa2da74157af8
parent9d75dafb1bee4cdc165c3c3ca246e9bc70690a7f
rockchip: mmc: rockchip_dw_mmc: add rk3066/rk3188 support

The Rockchip SoCs rk3066/rk3188 have MMC DT nodes
with as compatible string "rockchip,rk2928-dw-mshc".
Add OF_PLATDATA support to the existing driver with
help of a DM_DRIVER_ALIAS.

This type needs a permanent enabled fifo.
The other Rockchip SoCs always have the property
"u-boot,spl-fifo-mode" in the MMC DT nodes,
because MMC to SRAM can't do DMA.
Make this property a requirement for MMC OF_PLATDATA
structures. The property "fifo-mode" must be added
for all other compile modes.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/mmc/rockchip_dw_mmc.c