]>
git.ipfire.org Git - people/ms/u-boot.git/blob - board/broadcom/bcmns2/northstar2.c
2 * (C) Copyright 2016 Broadcom Ltd.
4 * SPDX-License-Identifier: GPL-2.0+
7 #include <asm/system.h>
8 #include <asm/armv8/mmu.h>
10 static struct mm_region ns2_mem_map
[] = {
15 .attrs
= PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE
) |
17 PTE_BLOCK_PXN
| PTE_BLOCK_UXN
21 .size
= 0xff80000000UL
,
22 .attrs
= PTE_BLOCK_MEMTYPE(MT_NORMAL
) |
30 struct mm_region
*mem_map
= ns2_mem_map
;
32 DECLARE_GLOBAL_DATA_PTR
;
41 gd
->ram_size
= get_ram_size((long *)CONFIG_SYS_SDRAM_BASE
,
42 PHYS_SDRAM_1_SIZE
+ PHYS_SDRAM_2_SIZE
);
46 int dram_init_banksize(void)
48 gd
->bd
->bi_dram
[0].start
= CONFIG_SYS_SDRAM_BASE
;
49 gd
->bd
->bi_dram
[0].size
= PHYS_SDRAM_1_SIZE
;
51 gd
->bd
->bi_dram
[1].start
= CONFIG_SYS_SDRAM_BASE
+ PHYS_SDRAM_1_SIZE
;
52 gd
->bd
->bi_dram
[1].size
= PHYS_SDRAM_2_SIZE
;
57 void reset_cpu(ulong addr
)