Gitiles
Code Review
Sign In
review.coreboot.org
/
coreboot
/
d52bfbb6aa822b8d5137bedef638a5214a07e4da
/
.
/
src
/
cpu
/
intel
/
model_206ax
/
common.c
blob: a8813142b05813d1ae1094e9ce993d9eca2c481c [
file
] [
log
] [
blame
]
/* SPDX-License-Identifier: GPL-2.0-only */
#include
<cpu/x86/msr.h>
#include
"model_206ax.h"
int
get_platform_id
(
void
)
{
msr_t
msr
;
msr
=
rdmsr
(
IA32_PLATFORM_ID
);
/* Read Platform Id Bits 52:50 */
return
(
msr
.
hi
>>
18
)
&
0x7
;
}