sb/intel/bd82x6x/pch.c: Extract common functions
commitb44923969c4794d63c0adda6a54ea5471447c497
authorAngel Pons <th3fanbus@gmail.com>
Wed, 6 Jan 2021 00:56:14 +0000 (6 01:56 +0100)
committerLean Sheng Tan <sheng.tan@9elements.com>
Tue, 19 Dec 2023 15:47:40 +0000 (19 15:47 +0000)
tree1104079b17aee5f26e4da7f796597326631c42ff
parentf733703a61d291ec300a233bed03c27d53ae6b1f
sb/intel/bd82x6x/pch.c: Extract common functions

PCH identification functions and `pch_iobp_update` are used in multiple
stages. Move them out of `pch.c` to drop some ugly preprocessor usage.
Subsequent commits will use `pch_iobp_update` in romstage as well.

Change-Id: I8d33338a4f74fd03c8f99f8fcece99b63c28adab
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79624
Reviewed-by: Naresh <naresh.solanki.2011@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/southbridge/intel/bd82x6x/Makefile.inc
src/southbridge/intel/bd82x6x/common.c [new file with mode: 0644]
src/southbridge/intel/bd82x6x/pch.c
src/southbridge/intel/bd82x6x/pch.h