lipengfei28 commented on code in PR #16798: URL: https://github.com/apache/nuttx/pull/16798#discussion_r2265566160
########## arch/arm64/src/imx9/imx9_iomuxc.h: ########## @@ -38,6 +38,26 @@ * Pre-processor Definitions ****************************************************************************/ +#ifdef CONFIG_IMX9_IOMUX_OVER_SCMI +#define IOMUXC_PAD_CONFIG_SHIFT 1 + +#define IOMUX_PADCFG(_ctlregoff, _mode, _dsyregoff, _dsy, _padregoff) \ + { \ + .ctlregoff = (_ctlregoff), \ + .padregoff = (_padregoff), \ + .dsyregoff = (_dsyregoff), \ + .mode = (_mode), \ + .dsy = (_dsy), \ + } + +#define IOMUX_CFG(_padcfg, _pad, _sion) \ + (iomux_cfg_t) \ + { \ + .padcfg = _padcfg, \ + .pad = (_pad) >> IOMUXC_PAD_CONFIG_SHIFT, \ Review Comment: keep same with arm imx9 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org