coreboot-kgpe-d16/src
Arthur Heymans 874a8f961f i945: Enable changing VRAM size
On i945 the vram size is the default 8mb. It is also possible
to set it 1mb or 0mb hardcoding the GGC register in early_init.c

The intel documentation on i945, "Mobile Intel® 945 Express Chipset
Family datasheet june 2008" only documents those three options.
They are set using 3 bits. The documententation also makes mention
of 4mb, 16mb, 32mb, 48mb, 64mb but not how to set it.

The other non documented (straight forward) bit combinations allow
to change the VRAM size to those other states.

What this patch does is:
- add those undocumented registers with their respective vram size to
the i945 NB code;
- make this a cmos option on targets that have this northbridge.

TEST: build, flash to target, set cmos as desired and boot linux.
On Debian it can be found using "dmesg | grep stolen".
NOTE: dmesg message about reserved vram are quite different depending
on linux version

Change-Id: Ia71367ae3efb51bd64affd728407b8386e74594f
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/14819
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
2016-08-31 20:01:05 +02:00
..
acpi src/acpi: Capitalize ACPI and SATA 2016-07-31 19:25:40 +02:00
arch arch/riscv: Add missing "break;" 2016-08-29 18:01:27 +02:00
commonlib cbfs: Add "struct" file type and associated helpers 2016-08-27 01:16:22 +02:00
console console: Add write line routine 2016-08-10 22:30:19 +02:00
cpu src/cpu: Add required space before opening parenthesis '(' 2016-08-28 18:47:23 +02:00
device src/device: Add required space before opening parenthesis '(' 2016-08-28 18:27:52 +02:00
drivers parade/ps8640: disable mipi mcs 2016-08-31 19:59:29 +02:00
ec google/chromeec: Ensure data is ready before reading it 2016-08-20 10:48:37 +02:00
include src/include: Add required space before opening parenthesis '(' 2016-08-28 18:27:18 +02:00
lib Provide CAR decoration for tpm2 statics 2016-08-31 19:59:43 +02:00
mainboard i945: Enable changing VRAM size 2016-08-31 20:01:05 +02:00
northbridge i945: Enable changing VRAM size 2016-08-31 20:01:05 +02:00
soc rockchip/rk3399: Move romstage.c to mainboard/gru 2016-08-31 19:59:55 +02:00
southbridge src/southbridge: Add required space before opening parenthesis '(' 2016-08-28 18:26:07 +02:00
superio superio/*: Relocate Kconfig to chip folder. 2016-08-09 10:38:30 +02:00
vboot vboot: consolidate google_chromeec_early_init() calls 2016-08-25 22:50:17 +02:00
vendorcode drivers/elog: use region_device for NV storage 2016-08-19 18:18:08 +02:00
Kconfig arch/riscv: Print the page table structure after construction 2016-08-23 16:04:55 +02:00