summaryrefslogtreecommitdiff
path: root/src/mainboard/pcengines
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-11-14 15:11:00 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-11-19 16:39:00 +0000
commitc1fa44091e95451c592ac6f3852cf71cc490f429 (patch)
tree0974db3a0f285f52ec0ad0e8f551761e40a4f584 /src/mainboard/pcengines
parent977778f9f0f3415f9c36d16c4034d5383683d7f0 (diff)
downloadcoreboot-c1fa44091e95451c592ac6f3852cf71cc490f429.tar.xz
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>
Diffstat (limited to 'src/mainboard/pcengines')
-rw-r--r--src/mainboard/pcengines/apu2/mainboard.c8
1 files changed, 4 insertions, 4 deletions
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);
}
/**********************************************