From eb3669cf00d3bfce79cdf2b8a34007136af7ce0f Mon Sep 17 00:00:00 2001 From: Qiufang Dai Date: Mon, 7 May 2018 11:37:14 +0800 Subject: [PATCH] cpuver: g12b: add cpuversion api for g12b PD#165090: add cpuversion api for g12b Change-Id: I64a5edb8953258b2033fe6aab05e75890ff7e9ae Signed-off-by: Qiufang Dai --- include/linux/amlogic/cpu_version.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/amlogic/cpu_version.h b/include/linux/amlogic/cpu_version.h index 471c8be59811..4b6913ba1ec8 100644 --- a/include/linux/amlogic/cpu_version.h +++ b/include/linux/amlogic/cpu_version.h @@ -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;