aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/cpu/qemu/qemu.c
diff options
context:
space:
mode:
authorBin Meng2015-06-03 09:20:06 +0800
committerSimon Glass2015-06-04 03:03:18 -0600
commit5c564226fc8948e435edea8eb8c5c4afbc5edef1 (patch)
tree416ea4a8cc9e61959ff940784ee986ee1097e4b5 /arch/x86/cpu/qemu/qemu.c
parentf2653e8dd92229328480da35c26e6f9fbfec4381 (diff)
x86: qemu: Implement PIRQ routing
Support QEMU PIRQ routing via device tree on both i440fx and q35 platforms. With this commit, Linux booting on QEMU from U-Boot has working ATA/SATA, USB and ethernet. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/qemu/qemu.c')
-rw-r--r--arch/x86/cpu/qemu/qemu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/cpu/qemu/qemu.c b/arch/x86/cpu/qemu/qemu.c
index 0f984768e9c..930d2b6c9d1 100644
--- a/arch/x86/cpu/qemu/qemu.c
+++ b/arch/x86/cpu/qemu/qemu.c
@@ -5,6 +5,7 @@
*/
#include <common.h>
+#include <asm/irq.h>
#include <asm/post.h>
#include <asm/processor.h>
@@ -35,3 +36,10 @@ void reset_cpu(ulong addr)
/* cold reset */
x86_full_reset();
}
+
+int arch_misc_init(void)
+{
+ pirq_init();
+
+ return 0;
+}