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:
Qiufang Dai
2017-12-18 21:56:00 +08:00
committed by Yixun Lan
parent ad6c0e42a2
commit bbc834999a

View File

@@ -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;