soc/intel/apollolake: Add PMC macros for common code usage
This patch adds new macros (i.e. SUS Power Failure and Power Failure) from the APL EDS vol 1 (doc 569262) to be able to implement common code API to clear the power failure status bits. Note: as per the EDS those newly added power management failure bits are RO and shouldn't change any functionality of the existing APL SoC code. The reason behind adding those macro definitions is to fix the compilation issue due to code change targeted for the Intel SKL and Xeon-SP. Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I0bbf11ada2b2f8735173be69ad157b8055021126 Reviewed-on: https://review.coreboot.org/c/coreboot/+/72130 Reviewed-by: Sean Rhodes <sean@starlabs.systems> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
6d03f8986d
commit
84d812cafe
|
@ -156,15 +156,18 @@
|
|||
#define COLD_BOOT_STS (1 << 27)
|
||||
#define COLD_RESET_STS (1 << 26)
|
||||
#define WARM_RESET_STS (1 << 25)
|
||||
#define GLOBAL_RESET_STS (1 << 24)
|
||||
#define GBL_RST_STS (1 << 24)
|
||||
#define SRS (1 << 20)
|
||||
#define MS4V (1 << 18)
|
||||
#define SUS_PWR_FLR (1 << 16)
|
||||
#define PWR_FLR (1 << 14)
|
||||
#define RPS (1 << 2)
|
||||
#define SLEEP_AFTER_POWER_FAIL (1 << 0)
|
||||
#define GEN_PMCON1_CLR1_BITS (COLD_BOOT_STS | COLD_RESET_STS | \
|
||||
WARM_RESET_STS | GLOBAL_RESET_STS | \
|
||||
WARM_RESET_STS | GBL_RST_STS | \
|
||||
SRS | MS4V)
|
||||
#define GEN_PMCON2 0x1024
|
||||
#define GEN_PMCON_B GEN_PMCON2
|
||||
#define LPC_LPB_CLK_CTRL ((1 << 11) | (1 << 12) | (1 << 13))
|
||||
#define BIOS_PCI_EXP_EN (1 << 10)
|
||||
#define PWRBTN_LVL (1 << 9)
|
||||
|
|
Loading…
Reference in New Issue