From 133faf203d862998bdd71da8ecc534f13cd16fa9 Mon Sep 17 00:00:00 2001 From: Eero Nurkkala Date: Thu, 20 Jan 2022 11:10:05 +0200 Subject: [PATCH] risc-v/mpfs: don't reset uart1 while entering OpenSBI u-boot/kernel may use any uart, not just uart1, depending on the device tree configuration. They will also reset the corresponding uarts as well. It doesn't need to be done here. Signed-off-by: Eero Nurkkala --- arch/risc-v/src/mpfs/mpfs_opensbi.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/risc-v/src/mpfs/mpfs_opensbi.c b/arch/risc-v/src/mpfs/mpfs_opensbi.c index 3972a9f028..f45ff51261 100644 --- a/arch/risc-v/src/mpfs/mpfs_opensbi.c +++ b/arch/risc-v/src/mpfs/mpfs_opensbi.c @@ -414,14 +414,6 @@ static int mpfs_early_init(bool cold_boot) modifyreg32(MPFS_SYSREG_SOFT_RESET_CR, 0, SYSREG_SOFT_RESET_CR_MMC); modifyreg32(MPFS_SYSREG_SOFT_RESET_CR, SYSREG_SOFT_RESET_CR_MMC, 0); - /* U-boot will use serial console 1, just turn on MMUART1 clocks now in - * order to see also u-boot traces. - */ - - modifyreg32(MPFS_SYSREG_SOFT_RESET_CR, SYSREG_SOFT_RESET_CR_MMUART1, 0); - modifyreg32(MPFS_SYSREG_SUBBLK_CLOCK_CR, 0, - SYSREG_SUBBLK_CLOCK_CR_MMUART1); - /* There are other clocks that need to be enabled for the Linux kernel to * run. For now, turn on all the clocks. */