soc/amd/stoneyridge: Create MMIO offsets for ACPI
ACPI registers can be accessed through IO or through MMIO. However, the offset relationship is not one to one. Therefore, definitions with the correct offset for MMIO access are needed. BUG=b:118049037 TEST=Use Chrome OS IOTOOLS io_readxx and mem_readxx to find the correct relationship between ACPI IO and ACPI MMIO. Change-Id: Id20754c0fc0af35bc9eb1a4b40c62fbf9ed6304d Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com> Reviewed-on: https://review.coreboot.org/c/29294 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
parent
142940de79
commit
2c5ea145a4
|
@ -37,6 +37,7 @@
|
|||
#define APU_SMI_BASE 0xfed80200
|
||||
#define PM_MMIO_BASE 0xfed80300
|
||||
#define BIOSRAM_MMIO_BASE 0xfed80500
|
||||
#define ACPI_REG_MMIO_BASE 0xfed80800
|
||||
#define GPIO_IOMUX_MMIO_BASE 0xfed80d00
|
||||
#define MISC_MMIO_BASE 0xfed80e00
|
||||
#define XHCI_ACPI_PM_MMIO_BASE 0xfed81c00
|
||||
|
|
|
@ -104,6 +104,15 @@
|
|||
#define PM_USB_ENABLE 0xef
|
||||
#define PM_USB_ALL_CONTROLLERS 0x7f
|
||||
|
||||
/* ACPI MMIO registers 0xfed80800 */
|
||||
#define MMIO_ACPI_PM1_STS 0x00
|
||||
#define MMIO_ACPI_PM1_EN 0x02
|
||||
#define MMIO_ACPI_PM1_CNT_BLK 0x04
|
||||
#define MMIO_ACPI_CPU_CONTROL 0x0c
|
||||
#define MMIO_ACPI_GPE0_STS 0x14
|
||||
#define MMIO_ACPI_GPE0_EN 0x18
|
||||
#define MMIO_ACPI_PM_TMR_BLK 0x08
|
||||
|
||||
/* FCH MISC Registers 0xfed80e00 */
|
||||
#define GPP_CLK_CNTRL 0x00
|
||||
#define GPP_CLK2_REQ_MAP_SHIFT 8
|
||||
|
|
Loading…
Reference in New Issue