summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2020-09-22 12:44:51 -0600
committerBin Meng <[email protected]>2020-09-25 11:27:12 +0800
commit97bafc9df9df629577df00c2649902897e644b52 (patch)
treeb571fb3993bd7fc9c50243f3d5101544cb7bb4e0
parent4c44aa7aabdb8470c664eb3c23d82da0641571cd (diff)
x86: Add a config for the systemagent PCIEX regions size
Add a way to specify the required size for this region. This is used when generating ACPI tables. Signed-off-by: Simon Glass <[email protected]>
-rw-r--r--arch/x86/Kconfig18
-rw-r--r--arch/x86/cpu/apollolake/Kconfig1
2 files changed, 19 insertions, 0 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 76276c60274..256a1100bd3 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -976,4 +976,22 @@ config TPL_ACPI_GPE
See https://queue.acm.org/blogposting.cfm?id=18977 for more info
+config SA_PCIEX_LENGTH
+ hex
+ default 0x10000000 if (PCIEX_LENGTH_256MB)
+ default 0x8000000 if (PCIEX_LENGTH_128MB)
+ default 0x4000000 if (PCIEX_LENGTH_64MB)
+ default 0x10000000
+ help
+ This option allows you to select length of PCIEX region.
+
+config PCIEX_LENGTH_256MB
+ bool
+
+config PCIEX_LENGTH_128MB
+ bool
+
+config PCIEX_LENGTH_64MB
+ bool
+
endmenu
diff --git a/arch/x86/cpu/apollolake/Kconfig b/arch/x86/cpu/apollolake/Kconfig
index 99d4e105c25..37d6289ee41 100644
--- a/arch/x86/cpu/apollolake/Kconfig
+++ b/arch/x86/cpu/apollolake/Kconfig
@@ -13,6 +13,7 @@ config INTEL_APOLLOLAKE
select TPL_X86_TSC_TIMER_NATIVE
select SPL_PCH_SUPPORT
select TPL_PCH_SUPPORT
+ select PCIEX_LENGTH_256MB
select PCH_SUPPORT
select P2SB
select SMP_AP_WORK