Nobuhiro Iwamatsu | f3db9da | 2012-06-13 16:29:47 +0900 | [diff] [blame] | 1 | #ifndef __ASM_ARCH_RMOBILE_H |
| 2 | #define __ASM_ARCH_RMOBILE_H |
| 3 | |
Nobuhiro Iwamatsu | 7c11273 | 2015-10-10 05:58:28 +0900 | [diff] [blame] | 4 | #if defined(CONFIG_ARCH_RMOBILE) |
Simon Glass | 403a838 | 2023-02-01 13:20:07 -0700 | [diff] [blame] | 5 | #if defined(CONFIG_R8A7740) |
Nobuhiro Iwamatsu | 3966dea | 2012-07-20 13:06:54 +0900 | [diff] [blame] | 6 | #include <asm/arch/r8a7740.h> |
Nobuhiro Iwamatsu | c6ccb47 | 2013-11-21 17:06:45 +0900 | [diff] [blame] | 7 | #elif defined(CONFIG_R8A7790) |
| 8 | #include <asm/arch/r8a7790.h> |
Nobuhiro Iwamatsu | 4a495bc | 2013-11-21 17:07:45 +0900 | [diff] [blame] | 9 | #elif defined(CONFIG_R8A7791) |
| 10 | #include <asm/arch/r8a7791.h> |
masakazu.mochizuki.wd@hitachi.com | 9d0e937 | 2016-04-12 17:11:41 +0900 | [diff] [blame] | 11 | #elif defined(CONFIG_R8A7792) |
| 12 | #include <asm/arch/r8a7792.h> |
Nobuhiro Iwamatsu | 032d59c | 2014-11-05 06:50:06 +0900 | [diff] [blame] | 13 | #elif defined(CONFIG_R8A7793) |
| 14 | #include <asm/arch/r8a7793.h> |
Nobuhiro Iwamatsu | 1b15ba6 | 2014-06-24 17:10:02 +0900 | [diff] [blame] | 15 | #elif defined(CONFIG_R8A7794) |
| 16 | #include <asm/arch/r8a7794.h> |
Marek Vasut | 7e36c3f | 2017-11-25 22:53:04 +0100 | [diff] [blame] | 17 | #elif defined(CONFIG_RCAR_GEN3) |
| 18 | #include <asm/arch/rcar-gen3-base.h> |
Hai Pham | 9046b5f | 2023-02-28 22:22:03 +0100 | [diff] [blame] | 19 | #elif defined(CONFIG_RCAR_GEN4) |
| 20 | #include <asm/arch/rcar-gen4-base.h> |
Chris Brandt | 43b11d9 | 2017-08-23 14:53:59 -0500 | [diff] [blame] | 21 | #elif defined(CONFIG_R7S72100) |
Paul Barker | a774a3e | 2023-10-16 10:25:27 +0100 | [diff] [blame] | 22 | #elif defined(CONFIG_RZG2L) |
| 23 | #include <asm/arch/rzg2l.h> |
Nobuhiro Iwamatsu | 940103d | 2012-08-19 04:40:05 +0000 | [diff] [blame] | 24 | #else |
Nobuhiro Iwamatsu | f3db9da | 2012-06-13 16:29:47 +0900 | [diff] [blame] | 25 | #error "SOC Name not defined" |
Nobuhiro Iwamatsu | 940103d | 2012-08-19 04:40:05 +0000 | [diff] [blame] | 26 | #endif |
Nobuhiro Iwamatsu | 7c11273 | 2015-10-10 05:58:28 +0900 | [diff] [blame] | 27 | #endif /* CONFIG_ARCH_RMOBILE */ |
Nobuhiro Iwamatsu | f3db9da | 2012-06-13 16:29:47 +0900 | [diff] [blame] | 28 | |
Marek Vasut | b8f814b | 2017-11-25 23:54:10 +0100 | [diff] [blame] | 29 | /* PRR CPU IDs */ |
Marek Vasut | b8f814b | 2017-11-25 23:54:10 +0100 | [diff] [blame] | 30 | #define RMOBILE_CPU_TYPE_R8A7740 0x40 |
| 31 | #define RMOBILE_CPU_TYPE_R8A7790 0x45 |
| 32 | #define RMOBILE_CPU_TYPE_R8A7791 0x47 |
| 33 | #define RMOBILE_CPU_TYPE_R8A7792 0x4A |
| 34 | #define RMOBILE_CPU_TYPE_R8A7793 0x4B |
| 35 | #define RMOBILE_CPU_TYPE_R8A7794 0x4C |
| 36 | #define RMOBILE_CPU_TYPE_R8A7795 0x4F |
| 37 | #define RMOBILE_CPU_TYPE_R8A7796 0x52 |
Marek Vasut | 1ecc0bd | 2018-02-26 10:35:15 +0100 | [diff] [blame] | 38 | #define RMOBILE_CPU_TYPE_R8A77965 0x55 |
Marek Vasut | 46175fc | 2017-10-09 20:39:47 +0200 | [diff] [blame] | 39 | #define RMOBILE_CPU_TYPE_R8A77970 0x54 |
Marek Vasut | cf56785 | 2019-07-29 19:59:44 +0200 | [diff] [blame] | 40 | #define RMOBILE_CPU_TYPE_R8A77980 0x56 |
Marek Vasut | 001dbf3 | 2018-04-26 10:09:06 +0200 | [diff] [blame] | 41 | #define RMOBILE_CPU_TYPE_R8A77990 0x57 |
Marek Vasut | 04cd2e2 | 2017-10-08 20:52:52 +0200 | [diff] [blame] | 42 | #define RMOBILE_CPU_TYPE_R8A77995 0x58 |
Hai Pham | 47fc7be | 2020-05-21 14:11:13 +0700 | [diff] [blame] | 43 | #define RMOBILE_CPU_TYPE_R8A779A0 0x59 |
Hai Pham | b35c718 | 2023-02-28 22:34:45 +0100 | [diff] [blame] | 44 | #define RMOBILE_CPU_TYPE_R8A779F0 0x5A |
Hai Pham | 09c8cdf | 2023-02-28 22:37:07 +0100 | [diff] [blame] | 45 | #define RMOBILE_CPU_TYPE_R8A779G0 0x5C |
Marek Vasut | b8f814b | 2017-11-25 23:54:10 +0100 | [diff] [blame] | 46 | |
Nobuhiro Iwamatsu | 5e0f45d | 2014-03-31 14:15:29 +0900 | [diff] [blame] | 47 | #ifndef __ASSEMBLY__ |
Biju Das | 2f611af | 2021-03-17 14:11:50 +0000 | [diff] [blame] | 48 | const u8 *rzg_get_cpu_name(void); |
Nobuhiro Iwamatsu | 5e0f45d | 2014-03-31 14:15:29 +0900 | [diff] [blame] | 49 | u32 rmobile_get_cpu_type(void); |
| 50 | u32 rmobile_get_cpu_rev_integer(void); |
| 51 | u32 rmobile_get_cpu_rev_fraction(void); |
| 52 | #endif /* __ASSEMBLY__ */ |
| 53 | |
Nobuhiro Iwamatsu | f3db9da | 2012-06-13 16:29:47 +0900 | [diff] [blame] | 54 | #endif /* __ASM_ARCH_RMOBILE_H */ |