nb/intel/sandybridge: Add CFR objects for existing options
Add a header with CFR objects for existing configuration options, so that supported boards can make use of them. Currently only one option for IGD UMA size, but others can be added as needed. Change-Id: I892ffcc74d36a266697cbc7ea3c8880db6b67f44 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/87388 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Jérémy Compostella <jeremy.compostella@intel.com>
This commit is contained in:
parent
f14aa06606
commit
ada6b98766
1 changed files with 34 additions and 0 deletions
34
src/northbridge/intel/sandybridge/cfr.h
Normal file
34
src/northbridge/intel/sandybridge/cfr.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
/*
|
||||
* CFR enums and structs for nb/sandybridge
|
||||
*/
|
||||
|
||||
#ifndef NB_SANDYBRIDGE_CFR_H
|
||||
#define NB_SANDYBRIDGE_CFR_H
|
||||
|
||||
#include <drivers/option/cfr_frontend.h>
|
||||
|
||||
/* Values must match nb/sandybridge/Kconfig */
|
||||
enum {
|
||||
IGD_UMA_SIZE_32MB,
|
||||
IGD_UMA_SIZE_64MB,
|
||||
IGD_UMA_SIZE_96MB,
|
||||
IGD_UMA_SIZE_128MB,
|
||||
};
|
||||
|
||||
/* IGD UMA Size */
|
||||
static const struct sm_object gfx_uma_size = SM_DECLARE_ENUM({
|
||||
.opt_name = "gfx_uma_size",
|
||||
.ui_name = "IGD UMA Size",
|
||||
.ui_helptext = "Size of memory preallocated for internal graphics.",
|
||||
.default_value = CONFIG_IGD_DEFAULT_UMA_INDEX,
|
||||
.values = (const struct sm_enum_value[]) {
|
||||
{ " 32MB", IGD_UMA_SIZE_32MB },
|
||||
{ " 64MB", IGD_UMA_SIZE_64MB },
|
||||
{ " 96MB", IGD_UMA_SIZE_96MB },
|
||||
{ "128MB", IGD_UMA_SIZE_128MB },
|
||||
SM_ENUM_VALUE_END },
|
||||
});
|
||||
|
||||
#endif /* NB_SANDYBRIDGE_CFR_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue