3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
19 #include "PlatformEarlyInit.h"
22 Perform SSA related platform initialization.
27 IN SYSTEM_CONFIGURATION
*SystemConfiguration
,
28 IN CONST EFI_PEI_SERVICES
**PeiServices
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)
37 // Device 3 Interrupt Route
40 (ILB_BASE_ADDRESS
+ R_PCH_ILB_D3IR
),
41 V_PCH_ILB_DXXIR_IAR_PIRQH
// For IUNIT
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"));
48 // Device 2 Interrupt Route
51 (ILB_BASE_ADDRESS
+ R_PCH_ILB_D2IR
),
52 V_PCH_ILB_DXXIR_IAR_PIRQA
// For IGD
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"));