x86: Add a config for the systemagent PCIEX regions size
authorSimon Glass <sjg@chromium.org>
Tue, 22 Sep 2020 18:44:51 +0000 (12:44 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 25 Sep 2020 03:27:12 +0000 (11:27 +0800)
Add a way to specify the required size for this region. This is used when
generating ACPI tables.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/Kconfig
arch/x86/cpu/apollolake/Kconfig

index 76276c6..256a110 100644 (file)
@@ -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
index 99d4e10..37d6289 100644 (file)
@@ -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