mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-21 01:18:52 +09:00
![Padmarao Begari](/assets/img/avatar_default.png)
This patch adds Microchip MPFS Icicle board support. For now, NS16550 serial driver is only enabled. The Microchip MPFS Icicle defconfig by default builds U-Boot for M-Mode with SMP support. Signed-off-by: Padmarao Begari <padmarao.begari@microchip.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
31 lines
533 B
C
31 lines
533 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2019 Microchip Technology Inc.
|
|
* Padmarao Begari <padmarao.begari@microchip.com>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <asm/io.h>
|
|
|
|
#define MPFS_SYSREG_SOFT_RESET ((unsigned int *)0x20002088)
|
|
|
|
int board_init(void)
|
|
{
|
|
/* For now nothing to do here. */
|
|
|
|
return 0;
|
|
}
|
|
|
|
int board_early_init_f(void)
|
|
{
|
|
unsigned int val;
|
|
|
|
/* Reset uart peripheral */
|
|
val = readl(MPFS_SYSREG_SOFT_RESET);
|
|
val = (val & ~(1u << 5u));
|
|
writel(val, MPFS_SYSREG_SOFT_RESET);
|
|
|
|
return 0;
|
|
}
|