mirror of
https://review.coreboot.org/flashrom.git
synced 2025-08-18 04:40:16 +02:00
Revert "Revert "Add Gemini Lake support""
This reverts commit a2b33b9f30
.
Change-Id: Id0106ecb2612d1c7b286c3b849a42756caf741cd
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/54277
This commit is contained in:
@@ -601,6 +601,7 @@ static enum chipbustype enable_flash_ich_report_gcs(
|
||||
case CHIPSET_300_SERIES_CANNON_POINT:
|
||||
case CHIPSET_400_SERIES_COMET_POINT:
|
||||
case CHIPSET_APOLLO_LAKE:
|
||||
case CHIPSET_GEMINI_LAKE:
|
||||
reg_name = "BIOS_SPI_BC";
|
||||
gcs = pci_read_long(dev, 0xdc);
|
||||
bild = (gcs >> 7) & 1;
|
||||
@@ -699,6 +700,7 @@ static enum chipbustype enable_flash_ich_report_gcs(
|
||||
boot_straps = boot_straps_pch8_lp;
|
||||
break;
|
||||
case CHIPSET_APOLLO_LAKE:
|
||||
case CHIPSET_GEMINI_LAKE:
|
||||
boot_straps = boot_straps_apl;
|
||||
break;
|
||||
case CHIPSET_8_SERIES_WELLSBURG: // FIXME: check datasheet
|
||||
@@ -726,6 +728,7 @@ static enum chipbustype enable_flash_ich_report_gcs(
|
||||
case CHIPSET_300_SERIES_CANNON_POINT:
|
||||
case CHIPSET_400_SERIES_COMET_POINT:
|
||||
case CHIPSET_APOLLO_LAKE:
|
||||
case CHIPSET_GEMINI_LAKE:
|
||||
bbs = (gcs >> 6) & 0x1;
|
||||
break;
|
||||
default:
|
||||
@@ -976,6 +979,11 @@ static int enable_flash_apl(struct pci_dev *const dev, const char *const name)
|
||||
return enable_flash_pch100_or_c620(dev, name, 0x0d, 2, CHIPSET_APOLLO_LAKE);
|
||||
}
|
||||
|
||||
static int enable_flash_glk(struct pci_dev *const dev, const char *const name)
|
||||
{
|
||||
return enable_flash_pch100_or_c620(dev, name, 0x0d, 2, CHIPSET_GEMINI_LAKE);
|
||||
}
|
||||
|
||||
/* Silvermont architecture: Bay Trail(-T/-I), Avoton/Rangeley.
|
||||
* These have a distinctly different behavior compared to other Intel chipsets and hence are handled separately.
|
||||
*
|
||||
@@ -2076,6 +2084,7 @@ const struct penable chipset_enables[] = {
|
||||
{0x8086, 0xa2d2, B_S, NT, "Intel", "X299", enable_flash_pch100},
|
||||
{0x8086, 0x5ae8, B_S, DEP, "Intel", "Apollo Lake", enable_flash_apl},
|
||||
{0x8086, 0x5af0, B_S, DEP, "Intel", "Apollo Lake", enable_flash_apl},
|
||||
{0x8086, 0x31e8, B_S, DEP, "Intel", "Gemini Lake", enable_flash_glk},
|
||||
{0x8086, 0xa303, B_S, NT, "Intel", "H310", enable_flash_pch300},
|
||||
{0x8086, 0xa304, B_S, NT, "Intel", "H370", enable_flash_pch300},
|
||||
{0x8086, 0xa305, B_S, NT, "Intel", "Z390", enable_flash_pch300},
|
||||
|
Reference in New Issue
Block a user