blob: bd510b00eefe17a5f831556ddae9453e9ca2ef0f [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
Kyösti Mälkkif1b58b72019-03-01 13:43:02 +020014#include <device/pci_ops.h>
Arthur Heymans99e578e2019-01-15 20:14:33 +010015#include <cpu/intel/car/bootblock.h>
16#include "pineview.h"
17
Damien Zammit2cfab902016-01-18 16:39:51 +110018#define MMCONF_256_BUSSES 16
19#define ENABLE 1
Damien Zammit62477932015-05-03 21:34:38 +100020
Arthur Heymans99e578e2019-01-15 20:14:33 +010021void bootblock_early_northbridge_init(void)
Damien Zammit62477932015-05-03 21:34:38 +100022{
23 pci_io_write_config32(PCI_DEV(0,0,0), PCIEXBAR,
Damien Zammit2cfab902016-01-18 16:39:51 +110024 CONFIG_MMCONF_BASE_ADDRESS | MMCONF_256_BUSSES | ENABLE);
Damien Zammit62477932015-05-03 21:34:38 +100025}