From 6c00d8ec59fd3de1934a343c32c00a34afbbe761 Mon Sep 17 00:00:00 2001 From: zhiqiang liang Date: Wed, 20 Mar 2019 15:00:40 +0800 Subject: [PATCH] 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 --- 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 716ee796d8cc..c658c74707f9 100644 --- a/include/linux/amlogic/cpu_version.h +++ b/include/linux/amlogic/cpu_version.h @@ -189,6 +189,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;