Merge tag 'efi-2020-07-rc3' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
[oweals/u-boot.git] / board / microchip / mpfs_icicle / mpfs_icicle.c
1 // 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
13 int board_init(void)
14 {
15         /* For now nothing to do here. */
16
17         return 0;
18 }
19
20 int 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 }