Peppy, Haswell: refactor and create set_translation_table function in haswell/gma.c

The code to set the graphics translation table has been in the
mainboards, but should be in the northbridge support code.

Move the function, give it a better name, and enable support for > 4
GiB while we're at it, in the remote possibility that we get some 8
GiB haswell boards.

Change-Id: I72b4a0a88e53435e00d9b5e945479a51bd205130
Signed-off-by: Ronald G. Minnich <>
Reviewed-by: Aaron Durbin <>
Reviewed-by: Furquan Shaikh <>
Commit-Queue: Ronald Minnich <>
Tested-by: Ronald Minnich <>
(cherry picked from commit d5a429498147c479eb51477927e146de809effce)
Signed-off-by: Isaac Christensen <>
Tested-by: build bot (Jenkins)
3 files changed