summaryrefslogtreecommitdiff
path: root/src/southbridge/nvidia/ck804/lpc.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2015-02-03 08:43:51 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2015-02-16 23:14:18 +0100
commitb4fa3fd2aedc2d02c973c664a218e5551b4118a1 (patch)
tree97fc27616fa91ea510541d0a902c68c8522eb062 /src/southbridge/nvidia/ck804/lpc.c
parent413e3da8c039360079c0c6a93f28456d0d80ff76 (diff)
nvidia/ck804: Minor cleanup on dead code
Change-Id: I07f4190ab73ec3468e3738be14d64468e2a05720 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/8340 Tested-by: build bot (Jenkins) Reviewed-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'src/southbridge/nvidia/ck804/lpc.c')
-rw-r--r--src/southbridge/nvidia/ck804/lpc.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/southbridge/nvidia/ck804/lpc.c b/src/southbridge/nvidia/ck804/lpc.c
index 50881086a5..5df8acf29a 100644
--- a/src/southbridge/nvidia/ck804/lpc.c
+++ b/src/southbridge/nvidia/ck804/lpc.c
@@ -38,8 +38,6 @@
#include <cpu/amd/powernow.h>
#include "chip.h"
-#define CK804_CHIP_REV 2
-
#define NMI_OFF 0
// Power restoration control register is at 0x7a
@@ -119,11 +117,6 @@ static void lpc_init(device_t dev)
pm_base = pci_read_config32(dev, 0x60) & 0xff00;
printk(BIOS_INFO, "%s: pm_base = %x \n", __func__, pm_base);
-#if CK804_CHIP_REV == 1
- if (dev->bus->secondary != 1)
- return;
-#endif
-
/* Power after power fail */
on = CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL;
get_option(&on, "power_on_after_fail");
@@ -337,7 +330,6 @@ static struct device_operations lpc_ops = {
#endif
.init = lpc_init,
.scan_bus = scan_static_bus,
- // .enable = ck804_enable,
.ops_pci = &ck804_pci_ops,
};
@@ -353,13 +345,6 @@ static const struct pci_driver lpc_driver_pro __pci_driver = {
.device = PCI_DEVICE_ID_NVIDIA_CK804_PRO,
};
-#if CK804_CHIP_REV == 1
-static const struct pci_driver lpc_driver_slave __pci_driver = {
- .ops = &lpc_ops,
- .vendor = PCI_VENDOR_ID_NVIDIA,
- .device = PCI_DEVICE_ID_NVIDIA_CK804_SLAVE,
-};
-#else
static struct device_operations lpc_slave_ops = {
.read_resources = ck804_lpc_read_resources,
.set_resources = pci_dev_set_resources,
@@ -368,7 +353,6 @@ static struct device_operations lpc_slave_ops = {
.write_acpi_tables = acpi_write_hpet,
#endif
.init = lpc_slave_init,
- // .enable = ck804_enable,
.ops_pci = &ck804_pci_ops,
};
@@ -377,4 +361,3 @@ static const struct pci_driver lpc_driver_slave __pci_driver = {
.vendor = PCI_VENDOR_ID_NVIDIA,
.device = PCI_DEVICE_ID_NVIDIA_CK804_SLAVE,
};
-#endif