Lines Matching full:reg
110 uint32_t reg; in pinctrl_emsdp_set() local
117 reg = sys_read32(mux_regs + PMOD_MUX_CTRL); in pinctrl_emsdp_set()
119 reg = sys_read32(mux_regs + ARDUINO_MUX_CTRL); in pinctrl_emsdp_set()
124 reg &= ~(MUX_SEL0_MASK); in pinctrl_emsdp_set()
127 reg |= PM_A_CFG0_GPIO; in pinctrl_emsdp_set()
130 reg |= PM_A_CFG0_UART1a; in pinctrl_emsdp_set()
133 reg |= PM_A_CFG0_UART1b; in pinctrl_emsdp_set()
136 reg |= PM_A_CFG0_SPI; in pinctrl_emsdp_set()
139 reg |= PM_A_CFG0_I2C; in pinctrl_emsdp_set()
142 reg |= PM_A_CFG0_PWM1; in pinctrl_emsdp_set()
145 reg |= PM_A_CFG0_PWM2; in pinctrl_emsdp_set()
152 reg &= ~(MUX_SEL2_MASK); in pinctrl_emsdp_set()
155 reg |= PM_B_CFG0_GPIO; in pinctrl_emsdp_set()
158 reg |= PM_B_CFG0_UART2a; in pinctrl_emsdp_set()
161 reg |= PM_A_CFG0_UART1b; in pinctrl_emsdp_set()
164 reg |= PM_B_CFG0_SPI; in pinctrl_emsdp_set()
167 reg |= PM_B_CFG0_I2C; in pinctrl_emsdp_set()
170 reg |= PM_B_CFG0_PWM1; in pinctrl_emsdp_set()
173 reg |= PM_B_CFG0_PWM2; in pinctrl_emsdp_set()
180 reg &= ~(MUX_SEL4_MASK); in pinctrl_emsdp_set()
183 reg |= PM_C_CFG0_GPIO; in pinctrl_emsdp_set()
186 reg |= PM_C_CFG0_UART3a; in pinctrl_emsdp_set()
189 reg |= PM_C_CFG0_UART3b; in pinctrl_emsdp_set()
192 reg |= PM_C_CFG0_SPI; in pinctrl_emsdp_set()
195 reg |= PM_C_CFG0_I2C; in pinctrl_emsdp_set()
198 reg |= PM_C_CFG0_PWM1; in pinctrl_emsdp_set()
201 reg |= PM_C_CFG0_PWM2; in pinctrl_emsdp_set()
209 reg &= ~MUX_SEL0_MASK; in pinctrl_emsdp_set()
211 reg |= ARDUINO_CFG0_GPIO; in pinctrl_emsdp_set()
213 reg |= ARDUINO_CFG0_UART; in pinctrl_emsdp_set()
218 reg &= ~MUX_SEL1_MASK; in pinctrl_emsdp_set()
220 reg |= ARDUINO_CFG1_GPIO; in pinctrl_emsdp_set()
222 reg |= ARDUINO_CFG1_PWM; in pinctrl_emsdp_set()
227 reg &= ~MUX_SEL2_MASK; in pinctrl_emsdp_set()
229 reg |= ARDUINO_CFG2_GPIO; in pinctrl_emsdp_set()
231 reg |= ARDUINO_CFG2_PWM; in pinctrl_emsdp_set()
236 reg &= ~MUX_SEL3_MASK; in pinctrl_emsdp_set()
238 reg |= ARDUINO_CFG3_GPIO; in pinctrl_emsdp_set()
240 reg |= ARDUINO_CFG3_PWM; in pinctrl_emsdp_set()
245 reg &= ~MUX_SEL4_MASK; in pinctrl_emsdp_set()
247 reg |= ARDUINO_CFG4_GPIO; in pinctrl_emsdp_set()
249 reg |= ARDUINO_CFG4_PWM; in pinctrl_emsdp_set()
256 reg &= ~MUX_SEL5_MASK; in pinctrl_emsdp_set()
258 reg |= ARDUINO_CFG5_GPIO; in pinctrl_emsdp_set()
260 reg |= ARDUINO_CFG5_SPI; in pinctrl_emsdp_set()
262 reg |= ARDUINO_CFG5_PWM1; in pinctrl_emsdp_set()
267 reg &= ~MUX_SEL6_MASK; in pinctrl_emsdp_set()
269 reg |= ARDUINO_CFG6_GPIO; in pinctrl_emsdp_set()
271 reg |= ARDUINO_CFG6_I2C; in pinctrl_emsdp_set()
279 sys_write32(reg, mux_regs + PMOD_MUX_CTRL); in pinctrl_emsdp_set()
281 sys_write32(reg, mux_regs + ARDUINO_MUX_CTRL); in pinctrl_emsdp_set()
287 int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt, uintptr_t reg) in pinctrl_configure_pins() argument
289 ARG_UNUSED(reg); in pinctrl_configure_pins()