summaryrefslogtreecommitdiff
path: root/board/microchip/mpfs_icicle/mpfs_icicle.c
blob: 8381361ec3687f331558cdfa9f551b9f645ea3d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 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 <init.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;
}