17a7d246dSNobuhiro Iwamatsu #ifndef __ASM_ARCH_RMOBILE_H
27a7d246dSNobuhiro Iwamatsu #define __ASM_ARCH_RMOBILE_H
37a7d246dSNobuhiro Iwamatsu 
41cc95f6eSNobuhiro Iwamatsu #if defined(CONFIG_ARCH_RMOBILE)
57a7d246dSNobuhiro Iwamatsu #if defined(CONFIG_SH73A0)
67a7d246dSNobuhiro Iwamatsu #include <asm/arch/sh73a0.h>
77a7d246dSNobuhiro Iwamatsu #elif defined(CONFIG_R8A7740)
87a7d246dSNobuhiro Iwamatsu #include <asm/arch/r8a7740.h>
97a7d246dSNobuhiro Iwamatsu #elif defined(CONFIG_R8A7790)
107a7d246dSNobuhiro Iwamatsu #include <asm/arch/r8a7790.h>
117a7d246dSNobuhiro Iwamatsu #elif defined(CONFIG_R8A7791)
127a7d246dSNobuhiro Iwamatsu #include <asm/arch/r8a7791.h>
136f107e4cSmasakazu.mochizuki.wd@hitachi.com #elif defined(CONFIG_R8A7792)
146f107e4cSmasakazu.mochizuki.wd@hitachi.com #include <asm/arch/r8a7792.h>
157a7d246dSNobuhiro Iwamatsu #elif defined(CONFIG_R8A7793)
167a7d246dSNobuhiro Iwamatsu #include <asm/arch/r8a7793.h>
177a7d246dSNobuhiro Iwamatsu #elif defined(CONFIG_R8A7794)
187a7d246dSNobuhiro Iwamatsu #include <asm/arch/r8a7794.h>
19654f37daSMarek Vasut #elif defined(CONFIG_RCAR_GEN3)
20654f37daSMarek Vasut #include <asm/arch/rcar-gen3-base.h>
217a7d246dSNobuhiro Iwamatsu #else
227a7d246dSNobuhiro Iwamatsu #error "SOC Name not defined"
237a7d246dSNobuhiro Iwamatsu #endif
241cc95f6eSNobuhiro Iwamatsu #endif /* CONFIG_ARCH_RMOBILE */
257a7d246dSNobuhiro Iwamatsu 
26262e9156SMarek Vasut /* PRR CPU IDs */
27262e9156SMarek Vasut #define RMOBILE_CPU_TYPE_SH73A0		0x37
28262e9156SMarek Vasut #define RMOBILE_CPU_TYPE_R8A7740	0x40
29262e9156SMarek Vasut #define RMOBILE_CPU_TYPE_R8A7790	0x45
30262e9156SMarek Vasut #define RMOBILE_CPU_TYPE_R8A7791	0x47
31262e9156SMarek Vasut #define RMOBILE_CPU_TYPE_R8A7792	0x4A
32262e9156SMarek Vasut #define RMOBILE_CPU_TYPE_R8A7793	0x4B
33262e9156SMarek Vasut #define RMOBILE_CPU_TYPE_R8A7794	0x4C
34262e9156SMarek Vasut #define RMOBILE_CPU_TYPE_R8A7795	0x4F
35262e9156SMarek Vasut #define RMOBILE_CPU_TYPE_R8A7796	0x52
36262e9156SMarek Vasut 
377a7d246dSNobuhiro Iwamatsu #ifndef __ASSEMBLY__
387a7d246dSNobuhiro Iwamatsu u32 rmobile_get_cpu_type(void);
397a7d246dSNobuhiro Iwamatsu u32 rmobile_get_cpu_rev_integer(void);
407a7d246dSNobuhiro Iwamatsu u32 rmobile_get_cpu_rev_fraction(void);
41*a523af69SMarek Vasut void rcar_gen3_memmap_fixup(void);
427a7d246dSNobuhiro Iwamatsu #endif /* __ASSEMBLY__ */
437a7d246dSNobuhiro Iwamatsu 
447a7d246dSNobuhiro Iwamatsu #endif /* __ASM_ARCH_RMOBILE_H */
45