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@se-eng.com> Reviewed-on: http://review.coreboot.org/9182 Reviewed-by: Marc Jones <marc.jones@se-eng.com> Tested-by: build bot (Jenkins)
This commit is contained in:
@ -30,6 +30,8 @@
|
|||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <arch/acpi.h>
|
#include <arch/acpi.h>
|
||||||
#include <arch/ioapic.h>
|
#include <arch/ioapic.h>
|
||||||
|
#include <pc80/i8254.h>
|
||||||
|
#include <pc80/i8259.h>
|
||||||
#include "hudson.h"
|
#include "hudson.h"
|
||||||
|
|
||||||
static void lpc_init(device_t dev)
|
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.
|
* 1 tells cmos_init to always initialize the CMOS.
|
||||||
*/
|
*/
|
||||||
cmos_init(0);
|
cmos_init(0);
|
||||||
|
|
||||||
|
/* Initialize i8259 pic */
|
||||||
|
setup_i8259 ();
|
||||||
|
|
||||||
|
/* Initialize i8254 timers */
|
||||||
|
setup_i8254 ();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hudson_lpc_read_resources(device_t dev)
|
static void hudson_lpc_read_resources(device_t dev)
|
||||||
|
Reference in New Issue
Block a user