mmc: sdhci-omap: Add omap_offset to support omap3 and earlier
authorTony Lindgren <tony@atomide.com>
Fri, 15 Oct 2021 10:47:17 +0000 (13:47 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 19 Oct 2021 11:01:46 +0000 (13:01 +0200)
commit42b380b69b2ea0e218d3534ea8073fd67bbbf67b
treeea3ba98c3421136a6c2ad6941e46b87545eebf69
parentde5ccd2af71fc616d7112420054478b84622eb5d
mmc: sdhci-omap: Add omap_offset to support omap3 and earlier

The omap specific registers are at offset 0x100 from base for omap4 and
later, and for omap3 and earlier they are at offset 0. Let's handle also
the earlier SoCs by adding omap_offset.

Note that eventually we should just move to using standard sdhci register
access for the sdhci range with new offsets starting at 0x100.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20211015104720.52240-4-tony@atomide.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-omap.c