drivers: pinctrl: Add more config options for Ambiq Apollo4

This commits add more configuration options
for Ambiq Apollo4 pinctrl driver.

Signed-off-by: Mateusz Sierszulski <msierszulski@antmicro.com>
This commit is contained in:
Mateusz Sierszulski 2023-07-05 13:00:28 +02:00 committed by Carles Cufí
commit be149593c9
3 changed files with 9 additions and 0 deletions

View file

@ -22,6 +22,7 @@ static void pinctrl_configure_pin(const pinctrl_soc_pin_t *pin)
: AM_HAL_GPIO_PIN_OUTCFG_DISABLE;
pin_config.GP.cfg_b.eDriveStrength = pin->drive_strength;
pin_config.GP.cfg_b.uSlewRate = pin->slew_rate;
pin_config.GP.cfg_b.uNCE = pin->iom_nce;
if (pin->bias_pull_up) {
pin_config.GP.cfg_b.ePullup = pin->ambiq_pull_up_ohms + AM_HAL_GPIO_PIN_PULLUP_1_5K;