summaryrefslogtreecommitdiff
path: root/src/southbridge
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-05-06 23:53:09 +1000
committerKyösti Mälkki <kyosti.malkki@gmail.com>2014-05-13 10:03:38 +0200
commite61dd0f7a2be83ce5ba87d74f7384111576ffd49 (patch)
treea9f2c51500bbd8702cf039c8e620653d25c4b4d8 /src/southbridge
parent216a619a74d61f66e3d3e1d668028d11a8868b4d (diff)
downloadcoreboot-e61dd0f7a2be83ce5ba87d74f7384111576ffd49.tar.xz
southbridge/amd/sb?00/lpc.c: Move i8254/i8259 down in southbridge
We should configure i8254/i8259 down in to the southbridge rather than romstage of every AGESA/CIMx board much like Intel boards do. Change-Id: Id7c4f0baa0819d52aef9b0ee03c20d0fa16b9352 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/5669 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/southbridge')
-rw-r--r--src/southbridge/amd/cimx/sb700/late.c5
-rw-r--r--src/southbridge/amd/cimx/sb800/late.c5
-rw-r--r--src/southbridge/amd/cimx/sb900/late.c5
3 files changed, 15 insertions, 0 deletions
diff --git a/src/southbridge/amd/cimx/sb700/late.c b/src/southbridge/amd/cimx/sb700/late.c
index 96050830fb..42330ca1e9 100644
--- a/src/southbridge/amd/cimx/sb700/late.c
+++ b/src/southbridge/amd/cimx/sb700/late.c
@@ -24,6 +24,8 @@
#include <arch/ioapic.h>
#include <device/smbus.h> /* smbus_bus_operations */
#include <pc80/mc146818rtc.h>
+#include <pc80/i8254.h>
+#include <pc80/i8259.h>
#include <console/console.h> /* printk */
#include <device/pci_ehci.h>
#include "lpc.h" /* lpc_read_resources */
@@ -87,6 +89,9 @@ static void lpc_init(device_t dev)
*/
rtc_init(0);
+ setup_i8259(); /* Initialize i8259 pic */
+ setup_i8254(); /* Initialize i8254 timers */
+
printk(BIOS_DEBUG, "SB700 - Late.c - lpc_init - End.\n");
}
diff --git a/src/southbridge/amd/cimx/sb800/late.c b/src/southbridge/amd/cimx/sb800/late.c
index 219118aa25..40b422bc83 100644
--- a/src/southbridge/amd/cimx/sb800/late.c
+++ b/src/southbridge/amd/cimx/sb800/late.c
@@ -24,6 +24,8 @@
#include <arch/ioapic.h>
#include <device/smbus.h> /* smbus_bus_operations */
#include <pc80/mc146818rtc.h>
+#include <pc80/i8254.h>
+#include <pc80/i8259.h>
#include <console/console.h> /* printk */
#include <arch/acpi.h>
#include <device/pci_ehci.h>
@@ -136,6 +138,9 @@ static void lpc_init(device_t dev)
*/
rtc_init(0);
+ setup_i8259(); /* Initialize i8259 pic */
+ setup_i8254(); /* Initialize i8254 timers */
+
printk(BIOS_DEBUG, "SB800 - Late.c - lpc_init - End.\n");
}
diff --git a/src/southbridge/amd/cimx/sb900/late.c b/src/southbridge/amd/cimx/sb900/late.c
index 3cd603ca7a..7303bdceba 100644
--- a/src/southbridge/amd/cimx/sb900/late.c
+++ b/src/southbridge/amd/cimx/sb900/late.c
@@ -23,6 +23,8 @@
#include <device/pci_ids.h>
#include <device/smbus.h> /* smbus_bus_operations */
#include <pc80/mc146818rtc.h>
+#include <pc80/i8254.h>
+#include <pc80/i8259.h>
#include <console/console.h> /* printk */
#include <device/pci_ehci.h>
#include "lpc.h" /* lpc_read_resources */
@@ -109,6 +111,9 @@ static void lpc_init(device_t dev)
*/
rtc_init(0);
+ setup_i8259(); /* Initialize i8259 pic */
+ setup_i8254(); /* Initialize i8254 timers */
+
printk(BIOS_DEBUG, "SB900 - Late.c - lpc_init - End.\n");
}