drivers/intel/gma: add macro for one internal panel in gfx struct

Add a new macro `GMA_DEFAULT_PANEL(ssc)` as shortcut for specifying one
internal panel at port A (0) in the devicetree.

Change-Id: I5308b53667657d0b255ae5bc543f1a00431f5818
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49054
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Michael Niewöhner 2021-01-02 02:15:43 +01:00
parent d6c57141dd
commit d585564fd0
1 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,12 @@ struct i915_gpu_panel_config {
.ndid = 3, .did = { 0x0100, 0x0240, 0x0410, } \ .ndid = 3, .did = { 0x0100, 0x0240, 0x0410, } \
} }
/* Shortcut for one internal panel at port A */
#define GMA_DEFAULT_PANEL(ssc) { \
.use_spread_spectrum_clock = (ssc), \
.ndid = 1, .did = { 0x0400 } \
}
void drivers_intel_gma_displays_ssdt_generate(const struct i915_gpu_controller_info *conf); void drivers_intel_gma_displays_ssdt_generate(const struct i915_gpu_controller_info *conf);
#endif #endif