aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801jx/early_init.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2017-08-08 13:32:08 +0200
committerMartin Roth <martinroth@google.com>2017-08-10 16:00:59 +0000
commit0c67a66d23428151686ec25d046c4353dbdec91a (patch)
treef11fa3f4df5b6783d906c8d4e4501e383d75d756 /src/southbridge/intel/i82801jx/early_init.c
parent2a4aadab7060b4327e9164b74995e8bfb5383f56 (diff)
sb/intel/i82801jx: Remove dead code
Setting up default BARs and DMI init code is done in northbridge code. Change-Id: I6cfa3018ca7f5ef351415c4ec6e178ade353f7a7 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/20906 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/southbridge/intel/i82801jx/early_init.c')
-rw-r--r--src/southbridge/intel/i82801jx/early_init.c59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/southbridge/intel/i82801jx/early_init.c b/src/southbridge/intel/i82801jx/early_init.c
deleted file mode 100644
index e2ac852316..0000000000
--- a/src/southbridge/intel/i82801jx/early_init.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2012 secunet Security Networks AG
- *
- * 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 <arch/io.h>
-#include "i82801jx.h"
-
-void i82801jx_early_init(void)
-{
- const pci_devfn_t d31f0 = PCI_DEV(0, 0x1f, 0);
-
- /* Set up RCBA. */
- pci_write_config32(d31f0, D31F0_RCBA, (uintptr_t)DEFAULT_RCBA | 1);
-
- /* Set up PMBASE. */
- pci_write_config32(d31f0, D31F0_PMBASE, DEFAULT_PMBASE | 1);
- /* Enable PMBASE. */
- pci_write_config8(d31f0, D31F0_ACPI_CNTL, 0x80);
-
- /* Set up GPIOBASE. */
- pci_write_config32(d31f0, D31F0_GPIO_BASE, DEFAULT_GPIOBASE);
- /* Enable GPIO. */
- pci_write_config8(d31f0, D31F0_GPIO_CNTL,
- pci_read_config8(d31f0, D31F0_GPIO_CNTL) | 0x10);
-
- /* Reset watchdog. */
- outw(0x0008, DEFAULT_TCOBASE + 0x04); /* R/WC, clear TCO caused SMI. */
- outw(0x0002, DEFAULT_TCOBASE + 0x06); /* R/WC, clear second timeout. */
-
- /* Enable upper 128bytes of CMOS. */
- RCBA32(0x3400) = (1 << 2);
-
- /* Initialize power management initialization
- register early as it affects reboot behavior. */
- /* Bit 20 activates global reset of host and ME on cf9 writes of 0x6
- and 0xe (required if ME is disabled but present), bit 31 locks it.
- The other bits are 'must write'. */
- u8 reg8 = pci_read_config8(d31f0, 0xac);
- reg8 |= (1 << 31) | (1 << 30) | (1 << 20) | (3 << 8);
- pci_write_config8(d31f0, 0xac, reg8);
-
- /* TODO: If RTC power failed, reset RTC state machine
- (set, then reset RTC 0x0b bit7) */
-
- /* TODO: Check power state bits in GEN_PMCON_2 (D31F0 0xa2)
- before they get cleared. */
-}