mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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:
committed by
Luan Yuan
parent
bd79037a35
commit
431abb3487
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user