]>
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.
6 #include <asm/system.h>
7 #include <asm/armv8/mmu.h>
9 static struct mm_region ns2_mem_map
[] = {
14 .attrs
= PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE
) |
16 PTE_BLOCK_PXN
| PTE_BLOCK_UXN
20 .size
= 0xff80000000UL
,
21 .attrs
= PTE_BLOCK_MEMTYPE(MT_NORMAL
) |
29 struct mm_region
*mem_map
= ns2_mem_map
;
31 DECLARE_GLOBAL_DATA_PTR
;
40 gd
->ram_size
= get_ram_size((long *)CONFIG_SYS_SDRAM_BASE
,
41 PHYS_SDRAM_1_SIZE
+ PHYS_SDRAM_2_SIZE
);
45 int dram_init_banksize(void)
47 gd
->bd
->bi_dram
[0].start
= CONFIG_SYS_SDRAM_BASE
;
48 gd
->bd
->bi_dram
[0].size
= PHYS_SDRAM_1_SIZE
;
50 gd
->bd
->bi_dram
[1].start
= CONFIG_SYS_SDRAM_BASE
+ PHYS_SDRAM_1_SIZE
;
51 gd
->bd
->bi_dram
[1].size
= PHYS_SDRAM_2_SIZE
;
56 void reset_cpu(ulong addr
)