summaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge
diff options
context:
space:
mode:
authorMarc Jones <marcj303@gmail.com>2018-02-12 09:59:54 -0700
committerMartin Roth <martinroth@google.com>2018-02-14 16:16:47 +0000
commit030b5bb7c39eac9fdbdf4b6016503b9ed4d1a74b (patch)
tree43aa13f83d4562d8a617843095f15970b6cfa16f /src/soc/amd/stoneyridge
parent01d0467af93029aa5e1e30e09c298344120c8998 (diff)
downloadcoreboot-030b5bb7c39eac9fdbdf4b6016503b9ed4d1a74b.tar.xz
soc/amd/stoneyridge: Set up LAPIC
LAPIC setup is required to set virtualwire mode for legacy interrupts. This was omitted when stoneyridge was changed to use the common mp_init. BUG=b:72351388 TEST=Verify keyboard now works in SeaBIOS Change-Id: I648d8b5b5a3744a5781446c7cb72934a071f9a72 Signed-off-by: Marc Jones <marcj303@gmail.com> Reviewed-on: https://review.coreboot.org/23718 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/stoneyridge')
-rw-r--r--src/soc/amd/stoneyridge/model_15_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/soc/amd/stoneyridge/model_15_init.c b/src/soc/amd/stoneyridge/model_15_init.c
index 56f747cc6b..4bde81eb51 100644
--- a/src/soc/amd/stoneyridge/model_15_init.c
+++ b/src/soc/amd/stoneyridge/model_15_init.c
@@ -14,6 +14,7 @@
*/
#include <console/console.h>
+#include <cpu/x86/lapic.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <device/device.h>
@@ -76,6 +77,8 @@ static void model_15_init(device_t dev)
msr.hi = 0;
for (i = 0 ; i < 6 ; i++)
wrmsr(MCI_STATUS + (i * 4), msr);
+
+ setup_lapic();
}
static struct device_operations cpu_dev_ops = {