chipid: meson: add chip id definition for tl1
authorXingyu Chen <xingyu.chen@amlogic.com>
Tue, 25 Sep 2018 09:27:24 +0000 (17:27 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Sat, 29 Sep 2018 12:45:09 +0000 (05:45 -0700)
PD#172587: chipid: add chip id definition for tl1

Change-Id: Icd45ea3b960de2d9094878f96a6da584cc5c6d55
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
include/linux/amlogic/cpu_version.h

index 4b6913b..b0396b0 100644 (file)
@@ -32,6 +32,8 @@
 #define MESON_CPU_MAJOR_ID_G12A                0x28
 #define MESON_CPU_MAJOR_ID_G12B                0x29
 
+#define MESON_CPU_MAJOR_ID_TL1         0x2E
+
 #define MESON_CPU_VERSION_LVL_MAJOR    0
 #define MESON_CPU_VERSION_LVL_MINOR    1
 #define MESON_CPU_VERSION_LVL_PACK     2
@@ -170,6 +172,11 @@ static inline bool is_meson_g12b_cpu(void)
        return get_cpu_type() == MESON_CPU_MAJOR_ID_G12B;
 }
 
+static inline bool is_meson_tl1_cpu(void)
+{
+       return get_cpu_type() == MESON_CPU_MAJOR_ID_TL1;
+}
+
 static inline bool cpu_after_eq(unsigned int id)
 {
        return get_cpu_type() >= id;