From 6b519b230e3f7d33a243b10971daff8f7228353e Mon Sep 17 00:00:00 2001 From: Felix Held Date: Mon, 7 Dec 2020 23:28:29 +0100 Subject: soc/amd: factor out PM_DECODE_EN register definitions Change-Id: I005709a8780725339e7c08fbfff94e89c8ef26da Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/48433 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson --- src/soc/amd/common/block/include/amdblocks/acpimmio.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/soc/amd/common/block') diff --git a/src/soc/amd/common/block/include/amdblocks/acpimmio.h b/src/soc/amd/common/block/include/amdblocks/acpimmio.h index 62f7190606..3887f73cf7 100644 --- a/src/soc/amd/common/block/include/amdblocks/acpimmio.h +++ b/src/soc/amd/common/block/include/amdblocks/acpimmio.h @@ -10,6 +10,17 @@ #define PM_INDEX 0xcd6 #define PM_DATA 0xcd7 +/* + * Power management registers: 0xfed80300 or index/data at IO 0xcd6/cd7. Valid for Mullins and + * newer SoCs, but not for the generations with separate FCH or Kabini. + */ +#define PM_DECODE_EN 0x00 +#define SMBUS_ASF_IO_EN (1 << 4) +#define CF9_IO_EN (1 << 1) +#define LEGACY_IO_EN (1 << 0) + +#define SMB_ASF_IO_BASE 0x01 /* part of PM_DECODE_EN */ + /* * Earlier devices enable the ACPIMMIO bank decodes in PMx24. All discrete FCHs * and the Kabini SoC fall into this category. Kabini's successor, Mullins, uses -- cgit v1.2.3