Merge tag 'at91-fixes-non-critical' of git://github.com/at91linux/linux-at91 into...
authorOlof Johansson <olof@lixom.net>
Fri, 15 Nov 2013 19:10:41 +0000 (11:10 -0800)
committerOlof Johansson <olof@lixom.net>
Fri, 15 Nov 2013 19:10:41 +0000 (11:10 -0800)
From Nicolas Ferre, fixes for early boot hangs on at91:

Fixes for RTT & RTC interrupts that can fire early during boot process
and kill the system.

* tag 'at91-fixes-non-critical' of git://github.com/at91linux/linux-at91:
  ARM: at91: fix hanged boot due to early rtt-interrupt
  ARM: at91: fix hanged boot due to early rtc-interrupt

1  2 
arch/arm/mach-at91/at91sam9n12.c

@@@ -169,7 -169,6 +169,7 @@@ static struct clk_lookup periph_clocks_
        CLKDEV_CON_DEV_ID("t0_clk", "f8008000.timer", &tcb_clk),
        CLKDEV_CON_DEV_ID("t0_clk", "f800c000.timer", &tcb_clk),
        CLKDEV_CON_DEV_ID("mci_clk", "f0008000.mmc", &mmc_clk),
 +      CLKDEV_CON_DEV_ID(NULL, "f0010000.ssc", &ssc_clk),
        CLKDEV_CON_DEV_ID("dma_clk", "ffffec00.dma-controller", &dma_clk),
        CLKDEV_CON_DEV_ID(NULL, "f8010000.i2c", &twi0_clk),
        CLKDEV_CON_DEV_ID(NULL, "f8014000.i2c", &twi1_clk),
@@@ -224,7 -223,13 +224,13 @@@ static void __init at91sam9n12_map_io(v
        at91_init_sram(0, AT91SAM9N12_SRAM_BASE, AT91SAM9N12_SRAM_SIZE);
  }
  
+ static void __init at91sam9n12_initialize(void)
+ {
+       at91_sysirq_mask_rtc(AT91SAM9N12_BASE_RTC);
+ }
  AT91_SOC_START(at91sam9n12)
        .map_io = at91sam9n12_map_io,
        .register_clocks = at91sam9n12_register_clocks,
+       .init = at91sam9n12_initialize,
  AT91_SOC_END