2021-08-04 00:04:09 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2021 Intel Corporation
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "shared/source/gen12lp/helpers_gen12lp.h"
|
|
|
|
|
#include "shared/source/helpers/hw_info.h"
|
|
|
|
|
#include "shared/source/os_interface/hw_info_config.h"
|
|
|
|
|
#include "shared/source/os_interface/hw_info_config.inl"
|
2021-08-03 11:48:35 +00:00
|
|
|
#include "shared/source/os_interface/hw_info_config_bdw_and_later.inl"
|
2021-08-04 00:04:09 +00:00
|
|
|
|
|
|
|
|
namespace NEO {
|
2021-08-19 11:06:49 +00:00
|
|
|
constexpr static auto gfxProduct = IGFX_ALDERLAKE_S;
|
|
|
|
|
|
|
|
|
|
#include "shared/source/gen12lp/os_agnostic_hw_info_config_gen12lp.inl"
|
2021-08-04 00:04:09 +00:00
|
|
|
|
|
|
|
|
template <>
|
|
|
|
|
void HwInfoConfigHw<IGFX_ALDERLAKE_S>::adjustPlatformForProductFamily(HardwareInfo *hwInfo) {
|
|
|
|
|
Gen12LPHelpers::adjustPlatformForProductFamily(hwInfo->platform, GFXCORE_FAMILY::IGFX_GEN12LP_CORE);
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-20 15:41:43 +00:00
|
|
|
template <>
|
|
|
|
|
uint32_t HwInfoConfigHw<IGFX_ALDERLAKE_S>::getHwRevIdFromStepping(uint32_t stepping, const HardwareInfo &hwInfo) const {
|
|
|
|
|
switch (stepping) {
|
|
|
|
|
case REVISION_A0:
|
|
|
|
|
return 0x0;
|
|
|
|
|
case REVISION_B:
|
|
|
|
|
return 0x4;
|
|
|
|
|
}
|
|
|
|
|
return CommonConstants::invalidStepping;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-04 00:04:09 +00:00
|
|
|
template class HwInfoConfigHw<IGFX_ALDERLAKE_S>;
|
|
|
|
|
|
|
|
|
|
} // namespace NEO
|