mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
MSCC: Add board support for Servalt SoC family
Add board support, configuration and DTS for Servalt SoC family. Currently there is one board in this family. Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
This commit is contained in:
committed by
Daniel Schwierzeck
parent
055125171a
commit
036d95958b
14
board/mscc/servalt/Kconfig
Normal file
14
board/mscc/servalt/Kconfig
Normal file
@@ -0,0 +1,14 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
|
||||
config SYS_VENDOR
|
||||
default "mscc"
|
||||
|
||||
if SOC_SERVALT
|
||||
|
||||
config SYS_BOARD
|
||||
default "servalt"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "servalt"
|
||||
|
||||
endif
|
3
board/mscc/servalt/Makefile
Normal file
3
board/mscc/servalt/Makefile
Normal file
@@ -0,0 +1,3 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
|
||||
obj-$(CONFIG_SOC_SERVALT) := servalt.o
|
52
board/mscc/servalt/servalt.c
Normal file
52
board/mscc/servalt/servalt.c
Normal file
@@ -0,0 +1,52 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Copyright (c) 2018 Microsemi Corporation
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <led.h>
|
||||
|
||||
enum {
|
||||
BOARD_TYPE_PCB116 = 0xAABBCE00,
|
||||
};
|
||||
|
||||
int board_early_init_r(void)
|
||||
{
|
||||
/* Prepare SPI controller to be used in master mode */
|
||||
writel(0, BASE_CFG + ICPU_SW_MODE);
|
||||
|
||||
/* Address of boot parameters */
|
||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE;
|
||||
|
||||
/* LED setup */
|
||||
if (IS_ENABLED(CONFIG_LED))
|
||||
led_default_state();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void do_board_detect(void)
|
||||
{
|
||||
gd->board_type = BOARD_TYPE_PCB116; /* ServalT */
|
||||
}
|
||||
|
||||
#if defined(CONFIG_MULTI_DTB_FIT)
|
||||
int board_fit_config_name_match(const char *name)
|
||||
{
|
||||
if (gd->board_type == BOARD_TYPE_PCB116 &&
|
||||
strcmp(name, "servalt_pcb116") == 0)
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_DTB_RESELECT)
|
||||
int embedded_dtb_select(void)
|
||||
{
|
||||
do_board_detect();
|
||||
fdtdec_setup();
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user