blob: 8381361ec3687f331558cdfa9f551b9f645ea3d3 [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>
Simon Glass97589732020-05-10 11:40:02 -06009#include <init.h>
Padmarao Begari4216f342019-05-28 15:47:51 +053010#include <asm/io.h>
11
12#define MPFS_SYSREG_SOFT_RESET ((unsigned int *)0x20002088)
13
14int board_init(void)
15{
16 /* For now nothing to do here. */
17
18 return 0;
19}
20
21int board_early_init_f(void)
22{
23 unsigned int val;
24
25 /* Reset uart peripheral */
26 val = readl(MPFS_SYSREG_SOFT_RESET);
27 val = (val & ~(1u << 5u));
28 writel(val, MPFS_SYSREG_SOFT_RESET);
29
30 return 0;
31}