mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: i.MX: define MUX_MODE_SION for use in board code
@ 2024-03-13 18:00 Ahmad Fatoum
  2024-03-15  7:12 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2024-03-13 18:00 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

While we set SION for all I2C pinmux configurations, board code may
need to set SION for other pads as well. Provide a MUX_MODE_SION
definition that can be OR-d into the pinmux argument of
imx8mm_setup_pad().

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 include/mach/imx/iomux-v3.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/mach/imx/iomux-v3.h b/include/mach/imx/iomux-v3.h
index e1d62ae4b8d6..fac736ed55f2 100644
--- a/include/mach/imx/iomux-v3.h
+++ b/include/mach/imx/iomux-v3.h
@@ -56,6 +56,7 @@ typedef u64 iomux_v3_cfg_t;
 #define MUX_SEL_INPUT_SHIFT	59
 #define MUX_SEL_INPUT_MASK	((iomux_v3_cfg_t)0xf << MUX_SEL_INPUT_SHIFT)
 
+#define MUX_MODE_SION		((iomux_v3_cfg_t)IOMUX_CONFIG_SION << MUX_MODE_SHIFT)
 #define MUX_PAD_CTRL(x)		((iomux_v3_cfg_t)(x) << MUX_PAD_CTRL_SHIFT)
 
 #define IOMUX_PAD(_pad_ctrl_ofs, _mux_ctrl_ofs, _mux_mode, _sel_input_ofs, \
-- 
2.39.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: i.MX: define MUX_MODE_SION for use in board code
  2024-03-13 18:00 [PATCH] ARM: i.MX: define MUX_MODE_SION for use in board code Ahmad Fatoum
@ 2024-03-15  7:12 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2024-03-15  7:12 UTC (permalink / raw)
  To: barebox, Ahmad Fatoum


On Wed, 13 Mar 2024 19:00:27 +0100, Ahmad Fatoum wrote:
> While we set SION for all I2C pinmux configurations, board code may
> need to set SION for other pads as well. Provide a MUX_MODE_SION
> definition that can be OR-d into the pinmux argument of
> imx8mm_setup_pad().
> 
> 

Applied, thanks!

[1/1] ARM: i.MX: define MUX_MODE_SION for use in board code
      https://git.pengutronix.de/cgit/barebox/commit/?id=4ff51eb1816d (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-15  7:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-13 18:00 [PATCH] ARM: i.MX: define MUX_MODE_SION for use in board code Ahmad Fatoum
2024-03-15  7:12 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox