soc/intel/apollolake: Remove PEIM GFX from normal mode and S3 resume
Do not pass VBT table to fsp in normal mode and S3 resume so that PEIM GFX will not get initialized. Change-Id: Iab7be3cceb0f80ae0273940b36fdd9c41bdb121e Signed-off-by: Abhay Kumar <abhay.kumar@intel.com> Reviewed-on: https://review.coreboot.org/14575 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
@ -15,6 +15,8 @@
|
||||
|
||||
#include <cbfs.h>
|
||||
#include <console/console.h>
|
||||
#include <arch/acpi.h>
|
||||
#include <bootmode.h>
|
||||
|
||||
#include "vbt.h"
|
||||
|
||||
@ -40,3 +42,21 @@ enum cb_err locate_vbt(struct region_device *rdev)
|
||||
|
||||
return CB_SUCCESS;
|
||||
}
|
||||
|
||||
void *vbt_get(struct region_device *rdev)
|
||||
{
|
||||
void *vbt_data;
|
||||
|
||||
/* Normal mode and S3 resume path PEIM GFX init is not needed.
|
||||
* Passing NULL as VBT will not make PEIM GFX to execute. */
|
||||
if (acpi_is_wakeup_s3())
|
||||
return NULL;
|
||||
if (!display_init_required())
|
||||
return NULL;
|
||||
if (locate_vbt(rdev) != CB_ERR) {
|
||||
vbt_data = rdev_mmap_full(rdev);
|
||||
return vbt_data;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user