broadwell: Flatten `mainboard_pre_raminit`
commit65f81a7b9024290b9b92bda6d1d67ab805fa3986
authorAngel Pons <th3fanbus@gmail.com>
Wed, 20 Jan 2021 21:48:50 +0000 (20 22:48 +0100)
committerAngel Pons <th3fanbus@gmail.com>
Sun, 24 Jan 2021 12:06:55 +0000 (24 12:06 +0000)
tree8c3308f799a6f155ea62130ec1c867bca8b5e982
parentac1c9bb5cdca24312c669eaaa908b13202e3bb35
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>
src/mainboard/google/auron/romstage.c [deleted file]
src/mainboard/google/auron/variant.h
src/mainboard/google/jecht/romstage.c
src/mainboard/google/jecht/spd/spd.c
src/mainboard/google/jecht/spd/spd.h [deleted file]
src/mainboard/intel/wtm2/romstage.c [deleted file]
src/mainboard/purism/librem_bdw/romstage.c [deleted file]
src/soc/intel/broadwell/include/soc/romstage.h
src/soc/intel/broadwell/romstage.c