summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Spiegel <richard.spiegel@silverbackltd.com>2017-12-08 18:16:02 -0700
committerMartin Roth <martinroth@google.com>2017-12-12 16:25:33 +0000
commit19f67a392a9d802403b203ae5920e45307813276 (patch)
tree0fb78439e606cf72504742d59e02535b2bc824a6
parent0ad74ace8b908cd1c4b7db559b693001ef94ebd4 (diff)
soc/amd/common: Move AGESA related source files
Move AGESA related source files in soc/amd/common under block directory. Folder soc/amd/common/block subfolders should mimic soc/intel/common/block subfolders (one subfolder per subject). BUG=b:69262110 TEST=Build with no error gardenia and kahlee (no code change, just folder reorg). Change-Id: I497cdefe64e8dff00aaff7153c4ffa9c57c9acf8 Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com> Reviewed-on: https://review.coreboot.org/22792 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/soc/amd/common/Makefile.inc13
-rw-r--r--src/soc/amd/common/block/pi/Kconfig5
-rw-r--r--src/soc/amd/common/block/pi/Makefile.inc16
-rw-r--r--src/soc/amd/common/block/pi/agesawrapper.c (renamed from src/soc/amd/common/agesawrapper.c)0
-rw-r--r--src/soc/amd/common/block/pi/amd_late_init.c (renamed from src/soc/amd/common/amd_late_init.c)0
-rw-r--r--src/soc/amd/common/block/pi/def_callouts.c (renamed from src/soc/amd/common/def_callouts.c)0
-rw-r--r--src/soc/amd/common/block/pi/heapmanager.c (renamed from src/soc/amd/common/heapmanager.c)0
-rw-r--r--src/soc/amd/stoneyridge/Kconfig1
8 files changed, 22 insertions, 13 deletions
diff --git a/src/soc/amd/common/Makefile.inc b/src/soc/amd/common/Makefile.inc
index b485bb3479..103c3bfad8 100644
--- a/src/soc/amd/common/Makefile.inc
+++ b/src/soc/amd/common/Makefile.inc
@@ -2,19 +2,6 @@ ifeq ($(CONFIG_SOC_AMD_COMMON),y)
CPPFLAGS_common += -I$(src)/soc/amd/common
-bootblock-y += agesawrapper.c
-bootblock-y += def_callouts.c
-bootblock-y += heapmanager.c
-
-romstage-y += agesawrapper.c
-romstage-y += def_callouts.c
-romstage-y += heapmanager.c
-
-ramstage-y += agesawrapper.c
-ramstage-y += amd_late_init.c
-ramstage-y += def_callouts.c
-ramstage-y += heapmanager.c
-
subdirs-$(CONFIG_SOC_AMD_COMMON_BLOCK) += block
endif
diff --git a/src/soc/amd/common/block/pi/Kconfig b/src/soc/amd/common/block/pi/Kconfig
new file mode 100644
index 0000000000..273598b0bd
--- /dev/null
+++ b/src/soc/amd/common/block/pi/Kconfig
@@ -0,0 +1,5 @@
+config SOC_AMD_COMMON_BLOCK_PI
+ bool
+ default n
+ help
+ This option builds functions that interface AMD's AGESA.
diff --git a/src/soc/amd/common/block/pi/Makefile.inc b/src/soc/amd/common/block/pi/Makefile.inc
new file mode 100644
index 0000000000..de6bf78b03
--- /dev/null
+++ b/src/soc/amd/common/block/pi/Makefile.inc
@@ -0,0 +1,16 @@
+ifeq ($(CONFIG_SOC_AMD_COMMON_BLOCK_PI),y)
+
+bootblock-y += agesawrapper.c
+bootblock-y += def_callouts.c
+bootblock-y += heapmanager.c
+
+romstage-y += agesawrapper.c
+romstage-y += def_callouts.c
+romstage-y += heapmanager.c
+
+ramstage-y += agesawrapper.c
+ramstage-y += amd_late_init.c
+ramstage-y += def_callouts.c
+ramstage-y += heapmanager.c
+
+endif
diff --git a/src/soc/amd/common/agesawrapper.c b/src/soc/amd/common/block/pi/agesawrapper.c
index b1f03cb178..b1f03cb178 100644
--- a/src/soc/amd/common/agesawrapper.c
+++ b/src/soc/amd/common/block/pi/agesawrapper.c
diff --git a/src/soc/amd/common/amd_late_init.c b/src/soc/amd/common/block/pi/amd_late_init.c
index 65667b9bdc..65667b9bdc 100644
--- a/src/soc/amd/common/amd_late_init.c
+++ b/src/soc/amd/common/block/pi/amd_late_init.c
diff --git a/src/soc/amd/common/def_callouts.c b/src/soc/amd/common/block/pi/def_callouts.c
index c05d4de8cc..c05d4de8cc 100644
--- a/src/soc/amd/common/def_callouts.c
+++ b/src/soc/amd/common/block/pi/def_callouts.c
diff --git a/src/soc/amd/common/heapmanager.c b/src/soc/amd/common/block/pi/heapmanager.c
index bda521f07f..bda521f07f 100644
--- a/src/soc/amd/common/heapmanager.c
+++ b/src/soc/amd/common/block/pi/heapmanager.c
diff --git a/src/soc/amd/stoneyridge/Kconfig b/src/soc/amd/stoneyridge/Kconfig
index 8b9111e81e..4455f54671 100644
--- a/src/soc/amd/stoneyridge/Kconfig
+++ b/src/soc/amd/stoneyridge/Kconfig
@@ -47,6 +47,7 @@ config CPU_SPECIFIC_OPTIONS
select SOC_AMD_COMMON
select SOC_AMD_COMMON_BLOCK
select SOC_AMD_COMMON_BLOCK_PCI
+ select SOC_AMD_COMMON_BLOCK_PI
select SOC_AMD_COMMON_BLOCK_PSP
select SOC_AMD_COMMON_BLOCK_CAR
select SOC_AMD_COMMON_BLOCK_S3