]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/PlatformInitPei/PlatformSsaInitPeim.c
BaseTools/Capsule: Do not support -o with --dump-info
[mirror_edk2.git] / Vlv2TbltDevicePkg / PlatformInitPei / PlatformSsaInitPeim.c
1 /** @file
2
3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
4
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13
14 Module Name:
15
16
17 PlatformSsaInitPeim.c
18
19 Abstract:
20
21
22 --*/
23
24 #include "PlatformEarlyInit.h"
25
26 /**
27 Perform SSA related platform initialization.
28
29 **/
30 VOID
31 PlatformSsaInit (
32 IN SYSTEM_CONFIGURATION *SystemConfiguration,
33 IN CONST EFI_PEI_SERVICES **PeiServices
34 )
35 {
36
37 DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - Start\n"));
38 DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - SystemConfiguration->ISPDevSel 0x%x\n",SystemConfiguration->ISPDevSel));
39 if(SystemConfiguration->ISPDevSel == 0x02)
40 {
41 //
42 // Device 3 Interrupt Route
43 //
44 MmioWrite16 (
45 (ILB_BASE_ADDRESS + R_PCH_ILB_D3IR),
46 V_PCH_ILB_DXXIR_IAR_PIRQH // For IUNIT
47 );
48 MmioRead16(ILB_BASE_ADDRESS + R_PCH_ILB_D3IR); // Read Posted Writes Register
49 DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - Device 3 Interrupt Route Done\n"));
50 }
51
52 //
53 // Device 2 Interrupt Route
54 //
55 MmioWrite16 (
56 (ILB_BASE_ADDRESS + R_PCH_ILB_D2IR),
57 V_PCH_ILB_DXXIR_IAR_PIRQA // For IGD
58 );
59 MmioRead16(ILB_BASE_ADDRESS + R_PCH_ILB_D2IR); // Read Posted Writes Register
60 DEBUG ((EFI_D_ERROR, "PlatformSsaInit() - Device 2 Interrupt Route Done\n"));
61
62 return;
63 }