Martin Roth | 5474eb1 | 2018-05-26 19:22:33 -0600 | [diff] [blame] | 1 | /* |
| 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älkki | f1b58b7 | 2019-03-01 13:43:02 +0200 | [diff] [blame] | 14 | #include <device/pci_ops.h> |
Arthur Heymans | 99e578e | 2019-01-15 20:14:33 +0100 | [diff] [blame^] | 15 | #include <cpu/intel/car/bootblock.h> |
| 16 | #include "pineview.h" |
| 17 | |
Damien Zammit | 2cfab90 | 2016-01-18 16:39:51 +1100 | [diff] [blame] | 18 | #define MMCONF_256_BUSSES 16 |
| 19 | #define ENABLE 1 |
Damien Zammit | 6247793 | 2015-05-03 21:34:38 +1000 | [diff] [blame] | 20 | |
Arthur Heymans | 99e578e | 2019-01-15 20:14:33 +0100 | [diff] [blame^] | 21 | void bootblock_early_northbridge_init(void) |
Damien Zammit | 6247793 | 2015-05-03 21:34:38 +1000 | [diff] [blame] | 22 | { |
| 23 | pci_io_write_config32(PCI_DEV(0,0,0), PCIEXBAR, |
Damien Zammit | 2cfab90 | 2016-01-18 16:39:51 +1100 | [diff] [blame] | 24 | CONFIG_MMCONF_BASE_ADDRESS | MMCONF_256_BUSSES | ENABLE); |
Damien Zammit | 6247793 | 2015-05-03 21:34:38 +1000 | [diff] [blame] | 25 | } |