blob: 0ef243186d4f7dd546137f3d64c5e4d218d1d2bd [file] [log] [blame]
Padmarao Begari4216f342019-05-28 15:47:51 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2019 Microchip Technology Inc.
4 * Padmarao Begari <padmarao.begari@microchip.com>
5 */
6
7#include <common.h>
8#include <dm.h>
9#include <asm/io.h>
10
11#define MPFS_SYSREG_SOFT_RESET ((unsigned int *)0x20002088)
12
13int board_init(void)
14{
15 /* For now nothing to do here. */
16
17 return 0;
18}
19
20int board_early_init_f(void)
21{
22 unsigned int val;
23
24 /* Reset uart peripheral */
25 val = readl(MPFS_SYSREG_SOFT_RESET);
26 val = (val & ~(1u << 5u));
27 writel(val, MPFS_SYSREG_SOFT_RESET);
28
29 return 0;
30}