diff options
author | Jim Liu <jim.t90615@gmail.com> | 2023-07-04 16:00:14 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-07-14 12:52:18 -0400 |
commit | 4b7f29ff146648f98b15148d28f7942651ac8450 (patch) | |
tree | 0bb761e340e3bcb3748c5174a3aa9c5e16292f1d /arch/arm | |
parent | fc3dab4fbe0075de0f7d6407c870069f1680a509 (diff) | |
download | u-boot-4b7f29ff146648f98b15148d28f7942651ac8450.zip u-boot-4b7f29ff146648f98b15148d28f7942651ac8450.tar.gz u-boot-4b7f29ff146648f98b15148d28f7942651ac8450.tar.bz2 |
arch: arm: npcm8xx: add cpu version and 4G ram support
Add npcm8xx A2 cpu version check
and add 4G RAM support
Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/include/asm/arch-npcm8xx/gcr.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-npcm/npcm8xx/cpu.c | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-npcm8xx/gcr.h b/arch/arm/include/asm/arch-npcm8xx/gcr.h index ee6677a..20230d6 100644 --- a/arch/arm/include/asm/arch-npcm8xx/gcr.h +++ b/arch/arm/include/asm/arch-npcm8xx/gcr.h @@ -12,6 +12,7 @@ /* On-Chip ARBEL NPCM8XX VERSIONS */ #define ARBEL_Z1 0x00A35850 #define ARBEL_A1 0x04a35850 +#define ARBEL_A2 0x08a35850 #define ARBEL_NPCM845 0x00000000 #define ARBEL_NPCM830 0x00300395 #define ARBEL_NPCM810 0x00000220 diff --git a/arch/arm/mach-npcm/npcm8xx/cpu.c b/arch/arm/mach-npcm/npcm8xx/cpu.c index 2d839cf..af59452 100644 --- a/arch/arm/mach-npcm/npcm8xx/cpu.c +++ b/arch/arm/mach-npcm/npcm8xx/cpu.c @@ -68,6 +68,9 @@ int print_cpuinfo(void) case ARBEL_A1: printf("A1 @ "); break; + case ARBEL_A2: + printf("A2 @ "); + break; default: printf("Unknown\n"); break; @@ -92,7 +95,7 @@ int arch_cpu_init(void) return 0; } -static struct mm_region npcm_mem_map[1 + CONFIG_NR_DRAM_BANKS + 1] = { +static struct mm_region npcm_mem_map[] = { { /* DRAM */ .phys = 0x0UL, @@ -110,6 +113,13 @@ static struct mm_region npcm_mem_map[1 + CONFIG_NR_DRAM_BANKS + 1] = { PTE_BLOCK_PXN | PTE_BLOCK_UXN }, { + .phys = 0x100000000UL, + .virt = 0x100000000UL, + .size = 0x80000000UL, + .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | + PTE_BLOCK_INNER_SHARE + }, + { /* List terminator */ 0, } |