[coreboot-gerrit] Patch set updated for coreboot: b01fdab southbridge/amd/pi: Add initialization of 8254 and 8259

Dave Frodin (dave.frodin@se-eng.com) gerrit at coreboot.org
Thu Apr 2 19:12:03 CEST 2015


Dave Frodin (dave.frodin at se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9182

-gerrit

commit b01fdab948755f3706c006fa1f9f280c58c93fa2
Author: Dave Frodin <dave.frodin at se-eng.com>
Date:   Tue Mar 31 16:10:58 2015 -0600

    southbridge/amd/pi: Add initialization of 8254 and 8259
    
    This moves the initialization of the 8254 and 8259 out
    of the (unmerged) lamar mainboard romstage.c file and into
    the southbridge code as it is done in the other AMD
    southbridges.
    
    Change-Id: I73b375754ee4a9bf15981f2cd31056d7e04db23e
    Signed-off-by: Dave Frodin <dave.frodin at se-eng.com>
---
 src/southbridge/amd/pi/hudson/lpc.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/southbridge/amd/pi/hudson/lpc.c b/src/southbridge/amd/pi/hudson/lpc.c
index 7e2ec00..555e255 100644
--- a/src/southbridge/amd/pi/hudson/lpc.c
+++ b/src/southbridge/amd/pi/hudson/lpc.c
@@ -30,6 +30,8 @@
 #include <arch/io.h>
 #include <arch/acpi.h>
 #include <arch/ioapic.h>
+#include <pc80/i8254.h>
+#include <pc80/i8259.h>
 #include "hudson.h"
 
 static void lpc_init(device_t dev)
@@ -79,6 +81,12 @@ static void lpc_init(device_t dev)
 	 * 1 tells cmos_init to always initialize the CMOS.
 	 */
 	cmos_init(0);
+
+	/* Initialize i8259 pic */
+	setup_i8259 ();
+
+	/* Initialize i8254 timers */
+	setup_i8254 ();
 }
 
 static void hudson_lpc_read_resources(device_t dev)



More information about the coreboot-gerrit mailing list