soc/intel/snowridge: Move defines to soc/pci_devs.h

Move the defines for PCI register SMM_FEATURE_CONTROL to the header
soc/pci_devs.h like it's done on other server platforms as well.

While on it add BIT1 that will be used in the following commit.

TEST=Not a function change, thus untested.

Change-Id: Ib05bb129f069ab1a6f4752a2dac829b3b7b41ec9
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/91016
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
Patrick Rudolph 2026-01-30 09:46:52 +01:00 committed by Matt DeVillier
commit 44fcbf84b3
2 changed files with 6 additions and 4 deletions

View file

@ -68,6 +68,12 @@
/* Stack U0. */
#define UBOX_DEV_RACU _UBOX0_DEV(0x00, 1)
#define SMM_FEATURE_CONTROL 0x8c
#define SMM_CODE_CHK_EN BIT(2)
#define SMM_FC_CPU_SAVE_EN BIT(1)
#define SMM_FEATURE_CONTROL_LOCK BIT(0)
#define UBOX_DEV_NCDECS _UBOX0_DEV(0x00, 2)
/* Stack U1. */

View file

@ -8,10 +8,6 @@
#include <soc/pm.h>
#include <soc/pmc.h>
#define SMM_FEATURE_CONTROL 0x8c
#define SMM_CODE_CHK_EN (1 << 2)
#define SMM_FEATURE_CONTROL_LOCK (1 << 0)
static void pmc_lockdown_cfg(int chipset_lockdown)
{
pmc_or_mmio32(PMSYNC_TPR_CFG, PCH2CPU_TPR_CFG_LOCK);