soc/ambiq/apollo5x: Fix code compliance issues
Fix issues detected by checkpatch Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
ed4ed05501
commit
448eac13d4
4 changed files with 11 additions and 11 deletions
|
@ -14,7 +14,7 @@
|
||||||
#define APOLLO5_PIN_NUM_MASK 0xff
|
#define APOLLO5_PIN_NUM_MASK 0xff
|
||||||
|
|
||||||
#define APOLLO5_PINMUX(pin_num, alt_func) \
|
#define APOLLO5_PINMUX(pin_num, alt_func) \
|
||||||
(pin_num << APOLLO5_PIN_NUM_POS | \
|
(pin_num << APOLLO5_PIN_NUM_POS | \
|
||||||
alt_func << APOLLO5_ALT_FUNC_POS)
|
alt_func << APOLLO5_ALT_FUNC_POS)
|
||||||
|
|
||||||
#endif /* __APOLLO5_PINCTRL_H__ */
|
#endif /* __APOLLO5_PINCTRL_H__ */
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
if SOC_APOLLO510
|
if SOC_APOLLO510
|
||||||
|
|
||||||
config NUM_IRQS
|
config NUM_IRQS
|
||||||
default 134
|
default 134
|
||||||
|
|
||||||
endif # SOC_APOLLO510
|
endif # SOC_APOLLO510
|
||||||
|
|
|
@ -9,12 +9,12 @@ config SOC_SERIES_APOLLO5X
|
||||||
Apollo5 Series MCU
|
Apollo5 Series MCU
|
||||||
|
|
||||||
config SOC_APOLLO510
|
config SOC_APOLLO510
|
||||||
bool
|
bool
|
||||||
select SOC_SERIES_APOLLO5X
|
select SOC_SERIES_APOLLO5X
|
||||||
|
|
||||||
config ARMV8_1_M_PMU_EVENTCNT
|
config ARMV8_1_M_PMU_EVENTCNT
|
||||||
int
|
int
|
||||||
default 8
|
default 8
|
||||||
|
|
||||||
config SOC_SERIES
|
config SOC_SERIES
|
||||||
default "apollo5x" if SOC_SERIES_APOLLO5X
|
default "apollo5x" if SOC_SERIES_APOLLO5X
|
||||||
|
|
|
@ -74,14 +74,14 @@ typedef struct apollo5_pinctrl_soc_pin pinctrl_soc_pin_t;
|
||||||
* @param prop Property name describing state pins.
|
* @param prop Property name describing state pins.
|
||||||
*/
|
*/
|
||||||
#define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \
|
#define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \
|
||||||
{DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
|
{DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
|
||||||
DT_FOREACH_PROP_ELEM, pinmux, \
|
DT_FOREACH_PROP_ELEM, pinmux, \
|
||||||
Z_PINCTRL_STATE_PIN_INIT)}
|
Z_PINCTRL_STATE_PIN_INIT)}
|
||||||
|
|
||||||
#define APOLLO5_GET_PIN_NUM(pinctrl) \
|
#define APOLLO5_GET_PIN_NUM(pinctrl) \
|
||||||
(((pinctrl) >> APOLLO5_PIN_NUM_POS) & APOLLO5_PIN_NUM_MASK)
|
(((pinctrl) >> APOLLO5_PIN_NUM_POS) & APOLLO5_PIN_NUM_MASK)
|
||||||
#define APOLLO5_GET_PIN_ALT_FUNC(pinctrl) \
|
#define APOLLO5_GET_PIN_ALT_FUNC(pinctrl) \
|
||||||
(((pinctrl) >> APOLLO5_ALT_FUNC_POS) & APOLLO5_ALT_FUNC_MASK)
|
(((pinctrl) >> APOLLO5_ALT_FUNC_POS) & APOLLO5_ALT_FUNC_MASK)
|
||||||
|
|
||||||
|
|
||||||
#endif /* ZEPHYR_SOC_ARM_AMBIQ_APOLLO5_PINCTRL_SOC_H_ */
|
#endif /* ZEPHYR_SOC_ARM_AMBIQ_APOLLO5_PINCTRL_SOC_H_ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue