summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/meson-gx-mmc.c
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2017-08-21 19:02:46 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2017-08-30 16:03:41 +0300
commitc1d04caa30ba77eef23c8263566c449751157583 (patch)
tree151e53926735d6a9f4ac5dcd0ace22a8f255eb40 /drivers/mmc/host/meson-gx-mmc.c
parent2fe20baec46caeaf1076a7f3d7cfd3e75c40205c (diff)
downloadlinux-c1d04caa30ba77eef23c8263566c449751157583.tar.xz
mmc: meson-gx: fix mux mask definition
CCF generic mux will shift the mask using the value defined in shift Define the mask accordingly Reviewed-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/meson-gx-mmc.c')
-rw-r--r--drivers/mmc/host/meson-gx-mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c
index de962c2d5e00..4217287923d4 100644
--- a/drivers/mmc/host/meson-gx-mmc.c
+++ b/drivers/mmc/host/meson-gx-mmc.c
@@ -366,7 +366,7 @@ static int meson_mmc_clk_init(struct meson_host *host)
init.num_parents = MUX_CLK_NUM_PARENTS;
host->mux.reg = host->regs + SD_EMMC_CLOCK;
host->mux.shift = __bf_shf(CLK_SRC_MASK);
- host->mux.mask = CLK_SRC_MASK;
+ host->mux.mask = CLK_SRC_MASK >> host->mux.shift;
host->mux.flags = 0;
host->mux.table = NULL;
host->mux.hw.init = &init;