Skip to content

Commit bb1a2aa

Browse files
Harry FearnhammRussell King
authored andcommitted
[ARM] 3527/1: MPCore Boot Lockup Fix
Patch from Harry Fearnhamm This patch fixes the occasional lockup seen in early boot stage on RealView MPCore system. Signed-off-by: Harry Fearnhamm <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 9d494cc commit bb1a2aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arch/arm/mach-realview/realview_eb.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,11 @@ static struct amba_device *amba_devs[] __initdata = {
137137
static void __init gic_init_irq(void)
138138
{
139139
#ifdef CONFIG_REALVIEW_MPCORE
140+
unsigned int pldctrl;
140141
writel(0x0000a05f, __io_address(REALVIEW_SYS_LOCK));
141-
writel(0x008003c0, __io_address(REALVIEW_SYS_BASE) + 0xd8);
142+
pldctrl = readl(__io_address(REALVIEW_SYS_BASE) + 0xd8);
143+
pldctrl |= 0x00800000; /* New irq mode */
144+
writel(pldctrl, __io_address(REALVIEW_SYS_BASE) + 0xd8);
142145
writel(0x00000000, __io_address(REALVIEW_SYS_LOCK));
143146
#endif
144147
gic_dist_init(__io_address(REALVIEW_GIC_DIST_BASE));

0 commit comments

Comments
 (0)