mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-24 10:58:52 +09:00
262e91566f
Replace the ad-hoc values in the PRR CPU ID table with macros, so that users can use rmobile_get_cpu_type() can compare the returned value with these macros to figure out on which CPU they are running. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
#ifndef __ASM_ARCH_RMOBILE_H
|
|
#define __ASM_ARCH_RMOBILE_H
|
|
|
|
#if defined(CONFIG_ARCH_RMOBILE)
|
|
#if defined(CONFIG_SH73A0)
|
|
#include <asm/arch/sh73a0.h>
|
|
#elif defined(CONFIG_R8A7740)
|
|
#include <asm/arch/r8a7740.h>
|
|
#elif defined(CONFIG_R8A7790)
|
|
#include <asm/arch/r8a7790.h>
|
|
#elif defined(CONFIG_R8A7791)
|
|
#include <asm/arch/r8a7791.h>
|
|
#elif defined(CONFIG_R8A7792)
|
|
#include <asm/arch/r8a7792.h>
|
|
#elif defined(CONFIG_R8A7793)
|
|
#include <asm/arch/r8a7793.h>
|
|
#elif defined(CONFIG_R8A7794)
|
|
#include <asm/arch/r8a7794.h>
|
|
#elif defined(CONFIG_RCAR_GEN3)
|
|
#include <asm/arch/rcar-gen3-base.h>
|
|
#else
|
|
#error "SOC Name not defined"
|
|
#endif
|
|
#endif /* CONFIG_ARCH_RMOBILE */
|
|
|
|
/* PRR CPU IDs */
|
|
#define RMOBILE_CPU_TYPE_SH73A0 0x37
|
|
#define RMOBILE_CPU_TYPE_R8A7740 0x40
|
|
#define RMOBILE_CPU_TYPE_R8A7790 0x45
|
|
#define RMOBILE_CPU_TYPE_R8A7791 0x47
|
|
#define RMOBILE_CPU_TYPE_R8A7792 0x4A
|
|
#define RMOBILE_CPU_TYPE_R8A7793 0x4B
|
|
#define RMOBILE_CPU_TYPE_R8A7794 0x4C
|
|
#define RMOBILE_CPU_TYPE_R8A7795 0x4F
|
|
#define RMOBILE_CPU_TYPE_R8A7796 0x52
|
|
|
|
#ifndef __ASSEMBLY__
|
|
u32 rmobile_get_cpu_type(void);
|
|
u32 rmobile_get_cpu_rev_integer(void);
|
|
u32 rmobile_get_cpu_rev_fraction(void);
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* __ASM_ARCH_RMOBILE_H */
|