From: Florian Fainelli Date: Mon, 31 Aug 2009 18:27:39 +0000 (+0200) Subject: MIPS: BCM63xx: Fix soft-reset lockup on BCM6345 X-Git-Tag: v2.6.32-rc6~2^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e85d59df13cf5cce08becb3fd261048e6d870c0d;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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 Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/bcm63xx/setup.c b/arch/mips/bcm63xx/setup.c index b18a0ca..d005659 100644 --- a/arch/mips/bcm63xx/setup.c +++ b/arch/mips/bcm63xx/setup.c @@ -75,7 +75,9 @@ void bcm63xx_machine_reboot(void) bcm6348_a1_reboot(); printk(KERN_INFO "triggering watchdog soft-reset...\n"); - bcm_perf_writel(SYS_PLL_SOFT_RESET, PERF_SYS_PLL_CTL_REG); + reg = bcm_perf_readl(PERF_SYS_PLL_CTL_REG); + reg |= SYS_PLL_SOFT_RESET; + bcm_perf_writel(reg, PERF_SYS_PLL_CTL_REG); while (1) ; }