mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-13 23:02:59 +00:00
5a3b074255
This adds R-Car Generation 4 (Gen4) support as Renesas ARM64 SoC. In this version, reusing R-Car Gen3 lowlevel initialize routine [1] and R-Car Gen3 memory map tables [2] . [1] arch/arm/mach-rmobile/lowlevel_init_gen3.S [2] arch/arm/mach-rmobile/memmap-gen3.c Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Signed-off-by: Hai Pham <hai.pham.ud@renesas.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> [Marek: - Enable DTO support by default - Sort the Kconfig lists - Select RCAR_64 Kconfig option to pull in all the shared Kconfig options with Gen3, and use where applicable to deduplicate entries. - Fix reference [2] typo in commit message - Drop config options moved to Kconfig, rename rest to CFG_ accordingly to synchronize with upstream changes. Drop removed CONFIG_VERY_BIG_RAM. - Move board size limit to arch/Kconfig - Move GICR_BASE to headers instead of common config]
50 lines
1.4 KiB
C
50 lines
1.4 KiB
C
#ifndef __ASM_ARCH_RMOBILE_H
|
|
#define __ASM_ARCH_RMOBILE_H
|
|
|
|
#if defined(CONFIG_ARCH_RMOBILE)
|
|
#if defined(CONFIG_R8A7740)
|
|
#include <asm/arch/r8a7740.h>
|
|
#elif defined(CONFIG_R8A7790)
|
|
#include <asm/arch/r8a7790.h>
|
|
#elif defined(CONFIG_R8A7791)
|
|
#include <asm/arch/r8a7791.h>
|
|
#elif defined(CONFIG_R8A7792)
|
|
#include <asm/arch/r8a7792.h>
|
|
#elif defined(CONFIG_R8A7793)
|
|
#include <asm/arch/r8a7793.h>
|
|
#elif defined(CONFIG_R8A7794)
|
|
#include <asm/arch/r8a7794.h>
|
|
#elif defined(CONFIG_RCAR_GEN3)
|
|
#include <asm/arch/rcar-gen3-base.h>
|
|
#elif defined(CONFIG_RCAR_GEN4)
|
|
#include <asm/arch/rcar-gen4-base.h>
|
|
#elif defined(CONFIG_R7S72100)
|
|
#else
|
|
#error "SOC Name not defined"
|
|
#endif
|
|
#endif /* CONFIG_ARCH_RMOBILE */
|
|
|
|
/* 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
|
|
#define RMOBILE_CPU_TYPE_R8A77965 0x55
|
|
#define RMOBILE_CPU_TYPE_R8A77970 0x54
|
|
#define RMOBILE_CPU_TYPE_R8A77980 0x56
|
|
#define RMOBILE_CPU_TYPE_R8A77990 0x57
|
|
#define RMOBILE_CPU_TYPE_R8A77995 0x58
|
|
#define RMOBILE_CPU_TYPE_R8A779A0 0x59
|
|
|
|
#ifndef __ASSEMBLY__
|
|
const u8 *rzg_get_cpu_name(void);
|
|
u32 rmobile_get_cpu_type(void);
|
|
u32 rmobile_get_cpu_rev_integer(void);
|
|
u32 rmobile_get_cpu_rev_fraction(void);
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* __ASM_ARCH_RMOBILE_H */
|