diff options
author | Adrian Alonso <aalonso@freescale.com> | 2015-04-06 10:00:57 -0500 |
---|---|---|
committer | Adrian Alonso <aalonso@freescale.com> | 2015-04-06 10:19:36 -0500 |
commit | e4fd6550b3e5458aaf5049a7e6a12d6e4443c53a (patch) | |
tree | d07eb1c143e3b25517b08dd0b33cd5c7138e205a | |
parent | 51d69f7996cc6e6da8bb3f0af751549cb2435e44 (diff) | |
download | u-boot-imx-e4fd6550b3e5458aaf5049a7e6a12d6e4443c53a.zip u-boot-imx-e4fd6550b3e5458aaf5049a7e6a12d6e4443c53a.tar.gz u-boot-imx-e4fd6550b3e5458aaf5049a7e6a12d6e4443c53a.tar.bz2 |
MLK-10590: arm :imx7d: correct iomuxc-lpsr daisy chain
* Correct daisy chain settings for LPSR iomux controller
* Add IOMUX_LPSR_SEL_INPUT_OFS only when pad is identified
to be part of lpsr-iomuxc domain
Signed-off-by: Adrian Alonso <aalonso@freescale.com>
Signed-off-by: Nitin Garg <nitin.garg@freescale.com>
-rw-r--r-- | arch/arm/imx-common/iomux-v3.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/imx-common/iomux-v3.c b/arch/arm/imx-common/iomux-v3.c index 3be454f..d63d78c 100644 --- a/arch/arm/imx-common/iomux-v3.c +++ b/arch/arm/imx-common/iomux-v3.c @@ -36,10 +36,10 @@ void imx_iomux_v3_setup_pad(iomux_v3_cfg_t pad) if (lpsr == IOMUX_CONFIG_LPSR) { base = (void *)IOMUXC_LPSR_BASE_ADDR; mux_mode &= ~IOMUX_CONFIG_LPSR; + /* set daisy chain sel_input */ + if (sel_input_ofs) + sel_input_ofs += IOMUX_LPSR_SEL_INPUT_OFS; } - - if (sel_input_ofs) - sel_input_ofs += IOMUX_LPSR_SEL_INPUT_OFS; #endif __raw_writel(mux_mode, base + mux_ctrl_ofs); |