Skip to content

Commit

Permalink
mmc: sdhci: Add version V4 definition
Browse files Browse the repository at this point in the history
Added definitions for v400, v410, v420.

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Chunyan Zhang authored and Ulf Hansson committed Oct 8, 2018
1 parent e537824 commit 18da199
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -3524,7 +3524,7 @@ int sdhci_setup_host(struct sdhci_host *host)

override_timeout_clk = host->timeout_clk;

if (host->version > SDHCI_SPEC_300) {
if (host->version > SDHCI_SPEC_420) {
pr_err("%s: Unknown controller version (%d). You may experience problems.\n",
mmc_hostname(mmc), host->version);
}
Expand Down
3 changes: 3 additions & 0 deletions drivers/mmc/host/sdhci.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@
#define SDHCI_SPEC_100 0
#define SDHCI_SPEC_200 1
#define SDHCI_SPEC_300 2
#define SDHCI_SPEC_400 3
#define SDHCI_SPEC_410 4
#define SDHCI_SPEC_420 5

/*
* End of controller registers.
Expand Down

0 comments on commit 18da199

Please sign in to comment.