cpuver: g12b: add cpuversion api for g12b
authorQiufang Dai <qiufang.dai@amlogic.com>
Mon, 7 May 2018 03:37:14 +0000 (11:37 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Fri, 29 Jun 2018 06:34:00 +0000 (23:34 -0700)
PD#165090: add cpuversion api for g12b

Change-Id: I64a5edb8953258b2033fe6aab05e75890ff7e9ae
Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
include/linux/amlogic/cpu_version.h

index 471c8be..4b6913b 100644 (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;