diff options
author | Simon Glass <sjg@chromium.org> | 2014-11-14 20:56:36 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-11-25 07:11:16 -0700 |
commit | effcf067df5f986b8f9a2ca5101c74495be700ab (patch) | |
tree | da6cc6a7e550e69602991716fe2992ef76861932 /arch/x86/cpu/ivybridge/bd82x6x.c | |
parent | d040ac0a89a6ffdcd27bfba24984a339e8a4addc (diff) | |
download | u-boot-imx-effcf067df5f986b8f9a2ca5101c74495be700ab.zip u-boot-imx-effcf067df5f986b8f9a2ca5101c74495be700ab.tar.gz u-boot-imx-effcf067df5f986b8f9a2ca5101c74495be700ab.tar.bz2 |
x86: Add initial video device init for Intel GMA
Intel's Graphics Media Accelerator (GMA) is a generic name for a wide range
of video devices. Add code to set up the hardware on ivybridge. Part of the
init happens in native code, part of it happens in a 16-bit option ROM for
those nostalgic for the 1970s.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/ivybridge/bd82x6x.c')
-rw-r--r-- | arch/x86/cpu/ivybridge/bd82x6x.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/x86/cpu/ivybridge/bd82x6x.c b/arch/x86/cpu/ivybridge/bd82x6x.c index 739f979..65a17d3 100644 --- a/arch/x86/cpu/ivybridge/bd82x6x.c +++ b/arch/x86/cpu/ivybridge/bd82x6x.c @@ -91,7 +91,8 @@ int bd82x6x_init_pci_devices(void) const void *blob = gd->fdt_blob; struct pci_controller *hose; struct x86_cpu_priv *cpu; - int sata_node; + int sata_node, gma_node; + int ret; hose = pci_bus_to_hose(0); lpc_enable(PCH_LPC_DEV); @@ -111,6 +112,16 @@ int bd82x6x_init_pci_devices(void) return -ENOMEM; model_206ax_init(cpu); + gma_node = fdtdec_next_compatible(blob, 0, COMPAT_INTEL_GMA); + if (gma_node < 0) { + debug("%s: Cannot find GMA node\n", __func__); + return -EINVAL; + } + ret = gma_func0_init(PCH_VIDEO_DEV, pci_bus_to_hose(0), blob, + gma_node); + if (ret) + return ret; + return 0; } |