Skip to content

Commit e85d59d

Browse files
ffainelliralfbaechle
authored andcommitted
MIPS: BCM63xx: Fix soft-reset lockup on BCM6345
This patch fixes a lockup on BCM6345 where setting the PLL soft reset bit will also lock the other blocks including UART. Instead of setting only the PLL soft reset bit in the software reset register, set this bit but do not touch the others. Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent a2e62f3 commit e85d59d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎arch/mips/bcm63xx/setup.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ void bcm63xx_machine_reboot(void)
7575
bcm6348_a1_reboot();
7676

7777
printk(KERN_INFO "triggering watchdog soft-reset...\n");
78-
bcm_perf_writel(SYS_PLL_SOFT_RESET, PERF_SYS_PLL_CTL_REG);
78+
reg = bcm_perf_readl(PERF_SYS_PLL_CTL_REG);
79+
reg |= SYS_PLL_SOFT_RESET;
80+
bcm_perf_writel(reg, PERF_SYS_PLL_CTL_REG);
7981
while (1)
8082
;
8183
}

0 commit comments

Comments
 (0)