xref: /aosp_15_r20/external/coreboot/src/drivers/intel/gma/int15.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 int intel_vga_int15_handler(void);
4 
5 enum {
6 	GMA_INT15_BOOT_DISPLAY_DEFAULT	 = 0,
7 	GMA_INT15_BOOT_DISPLAY_CRT	 = (1 << 0),
8 	GMA_INT15_BOOT_DISPLAY_TV	 = (1 << 1),
9 	GMA_INT15_BOOT_DISPLAY_EFP	 = (1 << 2),
10 	GMA_INT15_BOOT_DISPLAY_LFP	 = (1 << 3),
11 	GMA_INT15_BOOT_DISPLAY_CRT2	 = (1 << 4),
12 	GMA_INT15_BOOT_DISPLAY_TV2	 = (1 << 5),
13 	GMA_INT15_BOOT_DISPLAY_EFP2	 = (1 << 6),
14 	GMA_INT15_BOOT_DISPLAY_LFP2	 = (1 << 7),
15 };
16 enum {
17 	GMA_INT15_PANEL_FIT_DEFAULT	= 0,
18 	GMA_INT15_PANEL_FIT_CENTERING	= (1 << 0),
19 	GMA_INT15_PANEL_FIT_TXT_STRETCH	= (1 << 1),
20 	GMA_INT15_PANEL_FIT_GFX_STRETCH	= (1 << 2),
21 };
22 
23 enum {
24 	GMA_INT15_ACTIVE_LFP_NONE	= 0x00,
25 	GMA_INT15_ACTIVE_LFP_INT_LVDS	= 0x01,
26 	GMA_INT15_ACTIVE_LFP_SVDO_LVDS	= 0x02,
27 	GMA_INT15_ACTIVE_LFP_EDP	= 0x03,
28 };
29 
30 #if CONFIG(VGA_ROM_RUN)
31 /* Install custom int15 handler for VGA OPROM */
32 void install_intel_vga_int15_handler(int active_lfp, int pfit, int display, int panel_type);
33 #else
install_intel_vga_int15_handler(int active_lfp,int pfit,int display,int panel_type)34 static inline void install_intel_vga_int15_handler(int active_lfp, int pfit, int display, int panel_type) {}
35 #endif
36