mb/pcengines/apu2: Use IS_ENABLED(CONFIG_APU2_PINMUX_{GPIO*,UART_*})
Change-Id: Ie5f73453a8cc12be5f18d8e7f0462ce3f38bb9d8 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/29585 Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
977778f9f0
commit
c1fa44091e
|
@ -142,16 +142,16 @@ static void config_gpio_mux(void)
|
|||
uart = dev_find_slot_pnp(SIO_PORT, NCT5104D_SP3);
|
||||
gpio = dev_find_slot_pnp(SIO_PORT, NCT5104D_GPIO0);
|
||||
if (uart)
|
||||
uart->enabled = CONFIG_APU2_PINMUX_UART_C;
|
||||
uart->enabled = IS_ENABLED(CONFIG_APU2_PINMUX_UART_C);
|
||||
if (gpio)
|
||||
gpio->enabled = CONFIG_APU2_PINMUX_GPIO0;
|
||||
gpio->enabled = IS_ENABLED(CONFIG_APU2_PINMUX_GPIO0);
|
||||
|
||||
uart = dev_find_slot_pnp(SIO_PORT, NCT5104D_SP4);
|
||||
gpio = dev_find_slot_pnp(SIO_PORT, NCT5104D_GPIO1);
|
||||
if (uart)
|
||||
uart->enabled = CONFIG_APU2_PINMUX_UART_D;
|
||||
uart->enabled = IS_ENABLED(CONFIG_APU2_PINMUX_UART_D);
|
||||
if (gpio)
|
||||
gpio->enabled = CONFIG_APU2_PINMUX_GPIO1;
|
||||
gpio->enabled = IS_ENABLED(CONFIG_APU2_PINMUX_GPIO1);
|
||||
}
|
||||
|
||||
/**********************************************
|
||||
|
|
Loading…
Reference in New Issue