mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
chipid: meson: add chip id definition for tl1
PD#172587: chipid: add chip id definition for tl1 Change-Id: Icd45ea3b960de2d9094878f96a6da584cc5c6d55 Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user