diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-11-22 10:50:46 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-11-22 11:51:30 +0100 |
commit | d9722e63deb02571624aaa2e39ef7ddd48506bac (patch) | |
tree | 8a90b5ed78bc3835a5f7b6d625229dfec6c14d1a /drivers/mci/imx-esdhc.c | |
parent | 57085b3327aa8e0d65022b81d8f719273105b423 (diff) | |
download | barebox-d9722e63deb02571624aaa2e39ef7ddd48506bac.tar.gz barebox-d9722e63deb02571624aaa2e39ef7ddd48506bac.tar.xz |
mci: imx-esdhc: add layerscape flag
More Layerscape specifics are about to come. Instead of adding a
specific quirk flag for each of them, rename the ESDHC_FLAG_CACHE_SNOOPING
flag to ESDHC_FLAG_LAYERSCAPE to get a common layerscape flag.
From looking at the Kernel driver it seems we can use these flag for the
modern Layerscape SoCs, we would have to revisit this once we support
LS1012.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/imx-esdhc.c')
-rw-r--r-- | drivers/mci/imx-esdhc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mci/imx-esdhc.c b/drivers/mci/imx-esdhc.c index f30a791fa4..90a6c12439 100644 --- a/drivers/mci/imx-esdhc.c +++ b/drivers/mci/imx-esdhc.c @@ -232,7 +232,7 @@ static int esdhc_init(struct mci_host *mci, struct device *dev) sdhci_write32(&host->sdhci, SDHCI_MMC_BOOT, 0); /* Enable cache snooping */ - if (host->socdata->flags & ESDHC_FLAG_CACHE_SNOOPING) + if (esdhc_is_layerscape(host)) esdhc_setbits32(host, ESDHC_DMA_SYSCTL, ESDHC_SYSCTL_DMA_SNOOP); /* Set the initial clock speed */ @@ -377,7 +377,7 @@ static struct esdhc_soc_data usdhc_imx6sx_data = { static struct esdhc_soc_data esdhc_ls_data = { .flags = ESDHC_FLAG_MULTIBLK_NO_INT | ESDHC_FLAG_BIGENDIAN | - ESDHC_FLAG_CACHE_SNOOPING, + ESDHC_FLAG_LAYERSCAPE, }; static __maybe_unused struct of_device_id fsl_esdhc_compatible[] = { |