diff options
author | Aaron Durbin <adurbin@chromium.org> | 2013-10-03 12:56:37 -0500 |
---|---|---|
committer | Aaron Durbin <adurbin@google.com> | 2014-02-05 05:23:54 +0100 |
commit | a64ef62ca4da18f0b6c8f6949c659c81fb68c418 (patch) | |
tree | 4552b68cac56b8c9cd7ee97a2a0c6523646e67da /src/soc | |
parent | 51ca694a970705cd06925b508f3e6244331fa841 (diff) |
baytrail: program PUNIT memory-mapped base address
Apparently there was another BAR living at 0x5c in the LPC
bridge that mapped the PUNIT registers. EDS 2.0 released
and this register is now documented.
BUG=chrome-os-partner:23085
BRANCH=None
TEST=Built and booted.
Change-Id: I5892c2a14923b57826060e92b4335cb1952ea057
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/171612
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: http://review.coreboot.org/4861
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc')
-rw-r--r-- | src/soc/intel/baytrail/baytrail/iomap.h | 1 | ||||
-rw-r--r-- | src/soc/intel/baytrail/baytrail/lpc.h | 1 | ||||
-rw-r--r-- | src/soc/intel/baytrail/romstage/romstage.c | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/intel/baytrail/baytrail/iomap.h b/src/soc/intel/baytrail/baytrail/iomap.h index ea2d648e36..9fc8da7945 100644 --- a/src/soc/intel/baytrail/baytrail/iomap.h +++ b/src/soc/intel/baytrail/baytrail/iomap.h @@ -28,6 +28,7 @@ #define ILB_BASE_ADDRESS 0xfed08000 #define SPI_BASE_ADDRESS 0xfed01000 #define MPHY_BASE_ADDRESS 0xfef00000 +#define PUNIT_BASE_ADDRESS 0xfed05000 #define RCBA_BASE_ADDRESS 0xfed1c000 /* IO Port base */ diff --git a/src/soc/intel/baytrail/baytrail/lpc.h b/src/soc/intel/baytrail/baytrail/lpc.h index 05220e452d..71391ade3f 100644 --- a/src/soc/intel/baytrail/baytrail/lpc.h +++ b/src/soc/intel/baytrail/baytrail/lpc.h @@ -29,6 +29,7 @@ #define IBASE 0x50 #define SBASE 0x54 #define MPBASE 0x58 +#define PUBASE 0x5c #define UART_CONT 0x80 #define RCBA 0xf0 diff --git a/src/soc/intel/baytrail/romstage/romstage.c b/src/soc/intel/baytrail/romstage/romstage.c index 8a65f06857..f62aeac23f 100644 --- a/src/soc/intel/baytrail/romstage/romstage.c +++ b/src/soc/intel/baytrail/romstage/romstage.c @@ -74,6 +74,8 @@ static void program_base_addresses(void) pci_write_config32(lpc_dev, SBASE, reg); reg = MPHY_BASE_ADDRESS | 2; pci_write_config32(lpc_dev, MPBASE, reg); + reg = PUNIT_BASE_ADDRESS | 2; + pci_write_config32(lpc_dev, PUBASE, reg); reg = RCBA_BASE_ADDRESS | 1; pci_write_config32(lpc_dev, RCBA, reg); |