blob: c69c764adb80284485e58ee11b4a8ac1451165d5 [file] [log] [blame]
Marek Vasut6468c4c2024-02-27 17:05:55 +01001#ifndef __ASM_ARCH_RENESAS_H
2#define __ASM_ARCH_RENESAS_H
Nobuhiro Iwamatsuf3db9da2012-06-13 16:29:47 +09003
Marek Vasut6468c4c2024-02-27 17:05:55 +01004#if defined(CONFIG_ARCH_RENESAS)
Marek Vasuta141b392024-02-27 17:05:41 +01005#if defined(CONFIG_R8A7790)
Nobuhiro Iwamatsuc6ccb472013-11-21 17:06:45 +09006#include <asm/arch/r8a7790.h>
Nobuhiro Iwamatsu4a495bc2013-11-21 17:07:45 +09007#elif defined(CONFIG_R8A7791)
8#include <asm/arch/r8a7791.h>
masakazu.mochizuki.wd@hitachi.com9d0e9372016-04-12 17:11:41 +09009#elif defined(CONFIG_R8A7792)
10#include <asm/arch/r8a7792.h>
Nobuhiro Iwamatsu032d59c2014-11-05 06:50:06 +090011#elif defined(CONFIG_R8A7793)
12#include <asm/arch/r8a7793.h>
Nobuhiro Iwamatsu1b15ba62014-06-24 17:10:02 +090013#elif defined(CONFIG_R8A7794)
14#include <asm/arch/r8a7794.h>
Marek Vasut7e36c3f2017-11-25 22:53:04 +010015#elif defined(CONFIG_RCAR_GEN3)
16#include <asm/arch/rcar-gen3-base.h>
Hai Pham9046b5f2023-02-28 22:22:03 +010017#elif defined(CONFIG_RCAR_GEN4)
18#include <asm/arch/rcar-gen4-base.h>
Chris Brandt43b11d92017-08-23 14:53:59 -050019#elif defined(CONFIG_R7S72100)
Paul Barkera774a3e2023-10-16 10:25:27 +010020#elif defined(CONFIG_RZG2L)
21#include <asm/arch/rzg2l.h>
Nobuhiro Iwamatsu940103d2012-08-19 04:40:05 +000022#else
Nobuhiro Iwamatsuf3db9da2012-06-13 16:29:47 +090023#error "SOC Name not defined"
Nobuhiro Iwamatsu940103d2012-08-19 04:40:05 +000024#endif
Marek Vasut6468c4c2024-02-27 17:05:55 +010025#endif /* CONFIG_ARCH_RENESAS */
Nobuhiro Iwamatsuf3db9da2012-06-13 16:29:47 +090026
Marek Vasutb8f814b2017-11-25 23:54:10 +010027/* PRR CPU IDs */
Marek Vasutf9726612024-02-27 17:05:47 +010028#define RENESAS_CPU_TYPE_R8A7740 0x40
29#define RENESAS_CPU_TYPE_R8A7790 0x45
30#define RENESAS_CPU_TYPE_R8A7791 0x47
31#define RENESAS_CPU_TYPE_R8A7792 0x4A
32#define RENESAS_CPU_TYPE_R8A7793 0x4B
33#define RENESAS_CPU_TYPE_R8A7794 0x4C
34#define RENESAS_CPU_TYPE_R8A7795 0x4F
35#define RENESAS_CPU_TYPE_R8A7796 0x52
36#define RENESAS_CPU_TYPE_R8A77965 0x55
37#define RENESAS_CPU_TYPE_R8A77970 0x54
38#define RENESAS_CPU_TYPE_R8A77980 0x56
39#define RENESAS_CPU_TYPE_R8A77990 0x57
40#define RENESAS_CPU_TYPE_R8A77995 0x58
41#define RENESAS_CPU_TYPE_R8A779A0 0x59
42#define RENESAS_CPU_TYPE_R8A779F0 0x5A
43#define RENESAS_CPU_TYPE_R8A779G0 0x5C
44#define RENESAS_CPU_TYPE_R8A779H0 0x5D
45#define RENESAS_CPU_TYPE_R9A07G044L 0x9A070440
Marek Vasutb8f814b2017-11-25 23:54:10 +010046
Nobuhiro Iwamatsu5e0f45d2014-03-31 14:15:29 +090047#ifndef __ASSEMBLY__
Paul Barkerf2c4ef72023-10-16 10:25:39 +010048#include <asm/types.h>
49
Biju Das2f611af2021-03-17 14:11:50 +000050const u8 *rzg_get_cpu_name(void);
Marek Vasut30fe98e2024-02-27 17:05:45 +010051u32 renesas_get_cpu_type(void);
Marek Vasut17602322024-02-27 17:05:46 +010052u32 renesas_get_cpu_rev_integer(void);
53u32 renesas_get_cpu_rev_fraction(void);
Nobuhiro Iwamatsu5e0f45d2014-03-31 14:15:29 +090054#endif /* __ASSEMBLY__ */
55
Marek Vasut6468c4c2024-02-27 17:05:55 +010056#endif /* __ASM_ARCH_RENESAS_H */