summaryrefslogtreecommitdiff
path: root/src/soc/amd/common
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2020-12-07 23:28:29 +0100
committerFelix Held <felix-coreboot@felixheld.de>2020-12-09 02:10:12 +0000
commit6b519b230e3f7d33a243b10971daff8f7228353e (patch)
treec255a05ec2b75bdcebb1bc02b1bde15a2e04fde7 /src/soc/amd/common
parenteb04fcbd150ce4a46239bec13f9001b836edaa0b (diff)
soc/amd: factor out PM_DECODE_EN register definitions
Change-Id: I005709a8780725339e7c08fbfff94e89c8ef26da Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48433 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/soc/amd/common')
-rw-r--r--src/soc/amd/common/block/include/amdblocks/acpimmio.h11
1 files changed, 11 insertions, 0 deletions
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
@@ -11,6 +11,17 @@
#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
* this newer method of enable in PMx04.