|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Renesas R-Car Gen5 pinctrl common definitions. More...
Go to the source code of this file.
Data Structures | |
| struct | rcar_pin_func |
| Type for R-Car pin function. More... | |
| struct | pinctrl_soc_pin |
| Type for R-Car pin. More... | |
| struct | pfc_drive_reg |
| Type for R-Car DRVCTRLn registers. More... | |
| struct | pfc_bias_reg |
| Type for R-Car bias registers. More... | |
Macros | |
| #define | RCAR_PIN_FLAGS_PULL_SET BIT(0) |
| Pull-up, pull-down, or bias disable is requested. | |
| #define | RCAR_PIN_FLAGS_PUEN BIT(1) |
| Perform on/off control of the pull resistors. | |
| #define | RCAR_PIN_FLAGS_PUD BIT(2) |
| Select pull-up resistor if set, pull-down otherwise. | |
| #define | RCAR_PIN_FLAGS_FUNC_SET BIT(3) |
| Alternate function for the pin is requested. | |
| #define | RCAR_PIN_PULL_UP (RCAR_PIN_FLAGS_PULL_SET | RCAR_PIN_FLAGS_PUEN | RCAR_PIN_FLAGS_PUD) |
| Pull-up enabled. | |
| #define | RCAR_PIN_PULL_DOWN (RCAR_PIN_FLAGS_PULL_SET | RCAR_PIN_FLAGS_PUEN) |
| Pull-down enabled. | |
| #define | RCAR_PIN_PULL_DISABLE RCAR_PIN_FLAGS_PULL_SET |
| Pull disabled. | |
| #define | RCAR_ALTSEL(node_id) |
| Utility macro to get the alternate function ID. | |
| #define | RCAR_HAS_ALTSEL(node_id) |
| Utility macro to check if an alternate function is selected. | |
| #define | RCAR_PIN_FUNC(node_id) |
| Utility macro to initialize R-Car pin function. | |
| #define | RCAR_PIN_FLAGS(node_id) |
| Utility macro to initialize R-Car pin flags (bias and pin mode). | |
| #define | RCAR_DT_PIN(node_id) |
| Utility macro to initialize a R-Car pin. | |
Typedefs | |
| typedef struct pinctrl_soc_pin | pinctrl_soc_pin_t |
| Type for R-Car pin. | |
Renesas R-Car Gen5 pinctrl common definitions.
| #define RCAR_ALTSEL | ( | node_id | ) |
Utility macro to get the alternate function ID.
| node_id | Node identifier. |
| #define RCAR_DT_PIN | ( | node_id | ) |
Utility macro to initialize a R-Car pin.
| node_id | Node identifier. |
| #define RCAR_HAS_ALTSEL | ( | node_id | ) |
Utility macro to check if an alternate function is selected.
| node_id | Node identifier. |
| #define RCAR_PIN_FLAGS | ( | node_id | ) |
Utility macro to initialize R-Car pin flags (bias and pin mode).
| node_id | Node identifier. |
| #define RCAR_PIN_FLAGS_FUNC_SET BIT(3) |
Alternate function for the pin is requested.
| #define RCAR_PIN_FLAGS_PUD BIT(2) |
Select pull-up resistor if set, pull-down otherwise.
| #define RCAR_PIN_FLAGS_PUEN BIT(1) |
Perform on/off control of the pull resistors.
| #define RCAR_PIN_FLAGS_PULL_SET BIT(0) |
Pull-up, pull-down, or bias disable is requested.
| #define RCAR_PIN_FUNC | ( | node_id | ) |
Utility macro to initialize R-Car pin function.
Offsets are defined in dt-bindings pinctrl-rcar-common.h
| node_id | Node identifier. |
| #define RCAR_PIN_PULL_DISABLE RCAR_PIN_FLAGS_PULL_SET |
Pull disabled.
| #define RCAR_PIN_PULL_DOWN (RCAR_PIN_FLAGS_PULL_SET | RCAR_PIN_FLAGS_PUEN) |
Pull-down enabled.
| #define RCAR_PIN_PULL_UP (RCAR_PIN_FLAGS_PULL_SET | RCAR_PIN_FLAGS_PUEN | RCAR_PIN_FLAGS_PUD) |
Pull-up enabled.
| typedef struct pinctrl_soc_pin pinctrl_soc_pin_t |
Type for R-Car pin.