3 * David Feng <fenghua@phytium.com.cn>
4 * Sharma Bhupesh <bhupesh.sharma@freescale.com>
6 * SPDX-License-Identifier: GPL-2.0+
13 #include <linux/compiler.h>
14 #include <dm/platdata.h>
15 #include <dm/platform_data/serial_pl01x.h>
17 #include <asm/armv8/mmu.h>
19 DECLARE_GLOBAL_DATA_PTR;
21 static const struct pl01x_serial_platdata serial_platdata = {
24 .clock = CONFIG_PL011_CLOCK,
27 U_BOOT_DEVICE(vexpress_serials) = {
28 .name = "serial_pl01x",
29 .platdata = &serial_platdata,
32 static struct mm_region vexpress64_mem_map[] = {
37 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
39 PTE_BLOCK_PXN | PTE_BLOCK_UXN
43 .size = 0xff80000000UL,
44 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
52 struct mm_region *mem_map = vexpress64_mem_map;
54 /* This function gets replaced by platforms supporting PCIe.
55 * The replacement function, eg. on Juno, initialises the PCIe bus.
57 __weak void vexpress64_pcie_init(void)
63 vexpress64_pcie_init();
69 gd->ram_size = PHYS_SDRAM_1_SIZE;
73 int dram_init_banksize(void)
75 gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
76 gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
78 gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
79 gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE;
86 * Board specific reset that is system reset.
88 void reset_cpu(ulong addr)
93 * Board specific ethernet initialization routine.
95 int board_eth_init(bd_t *bis)
98 #ifdef CONFIG_SMC91111
99 rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
101 #ifdef CONFIG_SMC911X
102 rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);