1 // SPDX-License-Identifier: GPL-2.0+
3 * Bubblegum-96 Boards Support
5 * Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
8 #include <linux/arm-smccc.h>
9 #include <linux/psci.h>
12 #include <asm/mach-types.h>
15 DECLARE_GLOBAL_DATA_PTR;
18 * dram_init - sets uboots idea of sdram size
22 gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
26 /* This is called after dram_init() so use get_ram_size result */
27 int dram_init_banksize(void)
29 gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
30 gd->bd->bi_dram[0].size = gd->ram_size;
35 static void show_psci_version(void)
37 struct arm_smccc_res res;
39 arm_smccc_smc(ARM_PSCI_0_2_FN_PSCI_VERSION, 0, 0, 0, 0, 0, 0, 0, &res);
41 printf("PSCI: v%ld.%ld\n",
42 PSCI_VERSION_MAJOR(res.a0),
43 PSCI_VERSION_MINOR(res.a0));
53 void reset_cpu(ulong addr)