1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2020 Compass Electronics Group, LLC
7 #include <asm/global_data.h>
9 #include <asm/arch/rcar-mstp.h>
11 DECLARE_GLOBAL_DATA_PTR;
17 /* Kconfig forces this on, so just return 0 */
18 int board_early_init_f(void)
25 /* address of boot parameters */
26 gd->bd->bi_boot_params = CONFIG_SYS_TEXT_BASE + 0x50000;
33 if (fdtdec_setup_mem_size_base() != 0)
39 int dram_init_banksize(void)
41 fdtdec_setup_memory_banksize();
46 #define RST_BASE 0xE6160000
47 #define RST_CA57RESCNT (RST_BASE + 0x40)
48 #define RST_CODE 0xA5A5000F
50 void reset_cpu(ulong addr)
52 writel(RST_CODE, RST_CA57RESCNT);