drivers: pinctrl: gecko: Fix Series 1 I2C SCL route location config
Implementation erroneously used a mask from the ROUTEPEN register when writing the ROUTELOC register. Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
This commit is contained in:
parent
35d95f934c
commit
4f712fffe0
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ int pinctrl_configure_pins(const pinctrl_soc_pin_t *pins, uint8_t pin_cnt, uintp
|
|||
case GECKO_FUN_I2C_SCL_LOC:
|
||||
#ifdef CONFIG_SOC_GECKO_HAS_INDIVIDUAL_PIN_LOCATION
|
||||
i2c_base->ROUTEPEN |= I2C_ROUTEPEN_SCLPEN;
|
||||
i2c_base->ROUTELOC0 &= ~_I2C_ROUTEPEN_SCLPEN_MASK;
|
||||
i2c_base->ROUTELOC0 &= ~_I2C_ROUTELOC0_SCLLOC_MASK;
|
||||
i2c_base->ROUTELOC0 |= (loc << _I2C_ROUTELOC0_SCLLOC_SHIFT);
|
||||
#elif defined(I2C_ROUTE_SCLPEN)
|
||||
i2c_base->ROUTE = I2C_ROUTE_SDAPEN | I2C_ROUTE_SCLPEN | (loc << 8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue