summaryrefslogtreecommitdiffstats
path: root/src/southbridge/amd/sb700/lpc.c
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineeringinc.com>2015-09-05 18:14:25 -0500
committerMartin Roth <martinroth@google.com>2015-10-27 20:16:29 +0100
commit85c39a4ce51f0a33ba1849c85198abdebbd61a41 (patch)
tree23a5112265b05871298ef9f96c19e8476e054874 /src/southbridge/amd/sb700/lpc.c
parent539aed0646982a5428c87fa2be7926800fbc574a (diff)
downloadcoreboot-85c39a4ce51f0a33ba1849c85198abdebbd61a41.tar.gz
coreboot-85c39a4ce51f0a33ba1849c85198abdebbd61a41.tar.bz2
coreboot-85c39a4ce51f0a33ba1849c85198abdebbd61a41.zip
southbridge/amd/sb700: Add Suspend to RAM (S3) support
Change-Id: Ic643e31b721f11a90d8fb5f8c8f8a3b7892c0d73 Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-on: http://review.coreboot.org/11949 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/southbridge/amd/sb700/lpc.c')
-rw-r--r--src/southbridge/amd/sb700/lpc.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/southbridge/amd/sb700/lpc.c b/src/southbridge/amd/sb700/lpc.c
index 0cc1e8bd3cac..145a01f50d8e 100644
--- a/src/southbridge/amd/sb700/lpc.c
+++ b/src/southbridge/amd/sb700/lpc.c
@@ -61,10 +61,12 @@ static void lpc_init(device_t dev)
isa_dma_init();
#endif
- /* Enable DMA transaction on the LPC bus */
- byte = pci_read_config8(dev, 0x40);
- byte |= (1 << 2);
- pci_write_config8(dev, 0x40, byte);
+ if (!IS_ENABLED(CONFIG_SOUTHBRIDGE_AMD_SB700_DISABLE_ISA_DMA)) {
+ /* Enable DMA transaction on the LPC bus */
+ byte = pci_read_config8(dev, 0x40);
+ byte |= (1 << 2);
+ pci_write_config8(dev, 0x40, byte);
+ }
/* Disable the timeout mechanism on LPC */
byte = pci_read_config8(dev, 0x48);
@@ -85,11 +87,13 @@ static void lpc_init(device_t dev)
cmos_check_update_date();
}
+#if (!IS_ENABLED(CONFIG_EARLY_CBMEM_INIT))
int acpi_get_sleep_type(void)
{
u16 tmp = inw(ACPI_PM1_CNT_BLK);
return ((tmp & (7 << 10)) >> 10);
}
+#endif
#if IS_ENABLED(CONFIG_LATE_CBMEM_INIT)
void backup_top_of_ram(uint64_t ramtop)