mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
cpuver: g12b: add cpuversion api for g12b
PD#165090: add cpuversion api for g12b Change-Id: I64a5edb8953258b2033fe6aab05e75890ff7e9ae Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
This commit is contained in:
@@ -165,6 +165,11 @@ static inline bool is_meson_g12a_cpu(void)
|
||||
return get_cpu_type() == MESON_CPU_MAJOR_ID_G12A;
|
||||
}
|
||||
|
||||
static inline bool is_meson_g12b_cpu(void)
|
||||
{
|
||||
return get_cpu_type() == MESON_CPU_MAJOR_ID_G12B;
|
||||
}
|
||||
|
||||
static inline bool cpu_after_eq(unsigned int id)
|
||||
{
|
||||
return get_cpu_type() >= id;
|
||||
|
||||
Reference in New Issue
Block a user