From 3313a78e36da73f05da7402699f04909595a0c9d Mon Sep 17 00:00:00 2001 From: zaolin Date: Wed, 31 Oct 2018 16:43:43 +0100 Subject: northbridge/intel/fsp_*: Remove legacy SoCs * Remove FSP Sandy/Ivybrige which are unused. * Open Source implementation isn't final but good enough to replace FSP version. * For new ports use NORTHBRIDGE_INTEL_IVYBRIDGE and NORTHBRIDGE_INTEL_SANDYBRIDGE Change-Id: I7b6bc4bfdd0481c8fe5b2b3d8f8b2eb9aa3c3b9e Signed-off-by: Philipp Deppenwiese Reviewed-on: https://review.coreboot.org/29402 Reviewed-by: Nico Huber Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/southbridge/intel/fsp_bd82x6x/early_init.c | 186 ------------------------- 1 file changed, 186 deletions(-) delete mode 100644 src/southbridge/intel/fsp_bd82x6x/early_init.c (limited to 'src/southbridge/intel/fsp_bd82x6x/early_init.c') diff --git a/src/southbridge/intel/fsp_bd82x6x/early_init.c b/src/southbridge/intel/fsp_bd82x6x/early_init.c deleted file mode 100644 index 1e281aad5b..0000000000 --- a/src/southbridge/intel/fsp_bd82x6x/early_init.c +++ /dev/null @@ -1,186 +0,0 @@ -/* - * This file is part of the coreboot project. - * - * Copyright (C) 2007-2010 coresystems GmbH - * Copyright (C) 2011 Google Inc - * - * 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; version 2 of the License. - * - * 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. - */ - -#include -#include -#include -#include -#include -#include -#include "pch.h" - -#define FD_ENTRIES 32 -#define FD2_ENTRIES 5 - -const static char *fd_set_strings[FD_ENTRIES] = { - "", - "PCI Bridge (D30:F0) Disabled\n", - "SATA 1(D31:F2) Disabled\n", - "SMBus Config space Disabled\n", - "High Definition Audio Disabled\n", - "Reserved bit 5 set\n", - "Reserved bit 6 set\n", - "Reserved bit 7 set\n", - "Reserved bit 8 set\n", - "Reserved bit 9 set\n", - "Reserved bit 10 set\n", - "Reserved bit 11 set\n", - "Reserved bit 12 set\n", - "EHCI #2 Disabled\n", - "LPC Bridge Disabled\n", - "EHCI #1 Disabled\n", - "PCIe bridge 1 Disabled\n", - "PCIe bridge 2 Disabled\n", - "PCIe bridge 3 Disabled\n", - "PCIe bridge 4 Disabled\n", - "PCIe bridge 5 Disabled\n", - "PCIe bridge 6 Disabled\n", - "PCIe bridge 7 Disabled\n", - "PCIe bridge 8 Disabled\n", - "Thermal Sensor (D31:F6) Registers Disabled\n", - "SATA 2 (D31:F5) Disabled\n", - "Reserved bit 26 set\n", - "Reserved bit 27 set\n", - "Reserved bit 28 set\n", - "Reserved bit 29 set\n", - "Reserved bit 30 set\n", - "Reserved bit 31 set\n", -}; - -const static char *fd_notset_strings[FD_ENTRIES] = { - "ERROR: Required field NOT programmed\n", - "PCI Bridge (D30:F0) enabled\n", - "SATA 1(D31:F2) enabled\n", - "SMBus Config space enabled\n", - "High Definition Audio enabled\n", - "", - "", - "", - "", - "", - "", - "", - "", - "EHCI #2 Enabled\n", - "LPC Bridge Enabled\n", - "EHCI #1 Enabled\n", - "PCIe bridge 1 Enabled\n", - "PCIe bridge 2 Enabled\n", - "PCIe bridge 3 Enabled\n", - "PCIe bridge 4 Enabled\n", - "PCIe bridge 5 Enabled\n", - "PCIe bridge 6 Enabled\n", - "PCIe bridge 7 Enabled\n", - "PCIe bridge 8 Enabled\n", - "Thermal Sensor (D31:F6) Registers Enabled\n", - "SATA 2 (D31:F5) Enabled\n", - "", - "", - "", - "", - "", - "", -}; - -const static char *fd2_set_strings[FD2_ENTRIES] = { - "Display BDF Enabled\n", - "MEI #1 (D22:F0) Disabled\n", - "MEI #2 (D22:F1) Disabled\n", - "IDE-R (D22:F2) Disabled\n", - "KT (D22:F3) Disabled\n" -}; - -const static char *fd2_notset_strings[FD2_ENTRIES] = { - "Display BDF Disabled\n", - "MEI #1 (D22:F0) Enabled\n", - "MEI #2 (D22:F1) Enabled\n", - "IDE-R (D22:F2) Enabled\n", - "KT (D22:F3) Enabled\n" -}; - -void display_fd_settings(void) -{ - u32 reg32; - int i; - - reg32 = RCBA32(FD); - for (i = 0; i < FD_ENTRIES; i++) { - if (reg32 & (1 << i)) { - printk(BIOS_SPEW, "%s", fd_set_strings[i]); - } else { - printk(BIOS_SPEW, "%s", fd_notset_strings[i]); - } - } - - reg32 = RCBA32(FD2); - for (i = 0; i < FD2_ENTRIES; i++) { - if (reg32 & (1 << i)) { - printk(BIOS_SPEW, "%s", fd2_set_strings[i]); - } else { - printk(BIOS_SPEW, "%s", fd2_notset_strings[i]); - } - } -} - -static void sandybridge_setup_bars(void) -{ - /* Setting up Southbridge. */ - printk(BIOS_DEBUG, "Setting up static southbridge registers..."); - pci_write_config32(PCI_DEV(0, 0x1f, 0), RCBA, (uintptr_t)DEFAULT_RCBA | 1); - - pci_write_config32(PCI_DEV(0, 0x1f, 0), PMBASE, DEFAULT_PMBASE | 1); - pci_write_config8(PCI_DEV(0, 0x1f, 0), 0x44 /* ACPI_CNTL */, 0x80); /* Enable ACPI BAR */ - - printk(BIOS_DEBUG, " done.\n"); - - printk(BIOS_DEBUG, "Disabling Watchdog reboot..."); - RCBA32(GCS) = RCBA32(GCS) | (1 << 5); /* No reset */ - outw((1 << 11), DEFAULT_PMBASE | 0x60 | 0x08); /* halt timer */ - printk(BIOS_DEBUG, " done.\n"); - -#if IS_ENABLED(CONFIG_ELOG_BOOT_COUNT) - /* Increment Boot Counter for non-S3 resume */ - if ((inw(DEFAULT_PMBASE + PM1_STS) & WAK_STS) && - ((inl(DEFAULT_PMBASE + PM1_CNT) >> 10) & 7) != SLP_TYP_S3) - boot_count_increment(); -#endif - - printk(BIOS_DEBUG, " done.\n"); - -#if IS_ENABLED(CONFIG_ELOG_BOOT_COUNT) - /* Increment Boot Counter except when resuming from S3 */ - if ((inw(DEFAULT_PMBASE + PM1_STS) & WAK_STS) && - ((inl(DEFAULT_PMBASE + PM1_CNT) >> 10) & 7) == SLP_TYP_S3) - return; - boot_count_increment(); -#endif -} - -void sandybridge_sb_early_initialization(void) -{ - /* Setup all BARs required for early PCIe and raminit */ - sandybridge_setup_bars(); -} - -void early_pch_init(void) -{ - u8 reg8; - - // reset rtc power status - reg8 = pci_read_config8(PCH_LPC_DEV, 0xa4); - reg8 &= ~(1 << 2); - pci_write_config8(PCH_LPC_DEV, 0xa4, reg8); -} -- cgit v1.2.3