Home
last modified time | relevance | path

Searched refs:pin_mux (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/drivers/pinctrl/
Dpinctrl_lpc_iocon.c28 uint32_t pin_mux = pins[i]; in pinctrl_configure_pins() local
29 uint32_t offset = OFFSET(pin_mux); in pinctrl_configure_pins()
32 switch (TYPE(pin_mux)) { in pinctrl_configure_pins()
34 pin_mux &= Z_PINCTRL_IOCON_D_PIN_MASK; in pinctrl_configure_pins()
37 pin_mux &= Z_PINCTRL_IOCON_I_PIN_MASK; in pinctrl_configure_pins()
40 pin_mux &= Z_PINCTRL_IOCON_A_PIN_MASK; in pinctrl_configure_pins()
44 __ASSERT_NO_MSG(TYPE(pin_mux) <= IOCON_TYPE_A); in pinctrl_configure_pins()
47 *(iocon + offset) = pin_mux; in pinctrl_configure_pins()
Dpinctrl_mci_io_mux.c29 static void configure_pin_props(uint32_t pin_mux, uint8_t gpio_idx) in configure_pin_props() argument
56 set = IOMUX_PAD_GET_PULL(pin_mux) << ((gpio_idx & 0xF) << 1); in configure_pin_props()
60 set = IOMUX_PAD_GET_SLEW(pin_mux) << ((gpio_idx & 0xF) << 1); in configure_pin_props()
65 set = (IOMUX_PAD_GET_SLEEP_FORCE_EN(pin_mux) << (gpio_idx & 0x1F)); in configure_pin_props()
67 set = (IOMUX_PAD_GET_SLEEP_FORCE_VAL(pin_mux) << (gpio_idx & 0x1F)); in configure_pin_props()
111 uint32_t pin_mux = pins[i]; in pinctrl_configure_pins() local
112 uint8_t gpio_idx = IOMUX_GET_GPIO_IDX(pin_mux); in pinctrl_configure_pins()
113 uint8_t type = IOMUX_GET_TYPE(pin_mux); in pinctrl_configure_pins()
123 flexcomm_reg += IOMUX_GET_FLEXCOMM_IDX(pin_mux); in pinctrl_configure_pins()
125 (0x1 << IOMUX_GET_FLEXCOMM_BIT(pin_mux)); in pinctrl_configure_pins()
[all …]
Dpinctrl_numaker.c41 uint32_t pin_mux = pin->pin_mux; in configure_pin() local
42 uint8_t pin_index = PIN_INDEX(pin_mux); in configure_pin()
43 uint8_t port_index = PORT_INDEX(pin_mux); in configure_pin()
44 uint32_t mfp_cfg = MFP_CFG(pin_mux); in configure_pin()
Dpinctrl_esp32.c178 static int esp32_pin_configure(const uint32_t pin_mux, const uint32_t pin_cfg) in esp32_pin_configure() argument
181 uint32_t pin_num = ESP32_PIN_NUM(pin_mux); in esp32_pin_configure()
182 uint32_t sig_in = ESP32_PIN_SIGI(pin_mux); in esp32_pin_configure()
183 uint32_t sig_out = ESP32_PIN_SIGO(pin_mux); in esp32_pin_configure()
296 uint32_t pin_mux, pin_cfg; in pinctrl_configure_pins() local
302 pin_mux = pins[i].pinmux; in pinctrl_configure_pins()
305 ret = esp32_pin_configure(pin_mux, pin_cfg); in pinctrl_configure_pins()
Dpinctrl_b91.c43 #define reg_pin_mux(pin) (*(volatile uint8_t *)((uint32_t)DT_INST_REG_ADDR_BY_NAME(0, pin_mux) + \
/Zephyr-latest/soc/nuvoton/numaker/common/
Dpinctrl_soc.h24 uint32_t pin_mux; member
33 .pin_mux = DT_PROP_BY_IDX(node_id, prop, idx), \
/Zephyr-latest/dts/riscv/telink/
Dtelink_b91.dtsi223 reg-names = "pin_mux",