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