summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnest Van Hoecke <ernest.vanhoecke@toradex.com>2025-09-19 18:33:41 +0200
committerErnest Van Hoecke <ernest.vanhoecke@toradex.com>2025-09-19 18:50:04 +0200
commit7704f733147c983f98f58beacbbc61ee9d8ec44a (patch)
tree9fdb2a0f1055f4ee9db9e772580a07358be31856
parent830080aee78c85c8073f405cecb5edd4b3c6eef1 (diff)
board: smarc-imx95: fix GPIO_PCNP_I2C_* definitions and usage
These two defines had a small typo that did not lead to a compile error because they were not used when setting GPIO1->PCNP. Fix them and use them. Fixes: 27d2f48207f8 ("boards: tdx-smarc-imx95: enable Cortex-A access to selected gpios") Signed-off-by: Ernest Van Hoecke <ernest.vanhoecke@toradex.com>
-rwxr-xr-xboards/tdx-smarc-imx95/sm/brd_sm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/boards/tdx-smarc-imx95/sm/brd_sm.c b/boards/tdx-smarc-imx95/sm/brd_sm.c
index 19c5231..38b2460 100755
--- a/boards/tdx-smarc-imx95/sm/brd_sm.c
+++ b/boards/tdx-smarc-imx95/sm/brd_sm.c
@@ -128,8 +128,8 @@
#define GPIO_PCNS_SER0_RTS_B RGPIO_PCNS_NSE13_MASK
#define GPIO_PCNS_CTRL_IO_EXP_INT_B RGPIO_PCNS_NSE14_MASK
-#define GPIO_PCNP_I2C_GP_CK RGPIO_PCNP_NSE2_MASK
-#define GPIO_PCNP_I2C_GP_DAT RGPIO_PCNP_NSE3_MASK
+#define GPIO_PCNP_I2C_GP_CK RGPIO_PCNP_NPE2_MASK
+#define GPIO_PCNP_I2C_GP_DAT RGPIO_PCNP_NPE3_MASK
#define GPIO_PCNP_SER1_RX RGPIO_PCNP_NPE4_MASK
#define GPIO_PCNP_SER1_TX RGPIO_PCNP_NPE5_MASK
#define GPIO_PCNP_SER0_RX RGPIO_PCNP_NPE6_MASK
@@ -212,8 +212,8 @@ int32_t BRD_SM_Init(int argc, const char * const argv[], uint32_t *mSel)
GPIO_PCNS_SER0_RTS_B |
GPIO_PCNS_CTRL_IO_EXP_INT_B);
GPIO1->ICNS = 1;
- GPIO1->PCNP = ( GPIO_PCNS_I2C_GP_CK |
- GPIO_PCNS_I2C_GP_DAT |
+ GPIO1->PCNP = ( GPIO_PCNP_I2C_GP_CK |
+ GPIO_PCNP_I2C_GP_DAT |
GPIO_PCNP_SER1_RX |
GPIO_PCNP_SER1_TX |
GPIO_PCNP_SER0_RX |