]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/PlatformInitPei/PlatformSsaInitPeim.c
4ffa3a20a27c105bbb41664e4eb805bf52d985e9
[mirror_edk2.git] / Vlv2TbltDevicePkg / PlatformInitPei / PlatformSsaInitPeim.c
1 /** @file
2
3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
4
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7
8
9 Module Name:
10
11
12 PlatformSsaInitPeim.c
13
14 Abstract:
15
16
17 --*/
18
19 #include "PlatformEarlyInit.h"
20
21 /**
22 Perform SSA related platform initialization.
23
24 **/
25 VOID
26 PlatformSsaInit (
27 IN SYSTEM_CONFIGURATION *SystemConfiguration,
28 IN CONST EFI_PEI_SERVICES **PeiServices
29 )
30 {
31
32 DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - Start\n"));
33 DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - SystemConfiguration->ISPDevSel 0x%x\n",SystemConfiguration->ISPDevSel));
34 if(SystemConfiguration->ISPDevSel == 0x02)
35 {
36 //
37 // Device 3 Interrupt Route
38 //
39 MmioWrite16 (
40 (ILB_BASE_ADDRESS + R_PCH_ILB_D3IR),
41 V_PCH_ILB_DXXIR_IAR_PIRQH // For IUNIT
42 );
43 MmioRead16(ILB_BASE_ADDRESS + R_PCH_ILB_D3IR); // Read Posted Writes Register
44 DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - Device 3 Interrupt Route Done\n"));
45 }
46
47 //
48 // Device 2 Interrupt Route
49 //
50 MmioWrite16 (
51 (ILB_BASE_ADDRESS + R_PCH_ILB_D2IR),
52 V_PCH_ILB_DXXIR_IAR_PIRQA // For IGD
53 );
54 MmioRead16(ILB_BASE_ADDRESS + R_PCH_ILB_D2IR); // Read Posted Writes Register
55 DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - Device 2 Interrupt Route Done\n"));
56
57 return;
58 }