From 1f4db4046f911b2ed586509de5d8e109b46a9485 Mon Sep 17 00:00:00 2001 From: Jimmy Zhang Date: Mon, 3 Nov 2014 11:41:02 -0800 Subject: ryu: Add display_start api Enable display only developer and recovery mode. Will add in the actual display supporting functions in coming patches. BRANCH=none BUG=chrome-os-partner:31936 TEST=build and test on ryu Signed-off-by: Jimmy Zhang Change-Id: I0d312fd132dc310813432f4d8a28ad16c9bb36aa Signed-off-by: Patrick Georgi Original-Commit-Id: dd1bd56e83532c77d675f72b301b413cbcf3f489 Original-Change-Id: Idfa24d23c81baaedb944d2b9835255edad4e422b Original-Reviewed-on: https://chromium-review.googlesource.com/226904 Original-Reviewed-by: Aaron Durbin Original-Reviewed-by: Furquan Shaikh Original-Tested-by: Jimmy Zhang Reviewed-on: http://review.coreboot.org/9421 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- src/soc/nvidia/tegra132/soc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/soc/nvidia/tegra132/soc.c b/src/soc/nvidia/tegra132/soc.c index 1072467818..0014f84b54 100644 --- a/src/soc/nvidia/tegra132/soc.c +++ b/src/soc/nvidia/tegra132/soc.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -75,6 +76,11 @@ static struct cpu_control_ops cntrl_ops = { .start_cpu = cntrl_start_cpu, }; +void display_startup(device_t dev) +{ + printk(BIOS_INFO, "Entering %s()\n", __func__); +} + static void soc_init(device_t dev) { struct soc_nvidia_tegra132_config *cfg; @@ -84,6 +90,11 @@ static void soc_init(device_t dev) cfg = dev->chip_info; spintable_init((void *)cfg->spintable_addr); arch_initialize_cpus(dev, &cntrl_ops); + + if (vboot_skip_display_init()) + printk(BIOS_INFO, "Skipping display init.\n"); + else + display_startup(dev); } static struct device_operations soc_ops = { -- cgit v1.2.3