diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-01-20 22:48:50 +0100 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2021-01-24 12:06:55 +0000 |
commit | 65f81a7b9024290b9b92bda6d1d67ab805fa3986 (patch) | |
tree | 8c3308f799a6f155ea62130ec1c867bca8b5e982 /src/mainboard/google/jecht/romstage.c | |
parent | ac1c9bb5cdca24312c669eaaa908b13202e3bb35 (diff) | |
download | coreboot-65f81a7b9024290b9b92bda6d1d67ab805fa3986.tar.gz coreboot-65f81a7b9024290b9b92bda6d1d67ab805fa3986.tar.bz2 coreboot-65f81a7b9024290b9b92bda6d1d67ab805fa3986.zip |
broadwell: Flatten `mainboard_pre_raminit`
All Broadwell boards only use the `mainboard_pre_raminit` function to
call `mainboard_fill_pei_data` and optionally `mainboard_fill_spd_data`.
Move the declaration and weak definition of `mainboard_fill_spd_data` to
platform code, replace the call to `mainboard_pre_raminit` in romstage.c
with calls to `mainboard_fill_pei_data` and `mainboard_fill_spd_data`,
and delete all other instances of `mainboard_pre_raminit` for Broadwell.
Finally, delete now-empty romstage.c and spd.h files from mainboards.
Change-Id: I3334b20bd7138bb753b996a137ff106e87c6e8a5
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49776
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'src/mainboard/google/jecht/romstage.c')
-rw-r--r-- | src/mainboard/google/jecht/romstage.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mainboard/google/jecht/romstage.c b/src/mainboard/google/jecht/romstage.c index 58db3cf52224..5c978baabbc9 100644 --- a/src/mainboard/google/jecht/romstage.c +++ b/src/mainboard/google/jecht/romstage.c @@ -8,16 +8,8 @@ #include <soc/romstage.h> #include <superio/ite/common/ite.h> #include <superio/ite/it8772f/it8772f.h> -#include <mainboard/google/jecht/spd/spd.h> #include "onboard.h" -void mainboard_pre_raminit(struct romstage_params *rp) -{ - /* Fill out PEI DATA */ - mainboard_fill_pei_data(&rp->pei_data); - mainboard_fill_spd_data(&rp->pei_data); -} - void mainboard_post_raminit(const int s3resume) { if (CONFIG(CHROMEOS)) |