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:
shanghai engineers
2019-03-24 22:11:00 -04:00
committed by Luan Yuan
parent 6eee16bde4
commit 309d50fbfc
4 changed files with 4282 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -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)
{

View File

@@ -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)
{