summaryrefslogtreecommitdiff
path: root/src/soc/intel/cannonlake/bootblock
diff options
context:
space:
mode:
authorMichael Niewöhner <foss@mniewoehner.de>2021-01-23 13:57:03 +0100
committerNico Huber <nico.h@gmx.de>2021-01-24 14:03:33 +0000
commit89fe2f34b48dfa053de4c82771f078a136ffff20 (patch)
treee83c0f9bfa3ca5af7449184fa5dfb043d9b2d53c /src/soc/intel/cannonlake/bootblock
parentd0d528a92a3605accabc1bfe6ddd35fab232c29a (diff)
soc/intel/cnl: use Kconfig to determine PCH type
We already know the PCH type at build time, so there is no need to do runtime detection. Thus, use Kconfig and drop `get_pch_series()`. Change-Id: I470871af5f5954e91a8135fddf4a2297a514d740 Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49874 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/cannonlake/bootblock')
-rw-r--r--src/soc/intel/cannonlake/bootblock/pch.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/soc/intel/cannonlake/bootblock/pch.c b/src/soc/intel/cannonlake/bootblock/pch.c
index a05e56549c..f4208450b3 100644
--- a/src/soc/intel/cannonlake/bootblock/pch.c
+++ b/src/soc/intel/cannonlake/bootblock/pch.c
@@ -43,16 +43,10 @@
static uint32_t get_pmc_reg_base(void)
{
- uint8_t pch_series;
-
- pch_series = get_pch_series();
-
- if (pch_series == PCH_H)
+ if (CONFIG(SOC_INTEL_CANNONLAKE_PCH_H))
return PCR_PSF3_TO_SHDW_PMC_REG_BASE_CNP_H;
- else if (pch_series == PCH_LP)
- return PCR_PSF3_TO_SHDW_PMC_REG_BASE_CNP_LP;
else
- return 0;
+ return PCR_PSF3_TO_SHDW_PMC_REG_BASE_CNP_LP;
}
static void soc_config_pwrmbase(void)