From 3ece16410f12a03e82251ddd19d13ed4706be5c5 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Wed, 20 Jan 2021 22:29:40 +0100 Subject: mb/google/auron: Drop `variant_romstage_entry` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace it with `mainboard_post_raminit`. Change-Id: I94636c775cee6c14317ecff36972e2d267d28c91 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/49774 Tested-by: build bot (Jenkins) Reviewed-by: Michael Niewöhner --- src/mainboard/google/auron/romstage.c | 8 +------- src/mainboard/google/auron/variant.h | 1 - src/mainboard/google/auron/variants/gandof/variant.c | 2 +- src/mainboard/google/auron/variants/lulu/variant.c | 2 +- src/mainboard/google/auron/variants/samus/variant.c | 2 +- 5 files changed, 4 insertions(+), 11 deletions(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/auron/romstage.c b/src/mainboard/google/auron/romstage.c index a10314e4b4..9de58a86d2 100644 --- a/src/mainboard/google/auron/romstage.c +++ b/src/mainboard/google/auron/romstage.c @@ -7,10 +7,6 @@ #include #include "variant.h" -__weak void variant_romstage_entry(struct romstage_params *rp) -{ -} - void mainboard_pre_raminit(struct romstage_params *rp) { /* Fill out PEI DATA */ @@ -19,8 +15,6 @@ void mainboard_pre_raminit(struct romstage_params *rp) } -void mainboard_post_raminit(struct romstage_params *rp) +__weak void mainboard_post_raminit(struct romstage_params *rp) { - /* Do variant-specific init */ - variant_romstage_entry(rp); } diff --git a/src/mainboard/google/auron/variant.h b/src/mainboard/google/auron/variant.h index 87986a9f1e..380a373f2d 100644 --- a/src/mainboard/google/auron/variant.h +++ b/src/mainboard/google/auron/variant.h @@ -9,7 +9,6 @@ int variant_smbios_data(struct device *dev, int *handle, unsigned long *current); -void variant_romstage_entry(struct romstage_params *rp); void lan_init(void); void mainboard_fill_spd_data(struct pei_data *pei_data); diff --git a/src/mainboard/google/auron/variants/gandof/variant.c b/src/mainboard/google/auron/variants/gandof/variant.c index acf2a2d2cd..0d2f47ecf5 100644 --- a/src/mainboard/google/auron/variants/gandof/variant.c +++ b/src/mainboard/google/auron/variants/gandof/variant.c @@ -24,7 +24,7 @@ int variant_smbios_data(struct device *dev, int *handle, unsigned long *current) return len; } -void variant_romstage_entry(struct romstage_params *rp) +void mainboard_post_raminit(struct romstage_params *rp) { if (rp->power_state->prev_sleep_state != ACPI_S3) google_chromeec_kbbacklight(75); diff --git a/src/mainboard/google/auron/variants/lulu/variant.c b/src/mainboard/google/auron/variants/lulu/variant.c index e8b31745f9..b38807bfcd 100644 --- a/src/mainboard/google/auron/variants/lulu/variant.c +++ b/src/mainboard/google/auron/variants/lulu/variant.c @@ -34,7 +34,7 @@ int variant_smbios_data(struct device *dev, int *handle, unsigned long *current) return len; } -void variant_romstage_entry(struct romstage_params *rp) +void mainboard_post_raminit(struct romstage_params *rp) { if (rp->power_state->prev_sleep_state != ACPI_S3) google_chromeec_kbbacklight(75); diff --git a/src/mainboard/google/auron/variants/samus/variant.c b/src/mainboard/google/auron/variants/samus/variant.c index 12f4e86272..c69e66298c 100644 --- a/src/mainboard/google/auron/variants/samus/variant.c +++ b/src/mainboard/google/auron/variants/samus/variant.c @@ -21,7 +21,7 @@ int variant_smbios_data(struct device *dev, int *handle, unsigned long *current) return 0; } -void variant_romstage_entry(struct romstage_params *rp) +void mainboard_post_raminit(struct romstage_params *rp) { if (rp->power_state->prev_sleep_state != ACPI_S3) google_chromeec_kbbacklight(100); -- cgit v1.2.3