summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/sdhci-xenon.h
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@semihalf.com>2020-12-04 20:16:23 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2020-12-11 12:08:37 +0300
commitf75fda3730728ea42bd1c210eaed96fb543ff00b (patch)
tree4bb0f098e82f054cecbe8ce3f734af059a80a540 /drivers/mmc/host/sdhci-xenon.h
parent6f56023aea3ac86f4fc8611161affb7f265ff662 (diff)
downloadlinux-f75fda3730728ea42bd1c210eaed96fb543ff00b.tar.xz
mmc: sdhci-xenon: use match data for controllers variants
As a part of the ACPI support preparation resign from checking compatible strings in the driver. Instead of that use a new enum and assign the values to match data accordingly. Signed-off-by: Marcin Wojtas <mw@semihalf.com> Link: https://lore.kernel.org/r/20201204171626.10935-2-mw@semihalf.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-xenon.h')
-rw-r--r--drivers/mmc/host/sdhci-xenon.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-xenon.h b/drivers/mmc/host/sdhci-xenon.h
index 593b82d7b68a..39e898605937 100644
--- a/drivers/mmc/host/sdhci-xenon.h
+++ b/drivers/mmc/host/sdhci-xenon.h
@@ -53,6 +53,13 @@
#define XENON_CTRL_HS200 0x5
#define XENON_CTRL_HS400 0x6
+enum xenon_variant {
+ XENON_A3700,
+ XENON_AP806,
+ XENON_AP807,
+ XENON_CP110
+};
+
struct xenon_priv {
unsigned char tuning_count;
/* idx of SDHC */
@@ -90,6 +97,7 @@ struct xenon_priv {
void *phy_params;
struct xenon_emmc_phy_regs *emmc_phy_regs;
bool restore_needed;
+ enum xenon_variant hw_version;
};
int xenon_phy_adj(struct sdhci_host *host, struct mmc_ios *ios);