aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/jasperlake/bootblock/pch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/jasperlake/bootblock/pch.c')
-rw-r--r--src/soc/intel/jasperlake/bootblock/pch.c30
1 files changed, 3 insertions, 27 deletions
diff --git a/src/soc/intel/jasperlake/bootblock/pch.c b/src/soc/intel/jasperlake/bootblock/pch.c
index b0646018c6..c98fdc5fb6 100644
--- a/src/soc/intel/jasperlake/bootblock/pch.c
+++ b/src/soc/intel/jasperlake/bootblock/pch.c
@@ -12,12 +12,6 @@
* GNU General Public License for more details.
*/
-/*
- * This file is created based on Intel Tiger Lake Processor PCH Datasheet
- * Document number: 575857
- * Chapter number: 2, 3, 4, 27, 28
- */
-
#include <console/console.h>
#include <console/post_codes.h>
#include <device/mmio.h>
@@ -39,8 +33,8 @@
#include <soc/pcr_ids.h>
#include <soc/pm.h>
-#define PCR_PSF3_TO_SHDW_PMC_REG_BASE_TGP 0x1100
-#define PCR_PSF3_TO_SHDW_PMC_REG_BASE_JSP 0xA00
+#define PCR_PSF3_TO_SHDW_PMC_REG_BASE 0xA00
+
#define PCR_PSFX_TO_SHDW_BAR0 0
#define PCR_PSFX_TO_SHDW_BAR1 0x4
#define PCR_PSFX_TO_SHDW_BAR2 0x8
@@ -60,20 +54,6 @@
#define PCR_DMI_LPCIOD 0x2770
#define PCR_DMI_LPCIOE 0x2774
-static uint32_t get_pmc_reg_base(void)
-{
- uint8_t pch_series;
-
- pch_series = get_pch_series();
-
- if (pch_series == PCH_TGP)
- return PCR_PSF3_TO_SHDW_PMC_REG_BASE_TGP;
- else if (pch_series == PCH_JSP)
- return PCR_PSF3_TO_SHDW_PMC_REG_BASE_JSP;
- else
- return 0;
-}
-
static void soc_config_pwrmbase(void)
{
uint32_t reg32;
@@ -116,11 +96,7 @@ void bootblock_pch_early_init(void)
static void soc_config_acpibase(void)
{
uint32_t pmc_reg_value;
- uint32_t pmc_base_reg;
-
- pmc_base_reg = get_pmc_reg_base();
- if (!pmc_base_reg)
- die_with_post_code(POST_HW_INIT_FAILURE, "Invalid PMC base address\n");
+ uint32_t pmc_base_reg = PCR_PSF3_TO_SHDW_PMC_REG_BASE;
pmc_reg_value = pcr_read32(PID_PSF3, pmc_base_reg + PCR_PSFX_TO_SHDW_BAR4);