soc/amd/stoneyridge: Add ALink-AHB Bridge to iomap.h

Add the address and replace the hardcoded value in the ASL code.

Change-Id: If0b99de78d8c5948e2e5f2aa50dfc2efc1bd1ba1
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32662
Reviewed-by: Martin Roth <martinroth@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Marshall Dawson 2019-05-03 18:39:33 -06:00 committed by Martin Roth
parent aa67defafd
commit e1780e9047
2 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,7 @@ Device (AAHB)
Name (_UID, 0x0) Name (_UID, 0x0)
Name (_CRS, ResourceTemplate() Name (_CRS, ResourceTemplate()
{ {
Memory32Fixed (ReadWrite, 0xFEDC0000, 0x2000) Memory32Fixed (ReadWrite, ALINK_AHB_ADDRESS, 0x2000)
}) })
Method (_STA, 0x0, NotSerialized) Method (_STA, 0x0, NotSerialized)

View File

@ -25,6 +25,8 @@
/* AcpiMmio blocks are at fixed offsets from FED8_0000h, enabled in PMx04[1] */ /* AcpiMmio blocks are at fixed offsets from FED8_0000h, enabled in PMx04[1] */
#include <amdblocks/acpimmio_map.h> #include <amdblocks/acpimmio_map.h>
#define ALINK_AHB_ADDRESS 0xfedc0000
/* I2C fixed address */ /* I2C fixed address */
#define I2C_BASE_ADDRESS 0xfedc2000 #define I2C_BASE_ADDRESS 0xfedc2000
#define I2C_DEVICE_SIZE 0x00001000 #define I2C_DEVICE_SIZE 0x00001000