Merge tag 'u-boot-atmel-fixes-2019.07-a' of git://git.denx.de/u-boot-atmel
[oweals/u-boot.git] / arch / arm / mach-rmobile / include / mach / rmobile.h
1 #ifndef __ASM_ARCH_RMOBILE_H
2 #define __ASM_ARCH_RMOBILE_H
3
4 #if defined(CONFIG_ARCH_RMOBILE)
5 #if defined(CONFIG_SH73A0)
6 #include <asm/arch/sh73a0.h>
7 #elif defined(CONFIG_R8A7740)
8 #include <asm/arch/r8a7740.h>
9 #elif defined(CONFIG_R8A7790)
10 #include <asm/arch/r8a7790.h>
11 #elif defined(CONFIG_R8A7791)
12 #include <asm/arch/r8a7791.h>
13 #elif defined(CONFIG_R8A7792)
14 #include <asm/arch/r8a7792.h>
15 #elif defined(CONFIG_R8A7793)
16 #include <asm/arch/r8a7793.h>
17 #elif defined(CONFIG_R8A7794)
18 #include <asm/arch/r8a7794.h>
19 #elif defined(CONFIG_RCAR_GEN3)
20 #include <asm/arch/rcar-gen3-base.h>
21 #elif defined(CONFIG_R7S72100)
22 #else
23 #error "SOC Name not defined"
24 #endif
25 #endif /* CONFIG_ARCH_RMOBILE */
26
27 /* PRR CPU IDs */
28 #define RMOBILE_CPU_TYPE_SH73A0         0x37
29 #define RMOBILE_CPU_TYPE_R8A7740        0x40
30 #define RMOBILE_CPU_TYPE_R8A7790        0x45
31 #define RMOBILE_CPU_TYPE_R8A7791        0x47
32 #define RMOBILE_CPU_TYPE_R8A7792        0x4A
33 #define RMOBILE_CPU_TYPE_R8A7793        0x4B
34 #define RMOBILE_CPU_TYPE_R8A7794        0x4C
35 #define RMOBILE_CPU_TYPE_R8A7795        0x4F
36 #define RMOBILE_CPU_TYPE_R8A7796        0x52
37 #define RMOBILE_CPU_TYPE_R8A77965       0x55
38 #define RMOBILE_CPU_TYPE_R8A77970       0x54
39 #define RMOBILE_CPU_TYPE_R8A77990       0x57
40 #define RMOBILE_CPU_TYPE_R8A77995       0x58
41
42 #ifndef __ASSEMBLY__
43 u32 rmobile_get_cpu_type(void);
44 u32 rmobile_get_cpu_rev_integer(void);
45 u32 rmobile_get_cpu_rev_fraction(void);
46 #endif /* __ASSEMBLY__ */
47
48 #endif /* __ASM_ARCH_RMOBILE_H */