summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
authorKangheui Won <khwon@chromium.org>2021-04-06 16:55:48 +1000
committerMartin Roth <martinroth@google.com>2021-04-16 19:35:11 +0000
commite20bc464fbc14db65d1fb99474776147a18e7bda (patch)
treeeaf1c289423a54104385739d4303f5e2ec22104d /src/soc/amd
parentd9ce2859a3d43f27773c3e5448d6c0b65420f352 (diff)
soc/amd: move psp_verstage to amd/common
psp_verstage is not specific to picasso. There might be picasso-specific code but move everything into common as a first step. While developing psp_verstage for cezanne picasso-specific code will move back to picasso directory. BUG=b:182477057 BRANCH=none TEST=build psp_verstage on zork Signed-off-by: Kangheui Won <khwon@chromium.org> Change-Id: Ifb1df0d82b972f28be2ffebd476c2553cbda9810 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52306 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/common/psp_verstage/Makefile.inc24
-rw-r--r--src/soc/amd/common/psp_verstage/delay.c (renamed from src/soc/amd/picasso/psp_verstage/delay.c)0
-rw-r--r--src/soc/amd/common/psp_verstage/fch.c (renamed from src/soc/amd/picasso/psp_verstage/fch.c)0
-rw-r--r--src/soc/amd/common/psp_verstage/include/arch/io.h (renamed from src/soc/amd/picasso/psp_verstage/include/arch/io.h)0
-rw-r--r--src/soc/amd/common/psp_verstage/include/arch/smp/spinlock.h (renamed from src/soc/amd/picasso/psp_verstage/include/arch/smp/spinlock.h)0
-rw-r--r--src/soc/amd/common/psp_verstage/pmutil.c (renamed from src/soc/amd/picasso/psp_verstage/pmutil.c)0
-rw-r--r--src/soc/amd/common/psp_verstage/post.c (renamed from src/soc/amd/picasso/psp_verstage/post.c)0
-rw-r--r--src/soc/amd/common/psp_verstage/printk.c (renamed from src/soc/amd/picasso/psp_verstage/printk.c)0
-rw-r--r--src/soc/amd/common/psp_verstage/psp.c (renamed from src/soc/amd/picasso/psp_verstage/psp.c)0
-rw-r--r--src/soc/amd/common/psp_verstage/psp_verstage.c (renamed from src/soc/amd/picasso/psp_verstage/psp_verstage.c)0
-rw-r--r--src/soc/amd/common/psp_verstage/psp_verstage.h (renamed from src/soc/amd/picasso/psp_verstage/psp_verstage.h)0
-rw-r--r--src/soc/amd/common/psp_verstage/reset.c (renamed from src/soc/amd/picasso/psp_verstage/reset.c)0
-rw-r--r--src/soc/amd/common/psp_verstage/svc.c (renamed from src/soc/amd/picasso/psp_verstage/svc.c)0
-rw-r--r--src/soc/amd/common/psp_verstage/svc.h (renamed from src/soc/amd/picasso/psp_verstage/svc.h)0
-rw-r--r--src/soc/amd/common/psp_verstage/timer.c (renamed from src/soc/amd/picasso/psp_verstage/timer.c)0
-rw-r--r--src/soc/amd/common/psp_verstage/vboot_crypto.c (renamed from src/soc/amd/picasso/psp_verstage/vboot_crypto.c)0
-rw-r--r--src/soc/amd/picasso/Makefile.inc1
-rw-r--r--src/soc/amd/picasso/psp_verstage/Makefile.inc20
18 files changed, 25 insertions, 20 deletions
diff --git a/src/soc/amd/common/psp_verstage/Makefile.inc b/src/soc/amd/common/psp_verstage/Makefile.inc
new file mode 100644
index 0000000000..40d9c45763
--- /dev/null
+++ b/src/soc/amd/common/psp_verstage/Makefile.inc
@@ -0,0 +1,24 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+verstage-generic-ccopts += -I$(src)/soc/amd/common/psp_verstage/include
+verstage-generic-ccopts += -I$(src)/vendorcode/amd/fsp/picasso/include
+verstage-generic-ccopts += -D__USER_SPACE__
+CPPFLAGS_common += -I$(VBOOT_SOURCE)/firmware/2lib/include/
+
+# This size should match the size in the linker script.
+CFLAGS_arm += -Wstack-usage=40960
+
+verstage-y += delay.c
+verstage-y += fch.c
+verstage-y += pmutil.c
+verstage-y += post.c
+verstage-y += printk.c
+verstage-y += psp_verstage.c
+verstage-y += psp.c
+verstage-y += reset.c
+verstage-y += svc.c
+verstage-y += timer.c
+verstage-y += vboot_crypto.c
+
+$(obj)/psp_verstage.bin: $(objcbfs)/verstage.elf
+ $(OBJCOPY_verstage) -O binary $^ $@
diff --git a/src/soc/amd/picasso/psp_verstage/delay.c b/src/soc/amd/common/psp_verstage/delay.c
index ff62524503..ff62524503 100644
--- a/src/soc/amd/picasso/psp_verstage/delay.c
+++ b/src/soc/amd/common/psp_verstage/delay.c
diff --git a/src/soc/amd/picasso/psp_verstage/fch.c b/src/soc/amd/common/psp_verstage/fch.c
index a032bde9b2..a032bde9b2 100644
--- a/src/soc/amd/picasso/psp_verstage/fch.c
+++ b/src/soc/amd/common/psp_verstage/fch.c
diff --git a/src/soc/amd/picasso/psp_verstage/include/arch/io.h b/src/soc/amd/common/psp_verstage/include/arch/io.h
index efa128b25c..efa128b25c 100644
--- a/src/soc/amd/picasso/psp_verstage/include/arch/io.h
+++ b/src/soc/amd/common/psp_verstage/include/arch/io.h
diff --git a/src/soc/amd/picasso/psp_verstage/include/arch/smp/spinlock.h b/src/soc/amd/common/psp_verstage/include/arch/smp/spinlock.h
index 0a3a4d4676..0a3a4d4676 100644
--- a/src/soc/amd/picasso/psp_verstage/include/arch/smp/spinlock.h
+++ b/src/soc/amd/common/psp_verstage/include/arch/smp/spinlock.h
diff --git a/src/soc/amd/picasso/psp_verstage/pmutil.c b/src/soc/amd/common/psp_verstage/pmutil.c
index ddaf54d470..ddaf54d470 100644
--- a/src/soc/amd/picasso/psp_verstage/pmutil.c
+++ b/src/soc/amd/common/psp_verstage/pmutil.c
diff --git a/src/soc/amd/picasso/psp_verstage/post.c b/src/soc/amd/common/psp_verstage/post.c
index 5b429c912b..5b429c912b 100644
--- a/src/soc/amd/picasso/psp_verstage/post.c
+++ b/src/soc/amd/common/psp_verstage/post.c
diff --git a/src/soc/amd/picasso/psp_verstage/printk.c b/src/soc/amd/common/psp_verstage/printk.c
index c56f78c298..c56f78c298 100644
--- a/src/soc/amd/picasso/psp_verstage/printk.c
+++ b/src/soc/amd/common/psp_verstage/printk.c
diff --git a/src/soc/amd/picasso/psp_verstage/psp.c b/src/soc/amd/common/psp_verstage/psp.c
index 7f24b20384..7f24b20384 100644
--- a/src/soc/amd/picasso/psp_verstage/psp.c
+++ b/src/soc/amd/common/psp_verstage/psp.c
diff --git a/src/soc/amd/picasso/psp_verstage/psp_verstage.c b/src/soc/amd/common/psp_verstage/psp_verstage.c
index d4c5d155af..d4c5d155af 100644
--- a/src/soc/amd/picasso/psp_verstage/psp_verstage.c
+++ b/src/soc/amd/common/psp_verstage/psp_verstage.c
diff --git a/src/soc/amd/picasso/psp_verstage/psp_verstage.h b/src/soc/amd/common/psp_verstage/psp_verstage.h
index 4f85d7caa1..4f85d7caa1 100644
--- a/src/soc/amd/picasso/psp_verstage/psp_verstage.h
+++ b/src/soc/amd/common/psp_verstage/psp_verstage.h
diff --git a/src/soc/amd/picasso/psp_verstage/reset.c b/src/soc/amd/common/psp_verstage/reset.c
index 7cd790795e..7cd790795e 100644
--- a/src/soc/amd/picasso/psp_verstage/reset.c
+++ b/src/soc/amd/common/psp_verstage/reset.c
diff --git a/src/soc/amd/picasso/psp_verstage/svc.c b/src/soc/amd/common/psp_verstage/svc.c
index acc9c70318..acc9c70318 100644
--- a/src/soc/amd/picasso/psp_verstage/svc.c
+++ b/src/soc/amd/common/psp_verstage/svc.c
diff --git a/src/soc/amd/picasso/psp_verstage/svc.h b/src/soc/amd/common/psp_verstage/svc.h
index 03bae066e0..03bae066e0 100644
--- a/src/soc/amd/picasso/psp_verstage/svc.h
+++ b/src/soc/amd/common/psp_verstage/svc.h
diff --git a/src/soc/amd/picasso/psp_verstage/timer.c b/src/soc/amd/common/psp_verstage/timer.c
index 04728baf0c..04728baf0c 100644
--- a/src/soc/amd/picasso/psp_verstage/timer.c
+++ b/src/soc/amd/common/psp_verstage/timer.c
diff --git a/src/soc/amd/picasso/psp_verstage/vboot_crypto.c b/src/soc/amd/common/psp_verstage/vboot_crypto.c
index 3f7151ac11..3f7151ac11 100644
--- a/src/soc/amd/picasso/psp_verstage/vboot_crypto.c
+++ b/src/soc/amd/common/psp_verstage/vboot_crypto.c
diff --git a/src/soc/amd/picasso/Makefile.inc b/src/soc/amd/picasso/Makefile.inc
index b5a2934922..e8ee087b7b 100644
--- a/src/soc/amd/picasso/Makefile.inc
+++ b/src/soc/amd/picasso/Makefile.inc
@@ -7,6 +7,7 @@ subdirs-y += ../../../cpu/x86/cache
subdirs-y += ../../../cpu/x86/mtrr
subdirs-y += ../../../cpu/x86/pae
subdirs-$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK) += psp_verstage
+subdirs-$(CONFIG_VBOOT_STARTS_BEFORE_BOOTBLOCK) += ../common/psp_verstage
# Beware that all-y also adds the compilation unit to verstage on PSP
all-y += config.c
diff --git a/src/soc/amd/picasso/psp_verstage/Makefile.inc b/src/soc/amd/picasso/psp_verstage/Makefile.inc
index 0986fd8750..e70360fa51 100644
--- a/src/soc/amd/picasso/psp_verstage/Makefile.inc
+++ b/src/soc/amd/picasso/psp_verstage/Makefile.inc
@@ -2,26 +2,6 @@
verstage-generic-ccopts += -I$(src)/soc/amd/picasso/psp_verstage/include
verstage-generic-ccopts += -I$(src)/vendorcode/amd/fsp/picasso/include
-verstage-generic-ccopts += -D__USER_SPACE__
-CPPFLAGS_common += -I$(VBOOT_SOURCE)/firmware/2lib/include/
-
-# This size should match the size in the linker script.
-CFLAGS_arm += -Wstack-usage=40960
-
-verstage-y += delay.c
-verstage-y += fch.c
-verstage-y += pmutil.c
-verstage-y += post.c
-verstage-y += printk.c
-verstage-y += psp_verstage.c
-verstage-y += psp.c
-verstage-y += reset.c
-verstage-y += svc.c
-verstage-y += timer.c
-verstage-y += vboot_crypto.c
verstage-y += $(top)/src/vendorcode/amd/fsp/picasso/bl_uapp/bl_uapp_startup.S
verstage-y += $(top)/src/vendorcode/amd/fsp/picasso/bl_uapp/bl_uapp_end.S
-
-$(obj)/psp_verstage.bin: $(objcbfs)/verstage.elf
- $(OBJCOPY_verstage) -O binary $^ $@