Nico Huber has uploaded this change for review. ( https://review.coreboot.org/27051
Change subject: gma config: Introduce Has_Original_ILK_Trans ......................................................................
gma config: Introduce Has_Original_ILK_Trans
Change-Id: Ib9a5951abf62ed01583ad028bc944c0135744457 Signed-off-by: Nico Huber nico.h@gmx.de --- M common/hw-gfx-gma-config.ads.template M common/hw-gfx-gma-pch-fdi.adb M common/hw-gfx-gma-pch.ads 3 files changed, 4 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/51/27051/1
diff --git a/common/hw-gfx-gma-config.ads.template b/common/hw-gfx-gma-config.ads.template index 7548ce5..8a1cc16 100644 --- a/common/hw-gfx-gma-config.ads.template +++ b/common/hw-gfx-gma-config.ads.template @@ -87,6 +87,7 @@ Has_DPLL_SEL : constant Boolean := CPU in Ironlake .. Ivybridge; Has_FDI_BPC : constant Boolean := CPU in Ironlake .. Ivybridge; Has_FDI_Composite_Sel : constant Boolean := CPU = Ivybridge; + Has_Original_ILK_Trans : constant Boolean := CPU = Ironlake; Has_Trans_DP_Ctl : constant Boolean := CPU in Sandybridge .. Ivybridge; Has_FDI_C : constant Boolean := CPU = Ivybridge; diff --git a/common/hw-gfx-gma-pch-fdi.adb b/common/hw-gfx-gma-pch-fdi.adb index 95bc19f..0217639 100644 --- a/common/hw-gfx-gma-pch-fdi.adb +++ b/common/hw-gfx-gma-pch-fdi.adb @@ -30,7 +30,7 @@ FDI_RX_CTL_RAWCLK_TO_PCDCLK_SEL_RAWCLK : constant := 0 * 2 ** 4; FDI_RX_CTL_RAWCLK_TO_PCDCLK_SEL_PCDCLK : constant := 1 * 2 ** 4;
- TP_SHIFT : constant := (if Config.CPU = Ironlake then 28 else 8); + TP_SHIFT : constant := (if Config.Has_Original_ILK_Trans then 28 else 8); FDI_RX_CTL_TRAINING_PATTERN_MASK : constant := 3 * 2 ** TP_SHIFT;
type TP_Array is array (Training_Pattern) of Word32; diff --git a/common/hw-gfx-gma-pch.ads b/common/hw-gfx-gma-pch.ads index 106d2e8..1e05e90 100644 --- a/common/hw-gfx-gma-pch.ads +++ b/common/hw-gfx-gma-pch.ads @@ -23,16 +23,10 @@ -- common to all PCH outputs
PCH_TRANSCODER_SELECT_SHIFT : constant := - (case Config.CPU is - when Ironlake => 30, - when Sandybridge | Ivybridge => 29, - when others => 0); + (if Config.Has_Original_ILK_Trans then 30 else 29);
PCH_TRANSCODER_SELECT_MASK : constant := - (case Config.CPU is - when Ironlake => 1 * 2 ** 30, - when Sandybridge | Ivybridge => 3 * 2 ** 29, - when others => 0); + (if Config.Has_Original_ILK_Trans then 1 * 2 ** 30 else 3 * 2 ** 29);
type PCH_TRANSCODER_SELECT_Array is array (FDI_Port_Type) of Word32; PCH_TRANSCODER_SELECT : constant PCH_TRANSCODER_SELECT_Array :=