mmc: sdhci-of-aspeed: Configure the SDHCIs as specified by the devicetree.
authorSteven Lee <steven_lee@aspeedtech.com>
Mon, 24 May 2021 07:32:56 +0000 (15:32 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 14 Jun 2021 11:57:42 +0000 (13:57 +0200)
commitdd646d982cf9b3b0c04c6f418bb91c275ce86336
tree459ed8d26ef56966d8447e136e7e39d355dca59a
parent7c45b2268e515b83772ff9c5d3db5f16ae3ca3bf
mmc: sdhci-of-aspeed: Configure the SDHCIs as specified by the devicetree.

The hardware provides capability configuration registers for each SDHCI
in the global configuration space for the SD controller. Writes to the
global capability registers are mirrored to the capability registers in
the associated SDHCI. Configuration of the capabilities must be written
through the mirror registers prior to initialisation of the SDHCI.

Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210524073308.9328-5-steven_lee@aspeedtech.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-aspeed.c