diff options
author | Jeff Chase <jnchase@google.com> | 2020-06-04 17:24:59 -0400 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-06-14 16:43:05 +0000 |
commit | ad1a835c694954a103e3b023c89bb0892a30497c (patch) | |
tree | 1861be80757850c0d51acc233cbf57174bb8f191 /src | |
parent | 3380faa283cf2c58a9d1c1170549e9a34969eb45 (diff) | |
download | coreboot-ad1a835c694954a103e3b023c89bb0892a30497c.tar.xz |
mb/google/fizz: add variant chipset display init
The Endeavour variant does not have a DisplayPort input so there's no
need to wait for it.
BUG=b:147830399
BRANCH=none
TEST=boot endeavour; check coreboot logs
Signed-off-by: Jeff Chase <jnchase@google.com>
Change-Id: I30c7c47f19a61ce66c6c923864d80870d2761859
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42085
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shelley Chen <shchen@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/fizz/mainboard.c | 12 | ||||
-rw-r--r-- | src/mainboard/google/fizz/variants/baseboard/include/baseboard/variants.h | 2 | ||||
-rw-r--r-- | src/mainboard/google/fizz/variants/endeavour/Makefile.inc | 2 | ||||
-rw-r--r-- | src/mainboard/google/fizz/variants/endeavour/board.c (renamed from src/mainboard/google/fizz/variants/endeavour/nhlt.c) | 5 |
4 files changed, 17 insertions, 4 deletions
diff --git a/src/mainboard/google/fizz/mainboard.c b/src/mainboard/google/fizz/mainboard.c index 7b8905888a..0945b9c8ce 100644 --- a/src/mainboard/google/fizz/mainboard.c +++ b/src/mainboard/google/fizz/mainboard.c @@ -250,10 +250,8 @@ static void wait_for_hpd(gpio_t gpio, long timeout) stopwatch_duration_msecs(&sw)); } -static void mainboard_chip_init(void *chip_info) +void __weak variant_chip_display_init(void) { - const struct pad_config *pads; - size_t num; static const long display_timeout_ms = 3000; /* This is reconfigured back to whatever FSP-S expects by @@ -264,6 +262,14 @@ static void mainboard_chip_init(void *chip_info) if (google_chromeec_wait_for_displayport(display_timeout_ms)) wait_for_hpd(GPIO_DP_HPD, display_timeout_ms); } +} + +static void mainboard_chip_init(void *chip_info) +{ + const struct pad_config *pads; + size_t num; + + variant_chip_display_init(); pads = variant_gpio_table(&num); gpio_configure_pads(pads, num); diff --git a/src/mainboard/google/fizz/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/fizz/variants/baseboard/include/baseboard/variants.h index c72df8f302..cf2292673e 100644 --- a/src/mainboard/google/fizz/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/fizz/variants/baseboard/include/baseboard/variants.h @@ -23,4 +23,6 @@ void variant_nhlt_init(struct nhlt *nhlt); void variant_nhlt_oem_overrides(const char **oem_id, const char **oem_table_id, uint32_t *oem_revision); +void variant_chip_display_init(void); + #endif /* __BASEBOARD_VARIANTS_H__ */ diff --git a/src/mainboard/google/fizz/variants/endeavour/Makefile.inc b/src/mainboard/google/fizz/variants/endeavour/Makefile.inc index 0ad298b5f4..ded8a3572a 100644 --- a/src/mainboard/google/fizz/variants/endeavour/Makefile.inc +++ b/src/mainboard/google/fizz/variants/endeavour/Makefile.inc @@ -1,4 +1,4 @@ bootblock-y += gpio.c ramstage-y += gpio.c -ramstage-y += nhlt.c +ramstage-y += board.c diff --git a/src/mainboard/google/fizz/variants/endeavour/nhlt.c b/src/mainboard/google/fizz/variants/endeavour/board.c index 0395a84d8f..0fdc914cf8 100644 --- a/src/mainboard/google/fizz/variants/endeavour/nhlt.c +++ b/src/mainboard/google/fizz/variants/endeavour/board.c @@ -12,3 +12,8 @@ void variant_nhlt_oem_overrides(const char **oem_id, *oem_table_id = "ENDEAVOUR"; *oem_revision = 0; } + +void variant_chip_display_init(void) +{ + +} |