aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge/early_setup.c
diff options
context:
space:
mode:
authorMarshall Dawson <marshalldawson3rd@gmail.com>2017-06-13 14:19:02 -0600
committerMartin Roth <martinroth@google.com>2017-06-27 20:51:46 +0000
commit8a906dff84950c0789afc05e046a377846f7f6ea (patch)
tree09cfacc1669b41f9a8299f58e02bda0938706463 /src/soc/amd/stoneyridge/early_setup.c
parentf3dc71e0310859ebec687a6d67d1fa8140fad754 (diff)
soc/amd/stoneyridge: Remove PCIe-PCI bridge
The Stoney Ridge does not contain this bridge like some of the older Hudson FCHs. Remove this support from the source. This moves the Stoney Ridge IRQ setup to the southbridge file, hudson.c. BUG=chrome-os-partner:62580062 Change-Id: I8f974ba76b8c20f4335dd8872eaf4b8172188ee2 Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Signed-off-by: Marc Jones <marcj303@gmail.com> Reviewed-on: https://review.coreboot.org/20198 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/amd/stoneyridge/early_setup.c')
-rw-r--r--src/soc/amd/stoneyridge/early_setup.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/soc/amd/stoneyridge/early_setup.c b/src/soc/amd/stoneyridge/early_setup.c
index 3c58e38540..68bccc4456 100644
--- a/src/soc/amd/stoneyridge/early_setup.c
+++ b/src/soc/amd/stoneyridge/early_setup.c
@@ -55,39 +55,6 @@ void hudson_pci_port80(void)
u8 byte;
pci_devfn_t dev;
- /* P2P Bridge */
- dev = PCI_DEV(0, SB_PCI_PORT_DEV, SB_PCI_PORT_FUNC);
-
- /* Chip Control: Enable subtractive decoding */
- byte = pci_read_config8(dev, 0x40);
- byte |= 1 << 5;
- pci_write_config8(dev, 0x40, byte);
-
- /* Misc Control: Enable subtractive decoding if 0x40 bit 5 is set */
- byte = pci_read_config8(dev, 0x4b);
- byte |= 1 << 7;
- pci_write_config8(dev, 0x4b, byte);
-
- /* The same IO Base and IO Limit here is meaningful because we set the
- * bridge to be subtractive. During early setup stage, we have to make
- * sure that data can go through port 0x80.
- */
- /* IO Base: 0xf000 */
- byte = pci_read_config8(dev, 0x1c);
- byte |= 0xf << 4;
- pci_write_config8(dev, 0x1c, byte);
-
- /* IO Limit: 0xf000 */
- byte = pci_read_config8(dev, 0x1d);
- byte |= 0xf << 4;
- pci_write_config8(dev, 0x1d, byte);
-
- /* PCI Command: Enable IO response */
- byte = pci_read_config8(dev, 0x04);
- byte |= 1 << 0;
- pci_write_config8(dev, 0x04, byte);
-
- /* LPC controller */
dev = PCI_DEV(0, PCU_DEV, LPC_FUNC);
byte = pci_read_config8(dev, 0x4a);