From: Maud Spierings <[email protected]>

The DSE field has a deceptive layout, DSE 2 is a higher value than DSE 4

See reference manual 8.2.2.1.3 or the description of any IOMUXC_SW_PAD_X
register in 8.2.4.144+

Fixes: 3c0d42752e9a ("arm: imx: add initial imx8mp support")
Signed-off-by: Maud Spierings <[email protected]>
Link: https://lore.barebox.org/[email protected]
Signed-off-by: Sascha Hauer <[email protected]>
(cherry picked from commit 7f0f37f7bc7750f31f427ca271ccfe4c9a763fde)
Signed-off-by: Ahmad Fatoum <[email protected]>
---
 include/mach/imx/iomux-mx8mp.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/mach/imx/iomux-mx8mp.h b/include/mach/imx/iomux-mx8mp.h
index 98e340d3dad1..da5cfe3048ca 100644
--- a/include/mach/imx/iomux-mx8mp.h
+++ b/include/mach/imx/iomux-mx8mp.h
@@ -1081,8 +1081,8 @@ enum {
 };
 
 #define MX8MP_PAD_CTL_DSE1     (0 << 1)
-#define MX8MP_PAD_CTL_DSE2     (1 << 1)
-#define MX8MP_PAD_CTL_DSE4     (2 << 1)
+#define MX8MP_PAD_CTL_DSE2     (2 << 1)
+#define MX8MP_PAD_CTL_DSE4     (1 << 1)
 #define MX8MP_PAD_CTL_DSE6     (3 << 1)
 #define MX8MP_PAD_CTL_FSEL     BIT(4)
 #define MX8MP_PAD_CTL_ODE      BIT(5)
-- 
2.47.3


Reply via email to