diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2024-09-05 11:27:53 -0500 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-09-07 15:40:58 +0000 |
commit | 5a59e418ee624056ac549cc88bae49b8f853eddd (patch) | |
tree | 5fd6b124341adfde6c2dd3b561f0f776d5dd8a7a /src/northbridge/intel/sandybridge/Kconfig | |
parent | e5c5b1c3d270944809d144f076129ee6eab2c057 (diff) |
nb/intel/sandybridge: Add Kconfig to set default IGD allocation
Add a Kconfig choice to select the default IGD memory allocation, for
users/boards which do not use an option table to set it.
TEST=build/boot google/link, verify IGD size changes with selection.
Change-Id: I83d57cf4657cfccbb21416c5da05eeff9e95a44f
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84225
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/northbridge/intel/sandybridge/Kconfig')
-rw-r--r-- | src/northbridge/intel/sandybridge/Kconfig | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/northbridge/intel/sandybridge/Kconfig b/src/northbridge/intel/sandybridge/Kconfig index fa40b0668d..973eed8bbd 100644 --- a/src/northbridge/intel/sandybridge/Kconfig +++ b/src/northbridge/intel/sandybridge/Kconfig @@ -180,4 +180,32 @@ config FIXED_EPBAR_MMIO_BASE config PRERAM_CBFS_CACHE_SIZE default 0x0 +choice + prompt "Default IGD Memory Allocation" + default IGD_DEFAULT_UMA_SIZE_32MB + help + The amount of system memory allocated for the integrated GPU if not + set via an option table. + +config IGD_DEFAULT_UMA_SIZE_32MB + bool "32MB" + +config IGD_DEFAULT_UMA_SIZE_64MB + bool "64MB" + +config IGD_DEFAULT_UMA_SIZE_96MB + bool "96MB" + +config IGD_DEFAULT_UMA_SIZE_128MB + bool "128MB" + +endchoice + +config IGD_DEFAULT_UMA_INDEX + int + default 0 if IGD_DEFAULT_UMA_SIZE_32MB + default 1 if IGD_DEFAULT_UMA_SIZE_64MB + default 2 if IGD_DEFAULT_UMA_SIZE_96MB + default 3 if IGD_DEFAULT_UMA_SIZE_128MB + endif |