mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
cpuinfo: cputype api for G12A
PD#156734: cpuinfo: cputype api for G12A Change-Id: Ib21038d4c622d0ca48c714f3773e63c89c408929 Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
This commit is contained in:
@@ -29,6 +29,9 @@
|
||||
#define MESON_CPU_MAJOR_ID_GXLX 0x26
|
||||
#define MESON_CPU_MAJOR_ID_TXHD 0x27
|
||||
|
||||
#define MESON_CPU_MAJOR_ID_G12A 0x28
|
||||
#define MESON_CPU_MAJOR_ID_G12B 0x29
|
||||
|
||||
#define MESON_CPU_VERSION_LVL_MAJOR 0
|
||||
#define MESON_CPU_VERSION_LVL_MINOR 1
|
||||
#define MESON_CPU_VERSION_LVL_PACK 2
|
||||
@@ -152,6 +155,11 @@ static inline bool is_meson_txhd_cpu(void)
|
||||
return get_cpu_type() == MESON_CPU_MAJOR_ID_TXHD;
|
||||
}
|
||||
|
||||
static inline bool is_meson_g12a_cpu(void)
|
||||
{
|
||||
return get_cpu_type() == MESON_CPU_MAJOR_ID_G12A;
|
||||
}
|
||||
|
||||
static inline bool cpu_after_eq(unsigned int id)
|
||||
{
|
||||
return get_cpu_type() >= id;
|
||||
|
||||
Reference in New Issue
Block a user