Kyösti Mälkki | 3d0288d | 2016-12-04 15:39:44 +0200 | [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 | 0377a369 | 2019-01-06 10:44:49 +0200 | [diff] [blame] | 14 | #include <cpu/intel/car/bootblock.h> |
Kyösti Mälkki | 3d0288d | 2016-12-04 15:39:44 +0200 | [diff] [blame] | 15 | #include <arch/io.h> |
Kyösti Mälkki | f1b58b7 | 2019-03-01 13:43:02 +0200 | [diff] [blame^] | 16 | #include <device/pci_ops.h> |
Kyösti Mälkki | 3d0288d | 2016-12-04 15:39:44 +0200 | [diff] [blame] | 17 | |
Kyösti Mälkki | 0377a369 | 2019-01-06 10:44:49 +0200 | [diff] [blame] | 18 | void bootblock_early_southbridge_init(void) |
Kyösti Mälkki | 3d0288d | 2016-12-04 15:39:44 +0200 | [diff] [blame] | 19 | { |
| 20 | /* Set FWH IDs for 2 MB flash part. */ |
| 21 | if (CONFIG_ROM_SIZE == 0x200000) |
| 22 | pci_write_config32(PCI_DEV(0, 0x1f, 0), 0xe8, 0x00001111); |
| 23 | } |