diff --git a/include/linux/amlogic/cpu_version.h b/include/linux/amlogic/cpu_version.h index 4b6913ba1ec8..b0396b0ef3b9 100644 --- a/include/linux/amlogic/cpu_version.h +++ b/include/linux/amlogic/cpu_version.h @@ -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;