cpu: add the cpuid check interface [1/1]

PD#SWPL-5865

Problem:
SM1 bring up

Solution:
add the cpuid check interface

Verify:
AC200

Change-Id: Ifa7dd8fb0b6ec621411652acf6b799e69c4069b7
Signed-off-by: zhiqiang liang <zhiqiang.liang@amlogic.com>
This commit is contained in:
zhiqiang liang
2019-03-20 15:00:40 +08:00
committed by Luan Yuan
parent bd79037a35
commit 431abb3487

View File

@@ -186,6 +186,11 @@ static inline bool is_meson_tl1_cpu(void)
return get_cpu_type() == MESON_CPU_MAJOR_ID_TL1;
}
static inline bool is_meson_sm1_cpu(void)
{
return get_cpu_type() == MESON_CPU_MAJOR_ID_SM1;
}
static inline bool cpu_after_eq(unsigned int id)
{
return get_cpu_type() >= id;