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@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 */