Vladimir Serbinenko | c6f6be0 | 2013-11-12 22:32:08 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
Vladimir Serbinenko | c6f6be0 | 2013-11-12 22:32:08 +0100 | [diff] [blame] | 4 | * |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License as |
| 7 | * published by the Free Software Foundation; version 2 of |
| 8 | * the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
Vladimir Serbinenko | c6f6be0 | 2013-11-12 22:32:08 +0100 | [diff] [blame] | 14 | */ |
| 15 | |
Angel Pons | 95de231 | 2020-02-17 13:08:53 +0100 | [diff] [blame] | 16 | #include "ironlake.h" |
Vladimir Serbinenko | c6f6be0 | 2013-11-12 22:32:08 +0100 | [diff] [blame] | 17 | |
| 18 | #define PCI_DEV_SNB PCI_DEV(0, 0, 0) |
| 19 | |
Angel Pons | 95de231 | 2020-02-17 13:08:53 +0100 | [diff] [blame] | 20 | void intel_ironlake_finalize_smm(void) |
Vladimir Serbinenko | c6f6be0 | 2013-11-12 22:32:08 +0100 | [diff] [blame] | 21 | { |
Vladimir Serbinenko | c6f6be0 | 2013-11-12 22:32:08 +0100 | [diff] [blame] | 22 | MCHBAR32_OR(0x5500, 1 << 0); /* PAVP */ |
| 23 | MCHBAR32_OR(0x5f00, 1 << 31); /* SA PM */ |
| 24 | MCHBAR32_OR(0x6020, 1 << 0); /* UMA GFX */ |
| 25 | MCHBAR32_OR(0x63fc, 1 << 0); /* VTDTRK */ |
| 26 | MCHBAR32_OR(0x6800, 1 << 31); |
| 27 | MCHBAR32_OR(0x7000, 1 << 31); |
| 28 | MCHBAR32_OR(0x77fc, 1 << 0); |
| 29 | |
| 30 | /* Memory Controller Lockdown */ |
| 31 | MCHBAR8(0x50fc) = 0x8f; |
| 32 | |
| 33 | /* Read+write the following */ |
| 34 | MCHBAR32(0x6030) = MCHBAR32(0x6030); |
| 35 | MCHBAR32(0x6034) = MCHBAR32(0x6034); |
| 36 | MCHBAR32(0x6008) = MCHBAR32(0x6008); |
| 37 | } |