[coreboot-gerrit] Change in coreboot[master]: nb/intel/sandybridge/gma: Fix platforms without NGI

Patrick Rudolph (Code Review) gerrit at coreboot.org
Wed Aug 9 15:27:54 CEST 2017


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


Change subject: nb/intel/sandybridge/gma: Fix platforms without NGI
......................................................................

nb/intel/sandybridge/gma: Fix platforms without NGI

On platforms that do not have CONFIG_SANDYBRIDGE_IVYBRIDGE_LVDS add inline
stubs to fix compilation on those systems.

Change-Id: Ife9e7f6e61339b201bd3ff42c50f197605a56e00
Signed-off-by: Patrick Rudolph <siro at das-labor.org>
---
M src/northbridge/intel/sandybridge/gma.h
1 file changed, 15 insertions(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/25/20925/1

diff --git a/src/northbridge/intel/sandybridge/gma.h b/src/northbridge/intel/sandybridge/gma.h
index 5b10920..8b537ad 100644
--- a/src/northbridge/intel/sandybridge/gma.h
+++ b/src/northbridge/intel/sandybridge/gma.h
@@ -18,9 +18,23 @@
 
 struct i915_gpu_controller_info;
 
+#if IS_ENABLED(CONFIG_SANDYBRIDGE_IVYBRIDGE_LVDS)
 int i915lightup_sandy(const struct i915_gpu_controller_info *info,
 		u32 physbase, u16 pio, u8 *mmio, u32 lfb);
 int i915lightup_ivy(const struct i915_gpu_controller_info *info,
 		u32 physbase, u16 pio, u8 *mmio, u32 lfb);
-
+#else
+static inline int
+i915lightup_sandy(const struct i915_gpu_controller_info *info,
+		  u32 physbase, u16 pio, u8 *mmio, u32 lfb)
+{
+	return 0;
+}
+static inline int
+i915lightup_ivy(const struct i915_gpu_controller_info *info,
+		u32 physbase, u16 pio, u8 *mmio, u32 lfb)
+{
+	return 0;
+}
+#endif
 #endif /* NORTHBRIDGE_INTEL_SANDYBRIDGE_GMA_H */

-- 
To view, visit https://review.coreboot.org/20925
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ife9e7f6e61339b201bd3ff42c50f197605a56e00
Gerrit-Change-Number: 20925
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/20170809/09fff2c0/attachment.html>


More information about the coreboot-gerrit mailing list