Patchwork [U-Boot] pxa: Add weak attribute to reset_cpu() function

login
register
mail settings
Submitter Łukasz Dałek
Date Jan. 13, 2013, 1:32 a.m.
Message ID <1358040752-28322-2-git-send-email-luk0104@gmail.com>
Download mbox | patch
Permalink /patch/211582/
State Accepted
Delegated to: Marek Vasut
Headers show

Comments

Łukasz Dałek - Jan. 13, 2013, 1:32 a.m.
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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/arm/cpu/pxa/pxa2xx.c b/arch/arm/cpu/pxa/pxa2xx.c
index 09e8177..0c18610 100644
--- a/arch/arm/cpu/pxa/pxa2xx.c
+++ b/arch/arm/cpu/pxa/pxa2xx.c
@@ -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)
 {