summaryrefslogtreecommitdiff
path: root/src/mainboard/apple
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-06-24 21:45:13 -0600
committerMartin Roth <martinroth@google.com>2017-07-06 00:19:48 +0000
commitf95911ad3765c0f94db241b0c95a6c0a8c608077 (patch)
tree9ba34618cff9bbc021348458468d1de0feeaa4b2 /src/mainboard/apple
parent1bf55b4070bef2be8259f3153cade27121127b4a (diff)
mainboard/[a-e]: add IS_ENABLED() around Kconfig symbol references
Change-Id: Icca8bac5e67f83dfc5a8f5ef1cb87c6432e0a236 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20342 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/apple')
-rw-r--r--src/mainboard/apple/macbook21/gpio.c12
-rw-r--r--src/mainboard/apple/macbook21/hda_verb.c3
2 files changed, 9 insertions, 6 deletions
diff --git a/src/mainboard/apple/macbook21/gpio.c b/src/mainboard/apple/macbook21/gpio.c
index 53c5c96ebc..19296a77b8 100644
--- a/src/mainboard/apple/macbook21/gpio.c
+++ b/src/mainboard/apple/macbook21/gpio.c
@@ -56,7 +56,8 @@ static const struct pch_gpio_set1 pch_gpio_set1_direction = {
};
static const struct pch_gpio_set1 pch_gpio_set1_level = {
-#if (CONFIG_BOARD_APPLE_MACBOOK11 || CONFIG_BOARD_APPLE_MACBOOK21)
+#if IS_ENABLED(CONFIG_BOARD_APPLE_MACBOOK11) || \
+ IS_ENABLED(CONFIG_BOARD_APPLE_MACBOOK21)
.gpio5 = GPIO_LEVEL_LOW,
#else /* CONFIG_BOARD_APPLE_IMAC52 */
.gpio5 = GPIO_LEVEL_HIGH,
@@ -71,7 +72,8 @@ static const struct pch_gpio_set1 pch_gpio_set1_level = {
static const struct pch_gpio_set1 pch_gpio_set1_invert = {
.gpio1 = GPIO_INVERT,
.gpio7 = GPIO_INVERT,
-#if (CONFIG_BOARD_APPLE_MACBOOK11 || CONFIG_BOARD_APPLE_MACBOOK21)
+#if IS_ENABLED(CONFIG_BOARD_APPLE_MACBOOK11) || \
+ IS_ENABLED(CONFIG_BOARD_APPLE_MACBOOK21)
.gpio13 = GPIO_INVERT,
#endif
};
@@ -80,7 +82,7 @@ static const struct pch_gpio_set1 pch_gpio_set1_blink = {
};
static const struct pch_gpio_set2 pch_gpio_set2_mode = {
-#if CONFIG_BOARD_APPLE_IMAC52
+#if IS_ENABLED(CONFIG_BOARD_APPLE_IMAC52)
.gpio35 = GPIO_MODE_GPIO,
#endif
.gpio38 = GPIO_MODE_GPIO,
@@ -89,7 +91,7 @@ static const struct pch_gpio_set2 pch_gpio_set2_mode = {
};
static const struct pch_gpio_set2 pch_gpio_set2_direction = {
-#if CONFIG_BOARD_APPLE_IMAC52
+#if IS_ENABLED(CONFIG_BOARD_APPLE_IMAC52)
.gpio35 = GPIO_DIR_OUTPUT,
#endif
.gpio38 = GPIO_DIR_OUTPUT,
@@ -98,7 +100,7 @@ static const struct pch_gpio_set2 pch_gpio_set2_direction = {
};
static const struct pch_gpio_set2 pch_gpio_set2_level = {
-#if CONFIG_BOARD_APPLE_IMAC52
+#if IS_ENABLED(CONFIG_BOARD_APPLE_IMAC52)
.gpio35 = GPIO_LEVEL_LOW,
#endif
.gpio38 = GPIO_LEVEL_HIGH,
diff --git a/src/mainboard/apple/macbook21/hda_verb.c b/src/mainboard/apple/macbook21/hda_verb.c
index e0fc92edbd..9ae5cf8871 100644
--- a/src/mainboard/apple/macbook21/hda_verb.c
+++ b/src/mainboard/apple/macbook21/hda_verb.c
@@ -19,7 +19,8 @@
const u32 cim_verb_data[] = {
/* coreboot specific header */
0x83847680, /* Codec Vendor / Device ID: SigmaTel STAC9221 A1 */
-#if CONFIG_BOARD_APPLE_MACBOOK11 || CONFIG_BOARD_APPLE_MACBOOK21
+#if IS_ENABLED(CONFIG_BOARD_APPLE_MACBOOK11) || \
+ IS_ENABLED(CONFIG_BOARD_APPLE_MACBOOK21)
0x106b2200, /* Subsystem ID */
0x0000000B, /* Number of 4 dword sets */