[coreboot-gerrit] Change in coreboot[master]: [RFC]drivers/intel/gma: Add common devicetree structure

Patrick Rudolph (Code Review) gerrit at coreboot.org
Tue Jan 30 10:26:17 CET 2018


Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/23502


Change subject: [RFC]drivers/intel/gma: Add common devicetree structure
......................................................................

[RFC]drivers/intel/gma: Add common devicetree structure

Add a platform independend structure to hold all required GPU related
information. Every field has a clear description and usage.
Instead of using the northbridge device, the new field will be attached
to the GMA device.

To be used on all Intel platforms.

Change-Id: I29c5090a21537f823d14bda2b1d5f03dd8d58c1c
Signed-off-by: Patrick Rudolph <siro at das-labor.org>
---
A src/drivers/intel/gma/chip.h
1 file changed, 71 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/02/23502/1

diff --git a/src/drivers/intel/gma/chip.h b/src/drivers/intel/gma/chip.h
new file mode 100644
index 0000000..b05ebe5
--- /dev/null
+++ b/src/drivers/intel/gma/chip.h
@@ -0,0 +1,71 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2014 Vladimir Serbinenko <phcoder at gmail.com>
+ * Copyright (C) 2012 Duncan Laurie <dlaurie at google.com>
+ * Copyright (C) 2012 Stefan Reinauer <reinauer at google.com>
+ * Copyright (C) 2018 Patrick Rudolph <siro at das-labor.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef _INTEL_GMA_CHIP_H_
+#define _INTEL_GMA_CHIP_H_
+
+struct drivers_intel_gma_config {
+	/* Optional: Non default register for SWSMI / SWSCI */
+	u8 reg_swsmisci;
+	/* Enable spread spectrum control */
+	u8 use_spread_spectrum_clock;
+	/* Use 270 Mhz link frequency */
+	u8 link_frequency_270_mhz;
+	/* Enable CRT connector */
+	u8 use_crt;
+	/* Enable LVDS connector */
+	u8 use_lvds;
+
+	/*
+	 * Digital Port Hotplug Enable:
+	 *  0x04 = Enabled, 2ms short pulse
+	 *  0x05 = Enabled, 4.5ms short pulse
+	 *  0x06 = Enabled, 6ms short pulse
+	 *  0x07 = Enabled, 100ms short pulse
+	 */
+	u8 dp_b_hotplug; /* Digital Port B Hotplug Config */
+	u8 dp_c_hotplug; /* Digital Port C Hotplug Config */
+	u8 dp_d_hotplug; /* Digital Port D Hotplug Config */
+
+	u8 panel_port_select; /* 0=LVDS 1=DP_B 2=DP_C 3=DP_D */
+	u8 panel_power_cycle_delay;          /* T4 time sequence */
+	u16 panel_power_up_delay;            /* T1+T2 time sequence */
+	u16 panel_power_down_delay;          /* T3 time sequence */
+	u16 panel_power_backlight_on_delay;  /* T5 time sequence */
+	u16 panel_power_backlight_off_delay; /* Tx time sequence */
+
+	u32 cpu_backlight;	/* CPU Backlight PWM value */
+	u32 pch_backlight;	/* PCH Backlight PWM value */
+
+	/* Hot-pluggable connectors */
+	u32 hotplug;
+
+	/*
+	 * Default panel brightness level in percent.
+	 * If zero the value is ignored.
+	 */
+	u8 duty_cycle;
+
+	/* Number of devices attached to display adapter. Up to 5 */
+	u8 ndid;
+	/* Devices attached to display adapter */
+	u32 did[5];
+};
+
+
+#endif /* _INTEL_GMA_CHIP_H_ */

-- 
To view, visit https://review.coreboot.org/23502
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I29c5090a21537f823d14bda2b1d5f03dd8d58c1c
Gerrit-Change-Number: 23502
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <siro at das-labor.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180130/6d30d811/attachment-0001.html>


More information about the coreboot-gerrit mailing list