1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2020 Arm Limited
4 * Usama Arif <usama.arif@arm.com>
9 #include <dm/platform_data/serial_pl01x.h>
10 #include <asm/armv8/mmu.h>
11 #include <asm/global_data.h>
13 static const struct pl01x_serial_plat serial_plat = {
16 .clock = CONFIG_PL011_CLOCK,
19 U_BOOT_DRVINFO(total_compute_serials) = {
20 .name = "serial_pl01x",
24 static struct mm_region total_compute_mem_map[] = {
29 .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
31 PTE_BLOCK_PXN | PTE_BLOCK_UXN
35 .size = 0xff80000000UL,
36 .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
44 struct mm_region *mem_map = total_compute_mem_map;
53 gd->ram_size = PHYS_SDRAM_1_SIZE;
57 int dram_init_banksize(void)
59 gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
60 gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
65 /* Nothing to be done here as handled by PSCI interface */