soc/intel/pantherlake: Remove soc_info.[hc] interface
commitf9e877ea2173696028ded8e82fbe51e13085865b
authorJeremy Compostella <jeremy.compostella@intel.com>
Tue, 1 Oct 2024 18:01:34 +0000 (1 11:01 -0700)
committerJérémy Compostella <jeremy.compostella@intel.com>
Thu, 3 Oct 2024 16:17:11 +0000 (3 16:17 +0000)
treef642c7aec20851003aecded41799f8516116cb6e
parentb9c0056b2dc4f1f5658d49edf8d8a43b1bcb9536
soc/intel/pantherlake: Remove soc_info.[hc] interface

This commit removes the unnecessary layer provided by soc_info.[hc].
It was providing an abstraction which only was resulting in extra
function calls without any added value as the returned constants are
well identified and could be used directly. More importantly, and this
is the actual selling point in my opinion, this extra indirection was
preventing the compiler from detecting array overflows.

BUG=348678529
TEST=Build is successful

Change-Id: Iea26d962748116fa84afdb4afcba1098a64b6986
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84616
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
src/soc/intel/pantherlake/Makefile.mk
src/soc/intel/pantherlake/cpu.c
src/soc/intel/pantherlake/elog.c
src/soc/intel/pantherlake/include/soc/soc_info.h [deleted file]
src/soc/intel/pantherlake/pcie_rp.c
src/soc/intel/pantherlake/romstage/fsp_params.c
src/soc/intel/pantherlake/soc_info.c [deleted file]