Skip to content

Commit ba14413

Browse files
sreeramIfxfabiobaltieri
authored andcommitted
drivers: gpio: GPIO driver updates to support PSC3
Update GPIO driver to support PSC3 Signed-off-by: Sreeram Tatapudi <[email protected]>
1 parent b3e165e commit ba14413

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

boards/infineon/kit_psc3m5_evk/kit_psc3m5_evk_defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
CONFIG_ARM_MPU=y
88
CONFIG_HW_STACK_PROTECTION=y
99
CONFIG_TRUSTED_EXECUTION_SECURE=y
10+
11+
# Enable GPIO driver
12+
CONFIG_GPIO=y

boards/infineon/kit_psc3m5_evk/kit_psc3m5_evk_psc3m5fds2afq1_ns_defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ CONFIG_ARM_MPU=y
88
CONFIG_HW_STACK_PROTECTION=y
99

1010
CONFIG_TRUSTED_EXECUTION_NONSECURE=y
11+
12+
# Enable GPIO driver
13+
CONFIG_GPIO=y

drivers/gpio/gpio_ifx_cat1.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ static int gpio_cat1_configure(const struct device *dev, gpio_pin_t pin, gpio_fl
9393
return -ENOTSUP;
9494
}
9595

96+
#if defined(CY_PDL_TZ_ENABLED)
97+
Cy_GPIO_Pin_SecFastInit(base, pin, drive_mode, pin_val, HSIOM_SEL_GPIO);
98+
#else
9699
Cy_GPIO_Pin_FastInit(base, pin, drive_mode, pin_val, HSIOM_SEL_GPIO);
100+
#endif /* defined(CY_PDL_TZ_ENABLED) */
97101

98102
return 0;
99103
}

0 commit comments

Comments
 (0)