Lenovo ThinkPad X60: Reserve memory resource in RAM for graphics.
authorDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Fri, 26 Apr 2013 13:02:04 +0000 (15:02 +0200)
committerDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Thu, 23 May 2013 12:12:28 +0000 (14:12 +0200)
commite85e908b20f8682ed68185f1208e45a69f070e90
treeeb5647cc76ac844269d7a4d15346803d4d266424
parent792709b10bc8e7a4dfdcae66f78d5f7b1cf29255
Lenovo ThinkPad X60: Reserve memory resource in RAM for graphics.

With this commit we can see (corrupted) graphics in grub2 as a payload.

Note that using the ram directly for the framebuffer(instead of the BAR 2)
  is wrong, but it's the only way to prevent the tables(coreboot, ACPI etc...)
  from beeing overwritten when writing to the framebuffer completely.

We reserved 4M to be large (The framebuffer is 3M).
  and also modified setgtt accordinly.

setgtt of 768(3M) doesn't cover all the screen even if 1024x768x32bit is 3M.

Change-Id: Ie04c80d57e85f29f0134cddd462c2a5085710563
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
src/mainboard/lenovo/x60/i915.c
src/northbridge/intel/i945/gma.c
src/northbridge/intel/i945/northbridge.c