aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/broadcom/bcm5785/bcm5785.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-11-19 17:26:49 +0100
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-11-20 19:05:23 +0000
commit4c9bbb9b34bd4b8ec65f090748d79b81c6aad6ae (patch)
treebde13843230c90c7d7b580b32f28cc1a0fbe3507 /src/southbridge/broadcom/bcm5785/bcm5785.c
parentfc20682f074a00b93501ad820824fcbd0f2d0ad1 (diff)
sb/broadcom/bcm5785: Drop support
Relocatable ramstage, postcar stage and C_ENVIRONMENT_BOOTBLOCK are now mandatory features, which platforms using this code lack. Change-Id: I2305e0d9de0d4b1768e171f4c65d07306e7c3801 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36970 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/southbridge/broadcom/bcm5785/bcm5785.c')
-rw-r--r--src/southbridge/broadcom/bcm5785/bcm5785.c99
1 files changed, 0 insertions, 99 deletions
diff --git a/src/southbridge/broadcom/bcm5785/bcm5785.c b/src/southbridge/broadcom/bcm5785/bcm5785.c
deleted file mode 100644
index ea77359257..0000000000
--- a/src/southbridge/broadcom/bcm5785/bcm5785.c
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2005 AMD
- * Written by Yinghai Lu <yinghai.lu@amd.com> for AMD.
- *
- * 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 <device/device.h>
-#include <device/pci.h>
-#include <device/pci_ops.h>
-#include <device/pci_ids.h>
-#include "bcm5785.h"
-
-void bcm5785_enable(struct device *dev)
-{
- struct device *sb_pci_main_dev;
- struct device *bus_dev;
- // unsigned index;
-
- /* See if we are on the behind the pcix bridge */
- bus_dev = dev->bus->dev;
- if ((bus_dev->vendor == PCI_VENDOR_ID_SERVERWORKS) &&
- (bus_dev->device == 0x0036)) // device under PCI-X Bridge
- {
- unsigned int devfn;
- devfn = bus_dev->path.pci.devfn + (1 << 3);
- sb_pci_main_dev = pcidev_path_behind(bus_dev->bus, devfn);
- // index = ((dev->path.pci.devfn & ~7) >> 3) + 8;
- } else if ((bus_dev->vendor == PCI_VENDOR_ID_SERVERWORKS) &&
- (bus_dev->device == 0x0104)) // device under PCI Bridge (under PCI-X)
- {
- unsigned int devfn;
- devfn = bus_dev->bus->dev->path.pci.devfn + (1 << 3);
- sb_pci_main_dev = pcidev_path_behind(bus_dev->bus->dev->bus,
- devfn);
- // index = ((dev->path.pci.devfn & ~7) >> 3) + 8;
- }
- else { // same bus
- unsigned int devfn;
- devfn = (dev->path.pci.devfn) & ~7;
- if (dev->vendor == PCI_VENDOR_ID_SERVERWORKS) {
- if (dev->device == 0x0036) //PCI-X Bridge
- { devfn += (1<<3); }
- else if (dev->device == 0x0223) // USB
- { devfn -= (1<<3); }
- }
- sb_pci_main_dev = pcidev_path_behind(dev->bus, devfn);
- // index = dev->path.pci.devfn & 7;
- }
- if (!sb_pci_main_dev) {
- return;
- }
-
- // get index now
-#if 0
- unsigned int reg_old, reg;
- if (index < 16) {
- reg = reg_old = pci_read_config16(sb_pci_main_dev, 0x48);
- reg &= ~(1 << index);
- if (dev->enabled) {
- reg |= (1 << index);
- }
- if (reg != reg_old) {
- pci_write_config16(sb_pci_main_dev, 0x48, reg);
- }
- }
- else if (index == 16) {
- reg = reg_old = pci_read_config8(sb_pci_main_dev, 0x47);
- reg &= ~(1 << 7);
- if (!dev->enabled) {
- reg |= (1 << 7);
- }
- if (reg != reg_old) {
- pci_write_config8(sb_pci_main_dev, 0x47, reg);
- }
- }
-#endif
-}
-
-void bcm5785_set_subsystem(struct device *dev, unsigned int vendor,
- unsigned int device)
-{
- pci_write_config32(dev, 0x40,
- ((device & 0xffff) << 16) | (vendor & 0xffff));
-}
-
-struct chip_operations southbridge_broadcom_bcm5785_ops = {
- CHIP_NAME("Serverworks BCM5785 Southbridge")
- .enable_dev = bcm5785_enable,
-};