mmc: xenon: Add ac5 support via bounce buffer
authorElad Nachman <enachman@marvell.com>
Thu, 4 Jan 2024 17:30:33 +0000 (19:30 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 5 Jan 2024 10:03:56 +0000 (11:03 +0100)
commit5d40213347480e3ab903d5438dbd0d6b0110e6b8
tree0ca3ae448678e1ad1333e3b69322ffa8035a2cd0
parentd5862720c018db3046855cd43a497e346309a5d5
mmc: xenon: Add ac5 support via bounce buffer

AC5/X/IM SOCs has a variant of the Xenon eMMC controller,
in which only 31-bit of addressing pass from the controller
on the AXI bus.
Since we cannot guarantee that only buffers from the first 2GB
of memory will reach the driver, the driver is configured for
SDMA mode, without 64-bit mode, overriding the DMA mask to 34-bit
to support the DDR memory mapping, which starts at offset 8GB.

Signed-off-by: Elad Nachman <enachman@marvell.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20240104173033.2836110-1-enachman@marvell.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-xenon.c
drivers/mmc/host/sdhci-xenon.h