summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-08-10 07:05:10 -0600
committerSimon Glass <sjg@chromium.org>2015-08-14 03:24:21 -0600
commit46f8efee70313a4f8fb3831dadbc0530fcbfa9b6 (patch)
tree0a7dcd4dfccac4f16c610661e51247202704c530 /arch/x86
parent7e4be120e88974d49ebb4bcf837134cfb71efc8c (diff)
downloadtalos-obmc-uboot-46f8efee70313a4f8fb3831dadbc0530fcbfa9b6.tar.gz
talos-obmc-uboot-46f8efee70313a4f8fb3831dadbc0530fcbfa9b6.zip
x86: baytrail: Tidy up interrupt and FSP init
We should signal to the FSP that PCI enumeration is complete. Perform this task in a suitable place. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/cpu/baytrail/valleyview.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/x86/cpu/baytrail/valleyview.c b/arch/x86/cpu/baytrail/valleyview.c
index 225ea38acc..2d5a0eb35e 100644
--- a/arch/x86/cpu/baytrail/valleyview.c
+++ b/arch/x86/cpu/baytrail/valleyview.c
@@ -9,6 +9,7 @@
#include <pci_ids.h>
#include <asm/irq.h>
#include <asm/post.h>
+#include <asm/fsp/fsp_support.h>
static struct pci_device_id mmc_supported[] = {
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SDIO },
@@ -40,6 +41,12 @@ int arch_cpu_init(void)
int arch_misc_init(void)
{
- return pirq_init();
+ int ret;
+
+ ret = pirq_init();
+ if (ret)
+ return ret;
+
+ return fsp_init_phase_pci();
}
#endif
OpenPOWER on IntegriCloud