diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2014-09-01 01:41:37 +0200 |
---|---|---|
committer | Vladimir Serbinenko <phcoder@gmail.com> | 2014-09-05 22:48:49 +0200 |
commit | a2a906e47a87acc3acdca0ee2790ff96409b9b46 (patch) | |
tree | 32bd54895f2c1f199d649ed96a2dd7f2e9a4e722 /src/drivers/intel/gma/int15.h | |
parent | a4857052f756507e18a54beba704f183f128a057 (diff) | |
download | coreboot-a2a906e47a87acc3acdca0ee2790ff96409b9b46.tar.xz |
Consolidate intel vga int15 hooks
Change-Id: I9366dded98bf15f6da44ce893dd10698ba09fd55
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/6820
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/drivers/intel/gma/int15.h')
-rw-r--r-- | src/drivers/intel/gma/int15.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/drivers/intel/gma/int15.h b/src/drivers/intel/gma/int15.h new file mode 100644 index 0000000000..b5abc94fb9 --- /dev/null +++ b/src/drivers/intel/gma/int15.h @@ -0,0 +1,35 @@ +int intel_vga_int15_handler(void); + +enum { + GMA_INT15_BOOT_DISPLAY_DEFAULT = 0, + GMA_INT15_BOOT_DISPLAY_CRT = (1 << 0), + GMA_INT15_BOOT_DISPLAY_TV = (1 << 1), + GMA_INT15_BOOT_DISPLAY_EFP = (1 << 2), + GMA_INT15_BOOT_DISPLAY_LFP = (1 << 3), + GMA_INT15_BOOT_DISPLAY_CRT2 = (1 << 4), + GMA_INT15_BOOT_DISPLAY_TV2 = (1 << 5), + GMA_INT15_BOOT_DISPLAY_EFP2 = (1 << 6), + GMA_INT15_BOOT_DISPLAY_LFP2 = (1 << 7), +}; +enum { + GMA_INT15_PANEL_FIT_DEFAULT = 0, + GMA_INT15_PANEL_FIT_CENTERING = (1 << 0), + GMA_INT15_PANEL_FIT_TXT_STRETCH = (1 << 1), + GMA_INT15_PANEL_FIT_GFX_STRETCH = (1 << 2), +}; + +enum { + GMA_INT15_ACTIVE_LFP_NONE = 0x00, + GMA_INT15_ACTIVE_LFP_INT_LVDS = 0x01, + GMA_INT15_ACTIVE_LFP_SVDO_LVDS = 0x02, + GMA_INT15_ACTIVE_LFP_EDP = 0x03, +}; + + +#if CONFIG_VGA_ROM_RUN +/* Install custom int15 handler for VGA OPROM */ +void install_intel_vga_int15_handler(int active_lfp, int pfit, int display, int panel_type); +#else +static inline void install_intel_vga_int15_handler(int active_lfp, int pfit, int display, int panel_type) {} +#endif + |