aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-k3/common.c
diff options
context:
space:
mode:
authorAndrew Davis <afd@ti.com>2023-04-06 11:38:11 -0500
committerTom Rini <trini@konsulko.com>2023-04-24 13:18:47 -0400
commitca0973741d62e7c67270b723a6c25c8e855fb87c (patch)
tree1542f985dd2926b1eaa336baccd4972dd57e6c33 /arch/arm/mach-k3/common.c
parent30e96a240156767d0d4e0a2e353ce68d22969938 (diff)
downloadu-boot-ca0973741d62e7c67270b723a6c25c8e855fb87c.zip
u-boot-ca0973741d62e7c67270b723a6c25c8e855fb87c.tar.gz
u-boot-ca0973741d62e7c67270b723a6c25c8e855fb87c.tar.bz2
arm: mach-k3: Move J721e SoC detection out of common section
This belongs in the J721e specific file as it is the only place this is used. Any board level users should use the SOC driver. While here, move the J721e and J7200 SoC IDs out of sys_proto.h and into hardware.h. Use a macro borrowed from Rockchip and add the rest of the SoC IDs for completeness and later use. Signed-off-by: Andrew Davis <afd@ti.com> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Diffstat (limited to 'arch/arm/mach-k3/common.c')
-rw-r--r--arch/arm/mach-k3/common.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c
index 6870f13..6e084de 100644
--- a/arch/arm/mach-k3/common.c
+++ b/arch/arm/mach-k3/common.c
@@ -488,26 +488,6 @@ int print_cpuinfo(void)
}
#endif
-bool soc_is_j721e(void)
-{
- u32 soc;
-
- soc = (readl(CTRLMMR_WKUP_JTAG_ID) &
- JTAG_ID_PARTNO_MASK) >> JTAG_ID_PARTNO_SHIFT;
-
- return soc == J721E;
-}
-
-bool soc_is_j7200(void)
-{
- u32 soc;
-
- soc = (readl(CTRLMMR_WKUP_JTAG_ID) &
- JTAG_ID_PARTNO_MASK) >> JTAG_ID_PARTNO_SHIFT;
-
- return soc == J7200;
-}
-
#ifdef CONFIG_ARM64
void board_prep_linux(struct bootm_headers *images)
{