Skip to content

Commit

Permalink
X220 FullHD patch
Browse files Browse the repository at this point in the history
  • Loading branch information
daduke committed Apr 26, 2019
1 parent 56d66ae commit be3ee1b
Show file tree
Hide file tree
Showing 10 changed files with 481 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/mainboard/lenovo/x220/Kconfig
@@ -1,4 +1,4 @@
if BOARD_LENOVO_X220 || BOARD_LENOVO_X220I || BOARD_LENOVO_X1
if BOARD_LENOVO_X220 || BOARD_LENOVO_X220I || BOARD_LENOVO_X1 || BOARD_LENOVO_X220_FHD

config BOARD_SPECIFIC_OPTIONS
def_bool y
Expand All @@ -19,7 +19,7 @@ config BOARD_SPECIFIC_OPTIONS
select MAINBOARD_HAS_LPC_TPM
select MAINBOARD_HAS_TPM1
select MAINBOARD_HAS_LIBGFXINIT
select GFX_GMA_INTERNAL_IS_LVDS
select GFX_GMA_INTERNAL_IS_LVDS if !BOARD_LENOVO_X220_FHD
select INTEL_GMA_HAVE_VBT
select MAINBOARD_USES_IFD_GBE_REGION

Expand All @@ -34,11 +34,13 @@ config VARIANT_DIR
string
default "x220" if BOARD_LENOVO_X220 || BOARD_LENOVO_X220I
default "x1" if BOARD_LENOVO_X1
default "x220_fhd" if BOARD_LENOVO_X220_FHD


config MAINBOARD_PART_NUMBER
string
default "ThinkPad X220" if BOARD_LENOVO_X220
default "ThinkPad X220_FHD" if BOARD_LENOVO_X220_FHD
default "ThinkPad X220i" if BOARD_LENOVO_X220I
default "ThinkPad X1" if BOARD_LENOVO_X1

Expand Down Expand Up @@ -69,4 +71,4 @@ config VGA_BIOS_ID
default "8086,0116" if BOARD_LENOVO_X220I
default "8086,0126"

endif # BOARD_LENOVO_X220 || BOARD_LENOVO_X220I || BOARD_LENOVO_X1
endif # BOARD_LENOVO_X220 || BOARD_LENOVO_X220I || BOARD_LENOVO_X1 || BOARD_LENOVO_X220_FHD
3 changes: 3 additions & 0 deletions src/mainboard/lenovo/x220/Kconfig.name
Expand Up @@ -6,3 +6,6 @@ config BOARD_LENOVO_X220I

config BOARD_LENOVO_X1
bool "ThinkPad X1"

config BOARD_LENOVO_X220_FHD
bool "ThinkPad X220 Nitrocaster Full HD mod"
2 changes: 1 addition & 1 deletion src/mainboard/lenovo/x220/Makefile.inc
Expand Up @@ -17,4 +17,4 @@ smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c
romstage-y += variants/$(VARIANT_DIR)/gpio.c
romstage-y += variants/$(VARIANT_DIR)/romstage.c

ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += variants/$(VARIANT_DIR)/gma-mainboard.ads
File renamed without changes.
34 changes: 34 additions & 0 deletions src/mainboard/lenovo/x220/variants/x220/gma-mainboard.ads
@@ -0,0 +1,34 @@
--
-- This file is part of the coreboot project.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--

with HW.GFX.GMA;
with HW.GFX.GMA.Display_Probing;

use HW.GFX.GMA;
use HW.GFX.GMA.Display_Probing;

private package GMA.Mainboard is

ports : constant Port_List :=
(DP1,
DP2,
DP3,
HDMI1,
HDMI2,
HDMI3,
Analog,
Internal,
others => Disabled);

end GMA.Mainboard;
Binary file not shown.
33 changes: 33 additions & 0 deletions src/mainboard/lenovo/x220/variants/x220_fhd/gma-mainboard.ads
@@ -0,0 +1,33 @@
--
-- This file is part of the coreboot project.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--

with HW.GFX.GMA;
with HW.GFX.GMA.Display_Probing;

use HW.GFX.GMA;
use HW.GFX.GMA.Display_Probing;

private package GMA.Mainboard is

ports : constant Port_List :=
(DP1,
DP2,
DP3,
HDMI1,
HDMI2,
HDMI3,
Analog,
others => Disabled);

end GMA.Mainboard;

0 comments on commit be3ee1b

Please sign in to comment.