From c1fa44091e95451c592ac6f3852cf71cc490f429 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Wed, 14 Nov 2018 15:11:00 +0100 Subject: mb/pcengines/apu2: Use IS_ENABLED(CONFIG_APU2_PINMUX_{GPIO*,UART_*}) Change-Id: Ie5f73453a8cc12be5f18d8e7f0462ce3f38bb9d8 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/29585 Reviewed-by: Marshall Dawson Tested-by: build bot (Jenkins) --- src/mainboard/pcengines/apu2/mainboard.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mainboard/pcengines') diff --git a/src/mainboard/pcengines/apu2/mainboard.c b/src/mainboard/pcengines/apu2/mainboard.c index 99ddf80373..35385c20ce 100644 --- a/src/mainboard/pcengines/apu2/mainboard.c +++ b/src/mainboard/pcengines/apu2/mainboard.c @@ -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); } /********************************************** -- cgit v1.2.3