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)
|
2023-02-01 20:20:07 +00:00
|
|
|
#if defined(CONFIG_R8A7740)
|
2012-07-20 04:06:54 +00:00
|
|
|
#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>
|
2023-02-28 21:22:03 +00:00
|
|
|
#elif defined(CONFIG_RCAR_GEN4)
|
|
|
|
#include <asm/arch/rcar-gen4-base.h>
|
2017-08-23 19:53:59 +00:00
|
|
|
#elif defined(CONFIG_R7S72100)
|
2023-10-16 09:25:27 +00:00
|
|
|
#elif defined(CONFIG_RZG2L)
|
|
|
|
#include <asm/arch/rzg2l.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_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
|
2018-02-26 09:35:15 +00:00
|
|
|
#define RMOBILE_CPU_TYPE_R8A77965 0x55
|
2017-10-09 18:39:47 +00:00
|
|
|
#define RMOBILE_CPU_TYPE_R8A77970 0x54
|
2019-07-29 17:59:44 +00:00
|
|
|
#define RMOBILE_CPU_TYPE_R8A77980 0x56
|
2018-04-26 08:09:06 +00:00
|
|
|
#define RMOBILE_CPU_TYPE_R8A77990 0x57
|
2017-10-08 18:52:52 +00:00
|
|
|
#define RMOBILE_CPU_TYPE_R8A77995 0x58
|
2020-05-21 07:11:13 +00:00
|
|
|
#define RMOBILE_CPU_TYPE_R8A779A0 0x59
|
2023-02-28 21:34:45 +00:00
|
|
|
#define RMOBILE_CPU_TYPE_R8A779F0 0x5A
|
2023-02-28 21:37:07 +00:00
|
|
|
#define RMOBILE_CPU_TYPE_R8A779G0 0x5C
|
2017-11-25 22:54:10 +00:00
|
|
|
|
2014-03-31 05:15:29 +00:00
|
|
|
#ifndef __ASSEMBLY__
|
2021-03-17 14:11:50 +00:00
|
|
|
const u8 *rzg_get_cpu_name(void);
|
2014-03-31 05:15:29 +00:00
|
|
|
u32 rmobile_get_cpu_type(void);
|
|
|
|
u32 rmobile_get_cpu_rev_integer(void);
|
|
|
|
u32 rmobile_get_cpu_rev_fraction(void);
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
2012-06-13 07:29:47 +00:00
|
|
|
#endif /* __ASM_ARCH_RMOBILE_H */
|