From d585564fd0da6e028f6532b111b6be1a00e4b7d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Niew=C3=B6hner?= Date: Sat, 2 Jan 2021 02:15:43 +0100 Subject: drivers/intel/gma: add macro for one internal panel in gfx struct MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/49054 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Angel Pons --- src/drivers/intel/gma/gma.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/drivers') diff --git a/src/drivers/intel/gma/gma.h b/src/drivers/intel/gma/gma.h index ee7d7301c2..a39198c006 100644 --- a/src/drivers/intel/gma/gma.h +++ b/src/drivers/intel/gma/gma.h @@ -30,6 +30,12 @@ struct i915_gpu_panel_config { .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); #endif -- cgit v1.2.3