blob: f3eab492f55bb55c00aac8b9b862d43a2c90c441 [file] [log] [blame]
Martin Roth5474eb12018-05-26 19:22:33 -06001/*
2 * This file is part of the coreboot project.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
Damien Zammit62477932015-05-03 21:34:38 +100014#include <arch/io.h>
Kyösti Mälkkif1b58b72019-03-01 13:43:02 +020015#include <device/pci_ops.h>
Damien Zammit62477932015-05-03 21:34:38 +100016#define PCIEXBAR 0x60
Damien Zammit2cfab902016-01-18 16:39:51 +110017#define MMCONF_256_BUSSES 16
18#define ENABLE 1
Damien Zammit62477932015-05-03 21:34:38 +100019
20static void bootblock_northbridge_init(void)
21{
22 pci_io_write_config32(PCI_DEV(0,0,0), PCIEXBAR,
Damien Zammit2cfab902016-01-18 16:39:51 +110023 CONFIG_MMCONF_BASE_ADDRESS | MMCONF_256_BUSSES | ENABLE);
Damien Zammit62477932015-05-03 21:34:38 +100024}