2012-06-13 07:29:47 +00:00
|
|
|
#ifndef __ASM_ARCH_RMOBILE_H
|
|
|
|
#define __ASM_ARCH_RMOBILE_H
|
|
|
|
|
2015-10-09 20:58:28 +00:00
|
|
|
#if defined(CONFIG_ARCH_RMOBILE)
|
2012-08-19 04:40:05 +00:00
|
|
|
#if defined(CONFIG_SH73A0)
|
|
|
|
#include <asm/arch/sh73a0.h>
|
2012-07-20 04:06:54 +00:00
|
|
|
#elif defined(CONFIG_R8A7740)
|
|
|
|
#include <asm/arch/r8a7740.h>
|
2013-11-21 08:06:45 +00:00
|
|
|
#elif defined(CONFIG_R8A7790)
|
|
|
|
#include <asm/arch/r8a7790.h>
|
2013-11-21 08:07:45 +00:00
|
|
|
#elif defined(CONFIG_R8A7791)
|
|
|
|
#include <asm/arch/r8a7791.h>
|
2016-04-12 08:11:41 +00:00
|
|
|
#elif defined(CONFIG_R8A7792)
|
|
|
|
#include <asm/arch/r8a7792.h>
|
2014-11-04 21:50:06 +00:00
|
|
|
#elif defined(CONFIG_R8A7793)
|
|
|
|
#include <asm/arch/r8a7793.h>
|
2014-06-24 08:10:02 +00:00
|
|
|
#elif defined(CONFIG_R8A7794)
|
|
|
|
#include <asm/arch/r8a7794.h>
|
2017-11-25 21:53:04 +00:00
|
|
|
#elif defined(CONFIG_RCAR_GEN3)
|
|
|
|
#include <asm/arch/rcar-gen3-base.h>
|
2012-08-19 04:40:05 +00:00
|
|
|
#else
|
2012-06-13 07:29:47 +00:00
|
|
|
#error "SOC Name not defined"
|
2012-08-19 04:40:05 +00:00
|
|
|
#endif
|
2015-10-09 20:58:28 +00:00
|
|
|
#endif /* CONFIG_ARCH_RMOBILE */
|
2012-06-13 07:29:47 +00:00
|
|
|
|
2017-11-25 22:54:10 +00:00
|
|
|
/* 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
|
2017-10-09 18:39:47 +00:00
|
|
|
#define RMOBILE_CPU_TYPE_R8A77970 0x54
|
2017-10-08 18:52:52 +00:00
|
|
|
#define RMOBILE_CPU_TYPE_R8A77995 0x58
|
2017-11-25 22:54:10 +00:00
|
|
|
|
2014-03-31 05:15:29 +00:00
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
u32 rmobile_get_cpu_type(void);
|
|
|
|
u32 rmobile_get_cpu_rev_integer(void);
|
|
|
|
u32 rmobile_get_cpu_rev_fraction(void);
|
2017-11-25 22:24:01 +00:00
|
|
|
void rcar_gen3_memmap_fixup(void);
|
2014-03-31 05:15:29 +00:00
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
2012-06-13 07:29:47 +00:00
|
|
|
#endif /* __ASM_ARCH_RMOBILE_H */
|