]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: fsp: Make graphics support common to FSP1/2
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:42:16 +0000 (21:42 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:16 +0000 (11:44 +0800)
Both versions of FSP can use the same graphics support, so move it into
the common directory.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/fsp/Makefile
arch/x86/lib/fsp/fsp_graphics.c [moved from arch/x86/lib/fsp1/fsp_graphics.c with 98% similarity]
arch/x86/lib/fsp1/Makefile

index 9e348564737b0347d1f46d034542575663f73a0e..da6c0a886ae4b2f807db009559ae657834fd13a6 100644 (file)
@@ -4,4 +4,7 @@
 
 obj-y += fsp_common.o
 obj-y += fsp_dram.o
+ifndef CONFIG_SPL_BUILD
+obj-$(CONFIG_VIDEO_FSP) += fsp_graphics.o
+endif
 obj-y += fsp_support.o
similarity index 98%
rename from arch/x86/lib/fsp1/fsp_graphics.c
rename to arch/x86/lib/fsp/fsp_graphics.c
index 52e71334f952c7e977715de2691128e29fa5a91a..91d2d08557262c06509f0370f94a3606ea722ad4 100644 (file)
@@ -7,7 +7,7 @@
 #include <dm.h>
 #include <vbe.h>
 #include <video.h>
-#include <asm/fsp1/fsp_support.h>
+#include <asm/fsp/fsp_support.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 870de71bd71a940f6e326e648579167cd868655f..1cf5e541913e88d5cab818751f10e5e5df02b339 100644 (file)
@@ -5,5 +5,4 @@
 obj-y += fsp_car.o
 obj-y += fsp_common.o
 obj-y += fsp_dram.o
-obj-$(CONFIG_VIDEO_FSP) += fsp_graphics.o
 obj-y += fsp_support.o