Zephyr API Documentation
4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pinctrl_nxp_siul2_common.h
Go to the documentation of this file.
1
/*
2
* Copyright 2022-2025 NXP
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DRIVERS_PINCTRL_PINCTRL_NXP_SIUL2_COMMON_H_
8
#define ZEPHYR_INCLUDE_DRIVERS_PINCTRL_PINCTRL_NXP_SIUL2_COMMON_H_
9
10
#include <
zephyr/devicetree.h
>
11
#include <
zephyr/types.h
>
12
14
15
struct
pinctrl_soc_reg {
16
uint8_t
inst;
17
uint16_t
idx;
18
uint32_t
val;
19
};
20
22
typedef
struct
{
23
struct
pinctrl_soc_reg mscr;
24
struct
pinctrl_soc_reg imcr;
25
}
pinctrl_soc_pin_t
;
26
35
#define Z_PINCTRL_STATE_PIN_INIT(group, prop, idx) \
36
{NXP_SIUL2_PINMUX_INIT(group, DT_PROP_BY_IDX(group, prop, idx))},
37
44
#define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \
45
{ \
46
DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, pinmux, \
47
Z_PINCTRL_STATE_PIN_INIT) \
48
}
49
51
52
#endif
/* ZEPHYR_INCLUDE_DRIVERS_PINCTRL_PINCTRL_NXP_SIUL2_COMMON_H_ */
devicetree.h
Devicetree main header.
types.h
pinctrl_soc_pin_t
struct pinctrl_soc_pin pinctrl_soc_pin_t
Type for R-Car pin.
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:88
uint16_t
__UINT16_TYPE__ uint16_t
Definition
stdint.h:89
zephyr
drivers
pinctrl
pinctrl_nxp_siul2_common.h
Generated on
for Zephyr API Documentation by
1.14.0