From db5557972ab4e050cd1d85712f512ebbafbfcb68 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Tue, 7 Jul 2020 23:44:17 +0200 Subject: mb/getac/p470: Drop dead code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This code is not even being build-tested. Drop it before it grows moss. Change-Id: Ida12426c51313a7642b5c363e58a79d77b1b096b Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/43240 Tested-by: build bot (Jenkins) Reviewed-by: Michael Niewöhner --- src/mainboard/getac/p470/mainboard.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/mainboard') diff --git a/src/mainboard/getac/p470/mainboard.c b/src/mainboard/getac/p470/mainboard.c index cc7f23ddfe..baabb4bd27 100644 --- a/src/mainboard/getac/p470/mainboard.c +++ b/src/mainboard/getac/p470/mainboard.c @@ -34,30 +34,6 @@ static void ec_enable(void) send_ec_oem_data(0x01); } -static void pcie_limit_power(void) -{ -#if 0 - // This piece of code needs further debugging as it crashes the - // machine. It should set the slot numbers and enable power - // limitation for the PCIe slots. - - struct device *dev; - - dev = pcidev_on_root(28, 0); - if (dev) pci_write_config32(dev, 0x54, 0x0010a0e0); - - dev = pcidev_on_root(28, 1); - if (dev) pci_write_config32(dev, 0x54, 0x0018a0e0); - - dev = pcidev_on_root(28, 2); - if (dev) pci_write_config32(dev, 0x54, 0x0020a0e0); - - dev = pcidev_on_root(28, 3); - if (dev) pci_write_config32(dev, 0x54, 0x0028a0e0); -#endif -} - - static void mainboard_init(struct device *dev) { ec_enable(); @@ -70,8 +46,6 @@ static void mainboard_enable(struct device *dev) { dev->ops->init = mainboard_init; dev->ops->write_acpi_tables = mainboard_write_acpi_tables; - - pcie_limit_power(); } struct chip_operations mainboard_ops = { -- cgit v1.2.3