Lines Matching +full:use +full:- +full:case
4 * SPDX-License-Identifier: Apache-2.0
32 volatile uint32_t *pull_reg = &soc_ctrl->PAD_PU_PD_EN0; in configure_pin_props()
33 volatile uint32_t *slew_reg = &soc_ctrl->SR_CONFIG0; in configure_pin_props()
34 volatile uint32_t *sleep_force_en = &soc_ctrl->PAD_SLP_EN0; in configure_pin_props()
35 volatile uint32_t *sleep_force_val = &soc_ctrl->PAD_SLP_VAL0; in configure_pin_props()
37 /* GPIO 22-27 use always on configuration registers */ in configure_pin_props()
39 pull_reg = (&aon_soc_ciu->PAD_PU_PD_EN1 - 1); in configure_pin_props()
40 slew_reg = (&aon_soc_ciu->SR_CONFIG1 - 1); in configure_pin_props()
41 sleep_force_en = &aon_soc_ciu->PAD_SLP_EN0; in configure_pin_props()
42 sleep_force_val = &aon_soc_ciu->PAD_SLP_VAL0; in configure_pin_props()
45 * Use bit shifting as opposed to division in configure_pin_props()
51 /* Set pull-up/pull-down */ in configure_pin_props()
52 /* Use mask and bitshift here as opposed to modulo and multiplication. in configure_pin_props()
74 volatile uint32_t *flexcomm_reg = &mci_iomux->FC0; in select_gpio_mode()
80 mci_iomux->FSEL &= ~IOMUX_GET_FSEL_CLR_MASK(gpio_setting); in select_gpio_mode()
83 mci_iomux->C_TIMER_IN &= in select_gpio_mode()
85 mci_iomux->C_TIMER_OUT &= in select_gpio_mode()
90 mci_iomux->SC_TIMER &= in select_gpio_mode()
94 mci_iomux->SC_TIMER &= in select_gpio_mode()
98 mci_iomux->S_GPIO &= ~(0x1 << (gpio_idx - 32)); in select_gpio_mode()
109 flexcomm_reg = &mci_iomux->FC0; in pinctrl_configure_pins()
110 iomux_en_reg = &soc_ctrl->MCI_IOMUX_EN0; in pinctrl_configure_pins()
122 case IOMUX_FLEXCOMM: in pinctrl_configure_pins()
127 case IOMUX_FSEL: in pinctrl_configure_pins()
128 mci_iomux->FSEL |= in pinctrl_configure_pins()
131 case IOMUX_CTIMER_IN: in pinctrl_configure_pins()
132 mci_iomux->C_TIMER_IN |= in pinctrl_configure_pins()
135 case IOMUX_CTIMER_OUT: in pinctrl_configure_pins()
136 mci_iomux->C_TIMER_OUT |= in pinctrl_configure_pins()
139 case IOMUX_SCTIMER_IN: in pinctrl_configure_pins()
140 mci_iomux->SC_TIMER |= in pinctrl_configure_pins()
143 case IOMUX_SCTIMER_OUT: in pinctrl_configure_pins()
144 mci_iomux->SC_TIMER |= in pinctrl_configure_pins()
147 case IOMUX_SGPIO: in pinctrl_configure_pins()
148 mci_iomux->S_GPIO |= (0x1 << (gpio_idx - 32)); in pinctrl_configure_pins()
150 case IOMUX_GPIO: in pinctrl_configure_pins()
152 mci_iomux->GPIO_GRP1 |= (0x1 << (gpio_idx - 32)); in pinctrl_configure_pins()
154 mci_iomux->GPIO_GRP0 |= (0x1 << gpio_idx); in pinctrl_configure_pins()
157 case IOMUX_AON: in pinctrl_configure_pins()
162 return -ENOTSUP; in pinctrl_configure_pins()
167 /* GPIO 22-27 use always on soc controller */ in pinctrl_configure_pins()
168 iomux_en_reg = &aon_soc_ciu->MCI_IOMUX_EN0; in pinctrl_configure_pins()