]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - board/broadcom/bcmns2/northstar2.c
1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2016 Broadcom Ltd.
9 #include <asm/system.h>
10 #include <asm/armv8/mmu.h>
12 static struct mm_region ns2_mem_map
[] = {
17 .attrs
= PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE
) |
19 PTE_BLOCK_PXN
| PTE_BLOCK_UXN
23 .size
= 0xff80000000UL
,
24 .attrs
= PTE_BLOCK_MEMTYPE(MT_NORMAL
) |
32 struct mm_region
*mem_map
= ns2_mem_map
;
34 DECLARE_GLOBAL_DATA_PTR
;
43 gd
->ram_size
= get_ram_size((long *)CONFIG_SYS_SDRAM_BASE
,
44 PHYS_SDRAM_1_SIZE
+ PHYS_SDRAM_2_SIZE
);
48 int dram_init_banksize(void)
50 gd
->bd
->bi_dram
[0].start
= CONFIG_SYS_SDRAM_BASE
;
51 gd
->bd
->bi_dram
[0].size
= PHYS_SDRAM_1_SIZE
;
53 gd
->bd
->bi_dram
[1].start
= CONFIG_SYS_SDRAM_BASE
+ PHYS_SDRAM_1_SIZE
;
54 gd
->bd
->bi_dram
[1].size
= PHYS_SDRAM_2_SIZE
;
59 void reset_cpu(ulong addr
)