Lines Matching +full:location +full:- +full:rts

5  * SPDX-License-Identifier: Apache-2.0
72 base->ROUTEPEN |= USART_ROUTEPEN_RXPEN; in pinctrl_configure_pins()
73 base->ROUTELOC0 &= ~_USART_ROUTELOC0_RXLOC_MASK; in pinctrl_configure_pins()
74 base->ROUTELOC0 |= (loc << _USART_ROUTELOC0_RXLOC_SHIFT); in pinctrl_configure_pins()
78 base->ROUTEPEN |= USART_ROUTEPEN_TXPEN; in pinctrl_configure_pins()
79 base->ROUTELOC0 &= ~_USART_ROUTELOC0_TXLOC_MASK; in pinctrl_configure_pins()
80 base->ROUTELOC0 |= (loc << _USART_ROUTELOC0_TXLOC_SHIFT); in pinctrl_configure_pins()
84 base->ROUTEPEN |= USART_ROUTEPEN_RTSPEN; in pinctrl_configure_pins()
85 base->ROUTELOC1 &= ~_USART_ROUTELOC1_RTSLOC_MASK; in pinctrl_configure_pins()
86 base->ROUTELOC1 |= (loc << _USART_ROUTELOC1_RTSLOC_SHIFT); in pinctrl_configure_pins()
90 base->ROUTEPEN |= USART_ROUTEPEN_CTSPEN; in pinctrl_configure_pins()
91 base->ROUTELOC1 &= ~_USART_ROUTELOC1_CTSLOC_MASK; in pinctrl_configure_pins()
92 base->ROUTELOC1 |= (loc << _USART_ROUTELOC1_CTSLOC_SHIFT); in pinctrl_configure_pins()
96 lebase->ROUTEPEN |= LEUART_ROUTEPEN_RXPEN; in pinctrl_configure_pins()
97 lebase->ROUTELOC0 &= ~_LEUART_ROUTELOC0_RXLOC_MASK; in pinctrl_configure_pins()
98 lebase->ROUTELOC0 |= (loc << _LEUART_ROUTELOC0_RXLOC_SHIFT); in pinctrl_configure_pins()
102 lebase->ROUTEPEN |= LEUART_ROUTEPEN_TXPEN; in pinctrl_configure_pins()
103 lebase->ROUTELOC0 &= ~_LEUART_ROUTELOC0_TXLOC_MASK; in pinctrl_configure_pins()
104 lebase->ROUTELOC0 |= (loc << _LEUART_ROUTELOC0_TXLOC_SHIFT); in pinctrl_configure_pins()
110 base->ROUTEPEN = USART_ROUTEPEN_RXPEN | USART_ROUTEPEN_TXPEN; in pinctrl_configure_pins()
111 base->ROUTELOC0 = (loc << _USART_ROUTELOC0_TXLOC_SHIFT) | in pinctrl_configure_pins()
113 base->ROUTELOC1 = _USART_ROUTELOC1_RESETVALUE; in pinctrl_configure_pins()
115 /* For olders SOCs with only one pin location */ in pinctrl_configure_pins()
116 base->ROUTE = USART_ROUTE_RXPEN | USART_ROUTE_TXPEN | (loc << 8); in pinctrl_configure_pins()
120 /* Configure HW flow control (RTS, CTS) */ in pinctrl_configure_pins()
121 if (config->hw_flowcontrol) { in pinctrl_configure_pins()
122 GPIO_PinModeSet(config->pin_rts.port, in pinctrl_configure_pins()
123 config->pin_rts.pin, in pinctrl_configure_pins()
124 config->pin_rts.mode, in pinctrl_configure_pins()
125 config->pin_rts.out); in pinctrl_configure_pins()
126 GPIO_PinModeSet(config->pin_cts.port, in pinctrl_configure_pins()
127 config->pin_cts.pin, in pinctrl_configure_pins()
128 config->pin_cts.mode, in pinctrl_configure_pins()
129 config->pin_cts.out); in pinctrl_configure_pins()
131 config->base->ROUTEPEN = in pinctrl_configure_pins()
135 config->base->ROUTELOC1 = in pinctrl_configure_pins()
136 (config->loc_rts << _USART_ROUTELOC1_RTSLOC_SHIFT) | in pinctrl_configure_pins()
137 (config->loc_cts << _USART_ROUTELOC1_CTSLOC_SHIFT); in pinctrl_configure_pins()
204 base->ROUTEPEN |= USART_ROUTEPEN_CLKPEN; in pinctrl_configure_pins()
205 base->ROUTELOC0 &= ~_USART_ROUTELOC0_CLKLOC_MASK; in pinctrl_configure_pins()
206 base->ROUTELOC0 |= (loc << _USART_ROUTELOC0_CLKLOC_SHIFT); in pinctrl_configure_pins()
210 base->ROUTEPEN |= USART_ROUTEPEN_TXPEN; in pinctrl_configure_pins()
211 base->ROUTELOC0 &= ~_USART_ROUTELOC0_TXLOC_MASK; in pinctrl_configure_pins()
212 base->ROUTELOC0 |= (loc << _USART_ROUTELOC0_TXLOC_SHIFT); in pinctrl_configure_pins()
216 base->ROUTEPEN |= USART_ROUTEPEN_RXPEN; in pinctrl_configure_pins()
217 base->ROUTELOC0 &= ~_USART_ROUTELOC0_RXLOC_MASK; in pinctrl_configure_pins()
218 base->ROUTELOC0 |= (loc << _USART_ROUTELOC0_RXLOC_SHIFT); in pinctrl_configure_pins()
222 base->ROUTEPEN |= USART_ROUTEPEN_CSPEN; in pinctrl_configure_pins()
223 base->ROUTELOC0 &= ~_USART_ROUTELOC0_CSLOC_MASK; in pinctrl_configure_pins()
224 base->ROUTELOC0 |= (loc << _USART_ROUTELOC0_CSLOC_SHIFT); in pinctrl_configure_pins()
246 i2c_base->ROUTEPEN |= I2C_ROUTEPEN_SDAPEN; in pinctrl_configure_pins()
247 i2c_base->ROUTELOC0 &= ~_I2C_ROUTELOC0_SDALOC_MASK; in pinctrl_configure_pins()
248 i2c_base->ROUTELOC0 |= (loc << _I2C_ROUTELOC0_SDALOC_SHIFT); in pinctrl_configure_pins()
250 i2c_base->ROUTE = I2C_ROUTE_SDAPEN | I2C_ROUTE_SCLPEN | (loc << 8); in pinctrl_configure_pins()
256 i2c_base->ROUTEPEN |= I2C_ROUTEPEN_SCLPEN; in pinctrl_configure_pins()
257 i2c_base->ROUTELOC0 &= ~_I2C_ROUTELOC0_SCLLOC_MASK; in pinctrl_configure_pins()
258 i2c_base->ROUTELOC0 |= (loc << _I2C_ROUTELOC0_SCLLOC_SHIFT); in pinctrl_configure_pins()
260 i2c_base->ROUTE = I2C_ROUTE_SDAPEN | I2C_ROUTE_SCLPEN | (loc << 8); in pinctrl_configure_pins()
267 return -ENOTSUP; in pinctrl_configure_pins()