Skip to content

Commit 8f72ba5

Browse files
maass-hamburgmmahadevan108
authored andcommitted
dt: fix value of DT_ENUM_HAS_VALUE
make value of DT_ENUM_HAS_VALUE lowercase. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
1 parent 5d05592 commit 8f72ba5

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

s32/soc/s32k344/include/Emios_Icu_Ip_Defines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extern "C"{
3030
#include <zephyr/devicetree.h>
3131

3232
#define _PWM_NXP_S32_CAPTURE_USED(node_id) \
33-
COND_CODE_1(DT_ENUM_HAS_VALUE(node_id, pwm_mode, SAIC), (+ 1), (+ 0))
33+
COND_CODE_1(DT_ENUM_HAS_VALUE(node_id, pwm_mode, saic), (+ 1), (+ 0))
3434

3535
#define PWM_NXP_S32_CAPTURE_USED(node_id) \
3636
DT_FOREACH_CHILD_STATUS_OKAY(node_id, _PWM_NXP_S32_CAPTURE_USED)

s32/soc/s32k344/include/Emios_Icu_Ip_SA_Init_PBcfg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ extern "C"{
9797
#define HAS_QDEC (DT_HAS_COMPAT_STATUS_OKAY(nxp_qdec_s32) && CONFIG_QDEC_NXP_S32)
9898

9999
#define EMIOS_ICU_CHANNEL(node_id, ch) \
100-
IF_ENABLED(DT_ENUM_HAS_VALUE(node_id, pwm_mode, SAIC), \
100+
IF_ENABLED(DT_ENUM_HAS_VALUE(node_id, pwm_mode, saic), \
101101
((DT_PROP(node_id, channel) == ch) ||))
102102

103103
#if DT_FOREACH_CHILD_STATUS_OKAY_VARGS(EMIOS_PWM_NODE(EMIOS_0_DRV_INST), \

s32/soc/s32k344/include/Emios_Pwm_Ip_Cfg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ extern "C"{
9696
==================================================================================================*/
9797
#define DT_DRV_COMPAT nxp_s32_emios_pwm
9898

99-
#define NUM_CHANNEL_USED(node_id) COND_CODE_1(DT_ENUM_HAS_VALUE(node_id, pwm_mode, SAIC), (+ 0), (+ 1))
99+
#define NUM_CHANNEL_USED(node_id) COND_CODE_1(DT_ENUM_HAS_VALUE(node_id, pwm_mode, saic), (+ 0), (+ 1))
100100
#define EMIOS_NUM_CHANNELS_USED(n) DT_INST_FOREACH_CHILD_STATUS_OKAY(n, NUM_CHANNEL_USED)
101101

102-
#define SET_INITIAL_MODE(node_id) IF_ENABLED(UTIL_NOT(DT_ENUM_HAS_VALUE(node_id, pwm_mode, SAIC)), \
102+
#define SET_INITIAL_MODE(node_id) IF_ENABLED(UTIL_NOT(DT_ENUM_HAS_VALUE(node_id, pwm_mode, saic)), \
103103
(EMIOS_PWM_IP_MODE_NODEFINE,))
104104
#define EMIOS_PWM_IP_SET_INITIAL_MODE(n) DT_INST_FOREACH_CHILD_STATUS_OKAY(n, SET_INITIAL_MODE)
105105

s32/soc/s32k344/include/Emios_Pwm_Ip_Init_PBcfg.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,24 +97,24 @@ extern "C"{
9797

9898
#define EMIOS_OPWFMB_MODE_USED(node_id) \
9999
COND_CODE_1(DT_NODE_HAS_PROP(node_id, pwm_mode), \
100-
(DT_ENUM_HAS_VALUE(node_id, pwm_mode, OPWFMB)), \
100+
(DT_ENUM_HAS_VALUE(node_id, pwm_mode, opwfmb)), \
101101
(0)) ||
102102

103103
#define IS_EMIOS_OPWFMB_MODE_USED(n) \
104104
DT_INST_FOREACH_CHILD_STATUS_OKAY(n, EMIOS_OPWFMB_MODE_USED)
105105

106106
#define EMIOS_OPWMB_MODE_USED(node_id) \
107107
COND_CODE_1(DT_NODE_HAS_PROP(node_id, pwm_mode), \
108-
(DT_ENUM_HAS_VALUE(node_id, pwm_mode, OPWMB)), \
108+
(DT_ENUM_HAS_VALUE(node_id, pwm_mode, opwmb)), \
109109
(0)) ||
110110

111111
#define IS_EMIOS_OPWMB_MODE_USED(n) \
112112
DT_INST_FOREACH_CHILD_STATUS_OKAY(n, EMIOS_OPWMB_MODE_USED)
113113

114114
#define EMIOS_OPWMCB_MODE_USED(node_id) \
115115
COND_CODE_1(DT_NODE_HAS_PROP(node_id, pwm_mode), \
116-
(DT_ENUM_HAS_VALUE(node_id, pwm_mode, OPWMCB_TRAIL_EDGE) || \
117-
DT_ENUM_HAS_VALUE(node_id, pwm_mode, OPWMCB_LEAD_EDGE) \
116+
(DT_ENUM_HAS_VALUE(node_id, pwm_mode, opwmcb_trail_edge) || \
117+
DT_ENUM_HAS_VALUE(node_id, pwm_mode, opwmcb_lead_edge) \
118118
),(0)) ||
119119

120120
#define IS_EMIOS_OPWMCB_MODE_USED(n) \

s32/soc/s32z270/include/Emios_Icu_Ip_Cfg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ extern "C"{
8787
#define EMIOS_PWM_NODE(n) DT_CHILD(DT_INST(n, nxp_s32_emios), pwm)
8888

8989
#define EMIOS_ICU_CHANNEL(node_id, ch) \
90-
IF_ENABLED(DT_ENUM_HAS_VALUE(node_id, pwm_mode, SAIC), \
90+
IF_ENABLED(DT_ENUM_HAS_VALUE(node_id, pwm_mode, saic), \
9191
((DT_PROP(node_id, channel) == ch) ||))
9292

9393
#if DT_FOREACH_CHILD_STATUS_OKAY_VARGS(EMIOS_PWM_NODE(EMIOS_0_DRV_INST), \

s32/soc/s32z270/include/Emios_Pwm_Ip_Cfg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ extern "C"{
9595
==================================================================================================*/
9696
#define DT_DRV_COMPAT nxp_s32_emios_pwm
9797

98-
#define NUM_CHANNEL_USED(node_id) COND_CODE_1(DT_ENUM_HAS_VALUE(node_id, pwm_mode, SAIC), (+ 0), (+ 1))
98+
#define NUM_CHANNEL_USED(node_id) COND_CODE_1(DT_ENUM_HAS_VALUE(node_id, pwm_mode, saic), (+ 0), (+ 1))
9999
#define EMIOS_NUM_CHANNELS_USED(n) DT_INST_FOREACH_CHILD_STATUS_OKAY(n, NUM_CHANNEL_USED)
100100

101-
#define SET_INITIAL_MODE(node_id) IF_ENABLED(UTIL_NOT(DT_ENUM_HAS_VALUE(node_id, pwm_mode, SAIC)), \
101+
#define SET_INITIAL_MODE(node_id) IF_ENABLED(UTIL_NOT(DT_ENUM_HAS_VALUE(node_id, pwm_mode, saic)), \
102102
(EMIOS_PWM_IP_MODE_NODEFINE,))
103103
#define EMIOS_PWM_IP_SET_INITIAL_MODE(n) DT_INST_FOREACH_CHILD_STATUS_OKAY(n, SET_INITIAL_MODE)
104104

s32/soc/s32z270/include/Emios_Pwm_Ip_Init_PBcfg.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,24 @@ extern "C"{
7171

7272
#define EMIOS_OPWFMB_MODE_USED(node_id) \
7373
COND_CODE_1(DT_NODE_HAS_PROP(node_id, pwm_mode), \
74-
(DT_ENUM_HAS_VALUE(node_id, pwm_mode, OPWFMB)), \
74+
(DT_ENUM_HAS_VALUE(node_id, pwm_mode, opwfmb)), \
7575
(0)) ||
7676

7777
#define IS_EMIOS_OPWFMB_MODE_USED(n) \
7878
DT_INST_FOREACH_CHILD_STATUS_OKAY(n, EMIOS_OPWFMB_MODE_USED)
7979

8080
#define EMIOS_OPWMB_MODE_USED(node_id) \
8181
COND_CODE_1(DT_NODE_HAS_PROP(node_id, pwm_mode), \
82-
(DT_ENUM_HAS_VALUE(node_id, pwm_mode, OPWMB)), \
82+
(DT_ENUM_HAS_VALUE(node_id, pwm_mode, opwmb)), \
8383
(0)) ||
8484

8585
#define IS_EMIOS_OPWMB_MODE_USED(n) \
8686
DT_INST_FOREACH_CHILD_STATUS_OKAY(n, EMIOS_OPWMB_MODE_USED)
8787

8888
#define EMIOS_OPWMCB_MODE_USED(node_id) \
8989
COND_CODE_1(DT_NODE_HAS_PROP(node_id, pwm_mode), \
90-
(DT_ENUM_HAS_VALUE(node_id, pwm_mode, OPWMCB_TRAIL_EDGE) || \
91-
DT_ENUM_HAS_VALUE(node_id, pwm_mode, OPWMCB_LEAD_EDGE) \
90+
(DT_ENUM_HAS_VALUE(node_id, pwm_mode, opwmcb_trail_edge) || \
91+
DT_ENUM_HAS_VALUE(node_id, pwm_mode, opwmcb_lead_edge) \
9292
),(0)) ||
9393

9494
#define IS_EMIOS_OPWMCB_MODE_USED(n) \

0 commit comments

Comments
 (0)