mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
TM2: add chip id and name for tm2 [1/1]
PD#SWPL-6157 Problem: TM2 bring up need to update chip version name and id Solution: add the chipid and chip version name at dts and help file Verify: on ptm board4 Change-Id: I37e44828db1821c7fd2921c3e4271a27bd715b88 Signed-off-by: pan yang <pan.yang@amlogic.com> Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
This commit is contained in:
committed by
Luan Yuan
parent
6eee16bde4
commit
309d50fbfc
2148
arch/arm/boot/dts/amlogic/mesontm2.dtsi
Normal file
2148
arch/arm/boot/dts/amlogic/mesontm2.dtsi
Normal file
File diff suppressed because it is too large
Load Diff
2127
arch/arm64/boot/dts/amlogic/mesontm2.dtsi
Normal file
2127
arch/arm64/boot/dts/amlogic/mesontm2.dtsi
Normal file
File diff suppressed because it is too large
Load Diff
@@ -33,6 +33,7 @@
|
||||
MESON_CPU_MAJOR_ID_G12B, \
|
||||
MESON_CPU_MAJOR_ID_TL1, \
|
||||
MESON_CPU_MAJOR_ID_SM1, \
|
||||
MESON_CPU_MAJOR_ID_TM2, \
|
||||
0}
|
||||
#define REGISTER_FOR_GXCPU {\
|
||||
MESON_CPU_MAJOR_ID_GXBB, \
|
||||
@@ -46,6 +47,7 @@
|
||||
MESON_CPU_MAJOR_ID_G12B, \
|
||||
MESON_CPU_MAJOR_ID_TL1, \
|
||||
MESON_CPU_MAJOR_ID_SM1, \
|
||||
MESON_CPU_MAJOR_ID_TM2, \
|
||||
0}
|
||||
int codec_apb_read(unsigned int reg)
|
||||
{
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#define MESON_CPU_MAJOR_ID_SM1 0x2B
|
||||
|
||||
#define MESON_CPU_MAJOR_ID_TL1 0x2E
|
||||
#define MESON_CPU_MAJOR_ID_TM2 0x2F
|
||||
|
||||
#define MESON_CPU_VERSION_LVL_MAJOR 0
|
||||
#define MESON_CPU_VERSION_LVL_MINOR 1
|
||||
@@ -195,6 +196,10 @@ static inline bool is_meson_sm1_cpu(void)
|
||||
{
|
||||
return get_cpu_type() == MESON_CPU_MAJOR_ID_SM1;
|
||||
}
|
||||
static inline bool is_meson_tm2_cpu(void)
|
||||
{
|
||||
return get_cpu_type() == MESON_CPU_MAJOR_ID_TM2;
|
||||
}
|
||||
|
||||
static inline bool cpu_after_eq(unsigned int id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user