summaryrefslogtreecommitdiff
path: root/src/drivers/intel/gma
diff options
context:
space:
mode:
authorMichael Niewöhner <foss@mniewoehner.de>2021-01-02 02:15:43 +0100
committerMichael Niewöhner <foss@mniewoehner.de>2021-01-03 11:52:04 +0000
commitd585564fd0da6e028f6532b111b6be1a00e4b7d1 (patch)
tree05e5fb02f0c46778ac34a3091204efdc209cce5c /src/drivers/intel/gma
parentd6c57141dd36a41694651ce29546ded4d46a3a2d (diff)
downloadcoreboot-d585564fd0da6e028f6532b111b6be1a00e4b7d1.tar.xz
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>
Diffstat (limited to 'src/drivers/intel/gma')
-rw-r--r--src/drivers/intel/gma/gma.h6
1 files changed, 6 insertions, 0 deletions
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