mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
cpuversion: add SoC rev api [1/2]
PD#SWPL-4582 Problem: Need api to distinguish G12B revB Solution: Add rev A/B/C api Verify: W400 Change-Id: I5cf82fcfc513f621513914cf83d18fe5c5ec081d Signed-off-by: Qiufang Dai <qiufang.dai@amlogic.com>
This commit is contained in:
@@ -15,6 +15,9 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* All of these api should be call after early_initcall stage
|
||||
*/
|
||||
#ifndef __PLAT_MESON_CPU_H
|
||||
#define __PLAT_MESON_CPU_H
|
||||
|
||||
@@ -196,4 +199,20 @@ static inline bool is_meson_txlx_package_962E(void)
|
||||
{
|
||||
return is_meson_txlx_cpu() && package_id_is(0x20);
|
||||
}
|
||||
|
||||
static inline bool is_meson_rev_a(void)
|
||||
{
|
||||
return (get_meson_cpu_version(MESON_CPU_VERSION_LVL_MINOR) == 0xA);
|
||||
}
|
||||
|
||||
static inline bool is_meson_rev_b(void)
|
||||
{
|
||||
return (get_meson_cpu_version(MESON_CPU_VERSION_LVL_MINOR) == 0xB);
|
||||
}
|
||||
|
||||
static inline bool is_meson_rev_c(void)
|
||||
{
|
||||
return (get_meson_cpu_version(MESON_CPU_VERSION_LVL_MINOR) == 0xC);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user