From: Peng Fan Date: Mon, 14 Sep 2015 05:34:43 +0000 (+0800) Subject: imx-common: fix iomux settings X-Git-Tag: v2015.10-rc4~20^2~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c3c8a5748897b24f18618047804317167a531dd3;p=oweals%2Fu-boot.git imx-common: fix iomux settings When setting iomux for a pin mux, there is no need to check mux_ctrl_ofs. Also If still checking mux_ctrl_ofs, we have no chance to set iomux for i.MX7D IOMUXC_LPSR_SW_MUX_CTL_PAD_GPIO1_IO00, because the mux_ctrl_ofs for this register is 0. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam Tested-by: Fabio Estevam --- diff --git a/arch/arm/imx-common/iomux-v3.c b/arch/arm/imx-common/iomux-v3.c index b4f481fa53..9b9cf58b75 100644 --- a/arch/arm/imx-common/iomux-v3.c +++ b/arch/arm/imx-common/iomux-v3.c @@ -53,8 +53,7 @@ void imx_iomux_v3_setup_pad(iomux_v3_cfg_t pad) } #endif - if (mux_ctrl_ofs) - __raw_writel(mux_mode, base + mux_ctrl_ofs); + __raw_writel(mux_mode, base + mux_ctrl_ofs); if (sel_input_ofs) __raw_writel(sel_input, base + sel_input_ofs);