mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +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>
This commit is contained in:
committed by
Jianxiong Pan
parent
b73f974f2c
commit
df65f1ff75
@@ -1424,6 +1424,9 @@
|
||||
mem_size = <0 0x100000>;
|
||||
status = "okay";
|
||||
};
|
||||
cpu_ver_name {
|
||||
compatible = "amlogic, cpu-major-id-tm2";
|
||||
};
|
||||
}; /* end of / */
|
||||
|
||||
&pinctrl_aobus {
|
||||
|
||||
@@ -1404,6 +1404,9 @@
|
||||
mem_size = <0 0x100000>;
|
||||
status = "okay";
|
||||
};
|
||||
cpu_ver_name {
|
||||
compatible = "amlogic, cpu-major-id-tm2";
|
||||
};
|
||||
}; /* end of / */
|
||||
|
||||
&pinctrl_aobus {
|
||||
|
||||
@@ -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