diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-07-07 23:44:17 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-07-12 19:32:04 +0000 |
commit | db5557972ab4e050cd1d85712f512ebbafbfcb68 (patch) | |
tree | ff4ff27fb2f692bac6884c2ef1ab8e40f54918e0 /src/mainboard | |
parent | f3de8859a80add88c80e1b04b91be3dabebdbb47 (diff) |
mb/getac/p470: Drop dead code
This code is not even being build-tested. Drop it before it grows moss.
Change-Id: Ida12426c51313a7642b5c363e58a79d77b1b096b
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43240
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michael Niewöhner
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/getac/p470/mainboard.c | 26 |
1 files changed, 0 insertions, 26 deletions
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 = { |