blob: f4db42c34b4420fa9f9bd88f1fd682b5d8408a88 [file] [log] [blame]
Nobuhiro Iwamatsuf3db9da2012-06-13 16:29:47 +09001#ifndef __ASM_ARCH_RMOBILE_H
2#define __ASM_ARCH_RMOBILE_H
3
Nobuhiro Iwamatsu7c112732015-10-10 05:58:28 +09004#if defined(CONFIG_ARCH_RMOBILE)
Nobuhiro Iwamatsu940103d2012-08-19 04:40:05 +00005#if defined(CONFIG_SH73A0)
6#include <asm/arch/sh73a0.h>
Nobuhiro Iwamatsu3966dea2012-07-20 13:06:54 +09007#elif defined(CONFIG_R8A7740)
8#include <asm/arch/r8a7740.h>
Nobuhiro Iwamatsuc6ccb472013-11-21 17:06:45 +09009#elif defined(CONFIG_R8A7790)
10#include <asm/arch/r8a7790.h>
Nobuhiro Iwamatsu4a495bc2013-11-21 17:07:45 +090011#elif defined(CONFIG_R8A7791)
12#include <asm/arch/r8a7791.h>
masakazu.mochizuki.wd@hitachi.com9d0e9372016-04-12 17:11:41 +090013#elif defined(CONFIG_R8A7792)
14#include <asm/arch/r8a7792.h>
Nobuhiro Iwamatsu032d59c2014-11-05 06:50:06 +090015#elif defined(CONFIG_R8A7793)
16#include <asm/arch/r8a7793.h>
Nobuhiro Iwamatsu1b15ba62014-06-24 17:10:02 +090017#elif defined(CONFIG_R8A7794)
18#include <asm/arch/r8a7794.h>
Marek Vasut7e36c3f2017-11-25 22:53:04 +010019#elif defined(CONFIG_RCAR_GEN3)
20#include <asm/arch/rcar-gen3-base.h>
Nobuhiro Iwamatsu940103d2012-08-19 04:40:05 +000021#else
Nobuhiro Iwamatsuf3db9da2012-06-13 16:29:47 +090022#error "SOC Name not defined"
Nobuhiro Iwamatsu940103d2012-08-19 04:40:05 +000023#endif
Nobuhiro Iwamatsu7c112732015-10-10 05:58:28 +090024#endif /* CONFIG_ARCH_RMOBILE */
Nobuhiro Iwamatsuf3db9da2012-06-13 16:29:47 +090025
Marek Vasutb8f814b2017-11-25 23:54:10 +010026/* PRR CPU IDs */
27#define RMOBILE_CPU_TYPE_SH73A0 0x37
28#define RMOBILE_CPU_TYPE_R8A7740 0x40
29#define RMOBILE_CPU_TYPE_R8A7790 0x45
30#define RMOBILE_CPU_TYPE_R8A7791 0x47
31#define RMOBILE_CPU_TYPE_R8A7792 0x4A
32#define RMOBILE_CPU_TYPE_R8A7793 0x4B
33#define RMOBILE_CPU_TYPE_R8A7794 0x4C
34#define RMOBILE_CPU_TYPE_R8A7795 0x4F
35#define RMOBILE_CPU_TYPE_R8A7796 0x52
Marek Vasut46175fc2017-10-09 20:39:47 +020036#define RMOBILE_CPU_TYPE_R8A77970 0x54
Marek Vasut04cd2e22017-10-08 20:52:52 +020037#define RMOBILE_CPU_TYPE_R8A77995 0x58
Marek Vasutb8f814b2017-11-25 23:54:10 +010038
Nobuhiro Iwamatsu5e0f45d2014-03-31 14:15:29 +090039#ifndef __ASSEMBLY__
40u32 rmobile_get_cpu_type(void);
41u32 rmobile_get_cpu_rev_integer(void);
42u32 rmobile_get_cpu_rev_fraction(void);
Marek Vasut23e239a2017-11-25 23:24:01 +010043void rcar_gen3_memmap_fixup(void);
Nobuhiro Iwamatsu5e0f45d2014-03-31 14:15:29 +090044#endif /* __ASSEMBLY__ */
45
Nobuhiro Iwamatsuf3db9da2012-06-13 16:29:47 +090046#endif /* __ASM_ARCH_RMOBILE_H */