Patrick Rudolph | 92106b1 | 2020-02-19 12:54:06 +0100 | [diff] [blame] | 1 | /* 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 Wawrzynczak | 84428f7 | 2021-09-14 13:59:33 -0600 | [diff] [blame] | 14 | void fsp_report_framebuffer_info(const uintptr_t framebuffer_bar, |
| 15 | enum lb_fb_orientation orientation); |
Patrick Rudolph | 92106b1 | 2020-02-19 12:54:06 +0100 | [diff] [blame] | 16 | |
Subrata Banik | 790b5cf | 2023-10-03 14:51:26 +0000 | [diff] [blame^] | 17 | /* 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 | */ |
| 25 | int fsp_soc_report_external_display(void); |
| 26 | |
Patrick Rudolph | 92106b1 | 2020-02-19 12:54:06 +0100 | [diff] [blame] | 27 | #endif /* _FSP2_0_GRAPHICS_H_ */ |