pxa: Add weak attribute to reset_cpu() function
authorŁukasz Dałek <luk0104@gmail.com>
Sat, 12 Jan 2013 15:32:32 +0000 (15:32 +0000)
committerMarek Vasut <marex@denx.de>
Sun, 5 May 2013 21:47:05 +0000 (23:47 +0200)
This commit allows pxa2xx based boards to reimplement reset_cpu()
function with board specific reset sequence.

Signed-off-by: Lukasz Dalek <luk0104@gmail.com>
arch/arm/cpu/pxa/pxa2xx.c

index 09e8177f7b8292cca79c2b6f4631cc94eeb28f42..0c186101eccfaeb21f515e127b5cc297aaa49145 100644 (file)
@@ -284,7 +284,7 @@ void i2c_clk_enable(void)
        writel(readl(CKEN) | CKEN14_I2C, CKEN);
 }
 
-void reset_cpu(ulong ignored) __attribute__((noreturn));
+void __attribute__((weak)) reset_cpu(ulong ignored) __attribute__((noreturn));
 
 void reset_cpu(ulong ignored)
 {