blob: 7ee3fdb284d1eebd897872a757df75b473de41a3 [file] [log] [blame]
Patrick Georgi02363b52020-05-05 20:48:50 +02001/* This file is part of the coreboot project. */
Damien Zammit43a1f782015-08-19 15:16:59 +10002/*
Damien Zammit43a1f782015-08-19 15:16:59 +10003 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
Kyösti Mälkkide640782019-12-03 07:30:26 +020015#include <arch/bootblock.h>
Kyösti Mälkkif1b58b72019-03-01 13:43:02 +020016#include <device/pci_ops.h>
Arthur Heymans7843bd52019-11-11 21:56:37 +010017#include "x4x.h"
Martin Rothcbe38922016-01-05 19:40:41 -070018#include "iomap.h"
Kyösti Mälkki197a3c62019-09-27 14:32:20 +030019
Arthur Heymans7843bd52019-11-11 21:56:37 +010020void bootblock_early_northbridge_init(void)
Damien Zammit43a1f782015-08-19 15:16:59 +100021{
22 uint32_t reg32;
23
24 /* Disable LaGrande Technology (LT) */
25 reg32 = TPM32(0);
26
27 reg32 = CONFIG_MMCONF_BASE_ADDRESS | 16 | 1;
Arthur Heymans70a1dda2017-03-09 01:58:24 +010028 pci_io_write_config32(PCI_DEV(0, 0, 0), D0F0_PCIEXBAR_LO, reg32);
Damien Zammit43a1f782015-08-19 15:16:59 +100029}