blob: 099053235ded49f922377dd3210b6b061672054d [file] [log] [blame]
Adam Ford38676882020-06-30 09:30:11 -05001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2020 Compass Electronics Group, LLC
4 */
5
Simon Glass3ba929a2020-10-30 21:38:53 -06006#include <asm/global_data.h>
Adam Ford38676882020-06-30 09:30:11 -05007#include <asm/io.h>
Adam Ford38676882020-06-30 09:30:11 -05008
9DECLARE_GLOBAL_DATA_PTR;
10
Adam Ford38676882020-06-30 09:30:11 -050011int board_init(void)
12{
13 /* address of boot parameters */
Simon Glass72cc5382022-10-20 18:22:39 -060014 gd->bd->bi_boot_params = CONFIG_TEXT_BASE + 0x50000;
Adam Ford38676882020-06-30 09:30:11 -050015
16 return 0;
17}
18
Adam Ford2458e1a2021-09-20 11:14:27 -050019#if IS_ENABLED(CONFIG_MULTI_DTB_FIT)
20int board_fit_config_name_match(const char *name)
21{
22 if (!strcmp(rzg_get_cpu_name(), "R8A774A1") && !strcmp(name, "r8a774a1-beacon-rzg2m-kit"))
23 return 0;
24
25 if (!strcmp(rzg_get_cpu_name(), "R8A774B1") && !strcmp(name, "r8a774b1-beacon-rzg2n-kit"))
26 return 0;
27
28 if (!strcmp(rzg_get_cpu_name(), "R8A774E1") && !strcmp(name, "r8a774e1-beacon-rzg2h-kit"))
29 return 0;
30
31 return -1;
32}
33#endif