summaryrefslogtreecommitdiff
path: root/src/mainboard/google/corsola
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/corsola')
-rw-r--r--src/mainboard/google/corsola/Kconfig4
-rw-r--r--src/mainboard/google/corsola/display.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/mainboard/google/corsola/Kconfig b/src/mainboard/google/corsola/Kconfig
index 194166c9b6..aa57c9b806 100644
--- a/src/mainboard/google/corsola/Kconfig
+++ b/src/mainboard/google/corsola/Kconfig
@@ -38,8 +38,8 @@ config BOARD_SPECIFIC_OPTIONS
select MAINBOARD_HAS_TPM2 if VBOOT
select MAINBOARD_HAS_NATIVE_VGA_INIT
select HAVE_LINEAR_FRAMEBUFFER
- select DRIVER_ANALOGIX_ANX7625
- select DRIVER_PARADE_PS8640
+ select DRIVER_ANALOGIX_ANX7625 if BOARD_GOOGLE_KINGLER
+ select DRIVER_PARADE_PS8640 if BOARD_GOOGLE_KRABBY || BOARD_GOOGLE_STEELIX
select RTC
config MAINBOARD_DIR
diff --git a/src/mainboard/google/corsola/display.c b/src/mainboard/google/corsola/display.c
index 48ab58e324..2af9fe09b2 100644
--- a/src/mainboard/google/corsola/display.c
+++ b/src/mainboard/google/corsola/display.c
@@ -122,8 +122,8 @@ static const struct edp_bridge ps8640_bridge = {
.post_power_on = bridge_ps8640_post_power_on,
};
-_Static_assert(CONFIG(BOARD_GOOGLE_KINGLER_COMMON) + CONFIG(BOARD_GOOGLE_KRABBY_COMMON) == 1,
- "Exactly one of KINGLER and KRABBY must be set");
+_Static_assert(CONFIG(DRIVER_ANALOGIX_ANX7625) + CONFIG(DRIVER_PARADE_PS8640) == 1,
+ "Exactly one of ANX7625 and PS8640 must be set");
int configure_display(void)
{
@@ -131,9 +131,9 @@ int configure_display(void)
const u8 i2c_bus = I2C0;
const struct edp_bridge *bridge;
- if (CONFIG(BOARD_GOOGLE_KINGLER_COMMON))
+ if (CONFIG(DRIVER_ANALOGIX_ANX7625))
bridge = &anx7625_bridge;
- else /* BOARD_GOOGLE_KRABBY_COMMON */
+ else if (CONFIG(DRIVER_PARADE_PS8640))
bridge = &ps8640_bridge;
printk(BIOS_INFO, "%s: Starting display init\n", __func__);