Braswell: Remove GOP from normal boot mode.

Removing GOP initialization in normal mode since we don't need to
show splash screen in normal mode. GOP will get initialized in dev
and recovery mode.

BRANCH=none
BUG=None
TEST=Splash screen will come only in dev or recovery mode.

Change-Id: Ia5e12cf45d723f2f14c447e29b78119552d5e1ea
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 79d1c877343704ea51143b922d9ac9209be4d4b5
Original-Change-Id: Id5ca99757427206413483d07b4f422b4c0abfa5d
Original-Signed-off-by: Abhay <abhay.kumar@intel.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/285300
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/10990
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Abhay Kumar 2015-07-13 16:12:31 -07:00 committed by Patrick Georgi
parent 27d153cabc
commit 9b71b0e000
1 changed files with 10 additions and 6 deletions

View File

@ -24,6 +24,7 @@
#include <lib.h> #include <lib.h>
#include <soc/intel/common/ramstage.h> #include <soc/intel/common/ramstage.h>
#include <string.h> #include <string.h>
#include <vendorcode/google/chromeos/chromeos.h>
/* Locate VBT and pass it to FSP GOP */ /* Locate VBT and pass it to FSP GOP */
void load_vbt(uint8_t s3_resume, SILICON_INIT_UPD *params) void load_vbt(uint8_t s3_resume, SILICON_INIT_UPD *params)
@ -36,12 +37,15 @@ void load_vbt(uint8_t s3_resume, SILICON_INIT_UPD *params)
vbt_data = NULL; vbt_data = NULL;
printk(BIOS_DEBUG, "S3 resume do not pass VBT to GOP\n"); printk(BIOS_DEBUG, "S3 resume do not pass VBT to GOP\n");
} else { } else {
if (developer_mode_enabled() || recovery_mode_enabled()) {
/* Get VBT data */ /* Get VBT data */
vbt_data = fsp_get_vbt(&vbt_len); vbt_data = fsp_get_vbt(&vbt_len);
if (vbt_data != NULL) if (vbt_data != NULL)
printk(BIOS_DEBUG, "Passing VBT to GOP\n"); printk(BIOS_DEBUG, "Passing VBT to GOP\n");
else else
printk(BIOS_DEBUG, "VBT not found!\n"); printk(BIOS_DEBUG, "VBT not found!\n");
} else
vbt_data = NULL;
} }
params->PcdGraphicsConfigPtr = (u32)vbt_data; params->PcdGraphicsConfigPtr = (u32)vbt_data;
} }