Searched refs:pin_mux (Results 1 – 7 of 7) sorted by relevance
28 uint32_t pin_mux = pins[i]; in pinctrl_configure_pins() local29 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()
29 static void configure_pin_props(uint32_t pin_mux, uint8_t gpio_idx) in configure_pin_props() argument56 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() local112 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 …]
41 uint32_t pin_mux = pin->pin_mux; in configure_pin() local42 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()
178 static int esp32_pin_configure(const uint32_t pin_mux, const uint32_t pin_cfg) in esp32_pin_configure() argument181 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() local302 pin_mux = pins[i].pinmux; in pinctrl_configure_pins()305 ret = esp32_pin_configure(pin_mux, pin_cfg); in pinctrl_configure_pins()
43 #define reg_pin_mux(pin) (*(volatile uint8_t *)((uint32_t)DT_INST_REG_ADDR_BY_NAME(0, pin_mux) + \
24 uint32_t pin_mux; member33 .pin_mux = DT_PROP_BY_IDX(node_id, prop, idx), \
223 reg-names = "pin_mux",