blob: a5f781f87fc6fb44e6eb7acf3c17c45b3d21f408 [file] [log] [blame]
Patrick Rudolph92106b12020-02-19 12:54:06 +01001/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3#ifndef _FSP2_0_GRAPHICS_H_
4#define _FSP2_0_GRAPHICS_H_
5
6#include <types.h>
7
8/*
9 * Report the fsp_graphics_info_guid HOB to framebuffer info.
10 *
11 * Must be called after PCI enumeration to make sure that the BAR
12 * doesn't change any more.
13 */
Tim Wawrzynczak84428f72021-09-14 13:59:33 -060014void fsp_report_framebuffer_info(const uintptr_t framebuffer_bar,
15 enum lb_fb_orientation orientation);
Patrick Rudolph92106b12020-02-19 12:54:06 +010016
Subrata Banik790b5cf2023-10-03 14:51:26 +000017/* SoC Overrides */
18/*
19 * Check and report if an external display is attached
20 *
21 * Possible return values:
22 * 1 - An external device is attached.
23 * 0 - On-board display alone.
24 */
25int fsp_soc_report_external_display(void);
26
Patrick Rudolph92106b12020-02-19 12:54:06 +010027#endif /* _FSP2_0_GRAPHICS_H_ */