]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk322x: pinctrl: fix IO MASK error on sdcard pin
authorKever Yang <kever.yang@rock-chips.com>
Thu, 17 Aug 2017 07:17:36 +0000 (15:17 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 18 Aug 2017 16:00:46 +0000 (18:00 +0200)
Fix the IOMUX setting for SDcard CMD pin at the same time.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
drivers/pinctrl/rockchip/pinctrl_rk322x.c

index d9f8614810b7e209708c44d6defb567823e5eda9..576b03739fa845b93eecae1ba56bd1b30fbe7836 100644 (file)
@@ -168,7 +168,7 @@ static void pinctrl_rk322x_sdmmc_config(struct rk322x_grf *grf, int mmc_id)
                rk_clrsetreg(&grf->gpio1b_iomux,
                             GPIO1B6_MASK | GPIO1B7_MASK,
                             GPIO1B6_SDMMC_PWREN << GPIO1B6_SHIFT |
-                            GPIO1B7_SDMMC_CMD << GPIO1B6_SHIFT);
+                            GPIO1B7_SDMMC_CMD << GPIO1B7_SHIFT);
                rk_clrsetreg(&grf->gpio1c_iomux, 0xfff,
                             GPIO1C5_SDMMC_D3 << GPIO1C5_SHIFT |
                             GPIO1C4_SDMMC_D2 << GPIO1C4_SHIFT |