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:
Qiufang Dai
2018-05-07 11:37:14 +08:00
committed by Yixun Lan
parent b7d80224c5
commit eb3669cf00

View File

@@ -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;