mmc: sunxi: Refactor mod clock register offset
authorAndre Przywara <andre.przywara@arm.com>
Mon, 11 Jan 2021 20:11:44 +0000 (21:11 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 25 Jan 2021 21:52:01 +0000 (21:52 +0000)
commit0237b3047e2565725b16faa484e39ab254c5d987
treed0d86a5bc3b1709b93642e8acb83eed384e5af44
parentf4317dbd06b64fe0617d9adbb401c23bcff318a7
mmc: sunxi: Refactor mod clock register offset

So far the only difference between the various Allwinner MMC controller
we are concerned about is the mod clock register offset.
This is actually not directly related to the MMC controller IP, but an
integration choice, dependent on the SoC this appears in.

To avoid becoming trapped with some compatible fallback strings, let's
remove the whole struct sunxi_mmc_variant, and replace this with a SoC
based choice, which we can derive from the CONFIG_MACH_SUNx_y symbols.

This will later simplify H616 support.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/sunxi_mmc.c