blob: 23771adc2d580af81cff1d69d85b72b4d7db4377 [file] [log] [blame]
Vladimir Serbinenkoc6f6be02013-11-12 22:32:08 +01001/*
2 * This file is part of the coreboot project.
3 *
Vladimir Serbinenkoc6f6be02013-11-12 22:32:08 +01004 *
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 Serbinenkoc6f6be02013-11-12 22:32:08 +010014 */
15
Angel Pons95de2312020-02-17 13:08:53 +010016#include "ironlake.h"
Vladimir Serbinenkoc6f6be02013-11-12 22:32:08 +010017
18#define PCI_DEV_SNB PCI_DEV(0, 0, 0)
19
Angel Pons95de2312020-02-17 13:08:53 +010020void intel_ironlake_finalize_smm(void)
Vladimir Serbinenkoc6f6be02013-11-12 22:32:08 +010021{
Vladimir Serbinenkoc6f6be02013-11-12 22:32:08 +010022 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}