1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2018 Microsemi Corporation
12 DECLARE_GLOBAL_DATA_PTR;
15 BOARD_TYPE_PCB116 = 0xAABBCE00,
18 int board_early_init_r(void)
20 /* Prepare SPI controller to be used in master mode */
21 writel(0, BASE_CFG + ICPU_SW_MODE);
23 /* Address of boot parameters */
24 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
27 if (IS_ENABLED(CONFIG_LED))
33 static void do_board_detect(void)
35 gd->board_type = BOARD_TYPE_PCB116; /* ServalT */
38 #if defined(CONFIG_MULTI_DTB_FIT)
39 int board_fit_config_name_match(const char *name)
41 if (gd->board_type == BOARD_TYPE_PCB116 &&
42 strcmp(name, "servalt_pcb116") == 0)
48 #if defined(CONFIG_DTB_RESELECT)
49 int embedded_dtb_select(void)