blob: fe9753dbb6a25aec334e31c9ce10a2cc6daf9012 [file] [log] [blame]
Angel Pons4b429832020-04-02 23:48:50 +02001/* SPDX-License-Identifier: GPL-2.0-only */
2/* This file is part of the coreboot project. */
Vladimir Serbinenkoc6f6be02013-11-12 22:32:08 +01003
Angel Pons95de2312020-02-17 13:08:53 +01004#include "ironlake.h"
Vladimir Serbinenkoc6f6be02013-11-12 22:32:08 +01005
6#define PCI_DEV_SNB PCI_DEV(0, 0, 0)
7
Angel Pons95de2312020-02-17 13:08:53 +01008void intel_ironlake_finalize_smm(void)
Vladimir Serbinenkoc6f6be02013-11-12 22:32:08 +01009{
Vladimir Serbinenkoc6f6be02013-11-12 22:32:08 +010010 MCHBAR32_OR(0x5500, 1 << 0); /* PAVP */
11 MCHBAR32_OR(0x5f00, 1 << 31); /* SA PM */
12 MCHBAR32_OR(0x6020, 1 << 0); /* UMA GFX */
13 MCHBAR32_OR(0x63fc, 1 << 0); /* VTDTRK */
14 MCHBAR32_OR(0x6800, 1 << 31);
15 MCHBAR32_OR(0x7000, 1 << 31);
16 MCHBAR32_OR(0x77fc, 1 << 0);
17
18 /* Memory Controller Lockdown */
19 MCHBAR8(0x50fc) = 0x8f;
20
21 /* Read+write the following */
22 MCHBAR32(0x6030) = MCHBAR32(0x6030);
23 MCHBAR32(0x6034) = MCHBAR32(0x6034);
24 MCHBAR32(0x6008) = MCHBAR32(0x6008);
25}