soc/intel: Move pmc_soc_set_afterg3_en() to pmutil.c
commit505e383ccbe4cec2483341833e92ea8c1d9330e8
authorAngel Pons <th3fanbus@gmail.com>
Sat, 17 Apr 2021 11:02:37 +0000 (17 13:02 +0200)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 21 Apr 2021 09:17:40 +0000 (21 09:17 +0000)
treec37af425b5babc4db89b05f461dcd7418572bb69
parentf643b63c4dcd74c3de0c1d54de8b740d831d6d73
soc/intel: Move pmc_soc_set_afterg3_en() to pmutil.c

Commit 2c26108208e4aa48de21be576ab6cad9286d7934 moved this function to
pmutil.c for Tiger Lake. Do this to all other platforms for consistency.
For Skylake, __SIMPLE_DEVICE__ preprocessor guards are no longer needed.

With this change, pmc.c is only needed in ramstage. Adjust Makefile.inc
accordingly, and drop ENV_RAMSTAGE guards from Skylake.

Change-Id: I424eb359c898f155659d085b888410b6bb58b9ed
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52464
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
18 files changed:
src/soc/intel/apollolake/Makefile.inc
src/soc/intel/apollolake/pmc.c
src/soc/intel/apollolake/pmutil.c
src/soc/intel/cannonlake/Makefile.inc
src/soc/intel/cannonlake/pmc.c
src/soc/intel/cannonlake/pmutil.c
src/soc/intel/elkhartlake/Makefile.inc
src/soc/intel/elkhartlake/pmc.c
src/soc/intel/elkhartlake/pmutil.c
src/soc/intel/icelake/Makefile.inc
src/soc/intel/icelake/pmc.c
src/soc/intel/icelake/pmutil.c
src/soc/intel/jasperlake/Makefile.inc
src/soc/intel/jasperlake/pmc.c
src/soc/intel/jasperlake/pmutil.c
src/soc/intel/skylake/Makefile.inc
src/soc/intel/skylake/pmc.c
src/soc/intel/skylake/pmutil.c