]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: rockchip_sdhci: Rearrange and simplify used regs and flags
authorJonas Karlman <jonas@kwiboo.se>
Tue, 18 Apr 2023 16:46:35 +0000 (16:46 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 21 Apr 2023 07:55:29 +0000 (15:55 +0800)
commit8874c417ab87e559c018461effca1191e1c45fe5
tree8e37710d1cf70b4e59c1695fb46a98301f8c6575
parent667576c59d492116b0c4ffc0194b3b86b84c85e3
mmc: rockchip_sdhci: Rearrange and simplify used regs and flags

This rearrange and remove duplicate defines to make the code cleaner.

There is no need to read vendor area1 and use an offset each time, it is
easier and clearer to just use the reg offset defined in TRM, same as
the other vendor regs.

This also removes use of the misspelled const for the RK3588 CMDOUT reg,
it will be re-added when support for RK3588 is introduced.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/mmc/rockchip_sdhci.c