From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Sun, 20 Sep 2015 09:43:28 +0200 Subject: [U-Boot] [PATCH 1/3] imx-common: fix iomux settings In-Reply-To: <1442208885-32387-1-git-send-email-Peng.Fan@freescale.com> References: <1442208885-32387-1-git-send-email-Peng.Fan@freescale.com> Message-ID: <55FE63A0.7060801@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 14/09/2015 07:34, Peng Fan wrote: > 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 > --- > arch/arm/imx-common/iomux-v3.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/arm/imx-common/iomux-v3.c b/arch/arm/imx-common/iomux-v3.c > index b4f481f..9b9cf58 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); > Applied (whole series) to u-boot-imx, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================