From patchwork Sun Jan 13 01:32:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?xYF1a2FzeiBEYcWCZWs=?= X-Patchwork-Id: 211582 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id A3ABB2C00F4 for ; Sun, 13 Jan 2013 12:33:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6F4E74A11D; Sun, 13 Jan 2013 02:33:18 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dxwbp6PmZ9NB; Sun, 13 Jan 2013 02:33:18 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7A80C4A10D; Sun, 13 Jan 2013 02:33:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E15C14A0FD for ; Sun, 13 Jan 2013 02:33:11 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bXdw-P7Gq-KM for ; Sun, 13 Jan 2013 02:33:11 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by theia.denx.de (Postfix) with ESMTPS id 4F9794A0F6 for ; Sun, 13 Jan 2013 02:33:06 +0100 (CET) Received: by mail-ee0-f49.google.com with SMTP id c4so1397351eek.22 for ; Sat, 12 Jan 2013 17:33:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references; bh=zfZkhP5Rnld5VEeOpvpvSe5/6tplMw86RpCaAwdCS6c=; b=0jIWt49YP3xlTNSgTtwxEXprPKHih7vLQilJRGx+eYyPhB+2A7pRzxRlqJmrrETK9k x7fcaUP4pOJZ+93vvXXforUGiWbr2LT+KrIqizKqHXi3Z73V6OAocFB8jrjMb5C1SOb4 xzmnwlcZbXodLh7N5FeWGuWNlmm5B6mA9G7BcVFOGyOhQJwdaaFPZr40aIq3dCG75pGg DHacZhpRjTVuEOHipYMh511eSHCVMnAEzZuLSojkY5JOypxlxNn/V+gS3ODYSrBiVaf4 WPp7/86lXTbQQcKIPEtuOqlOjLJZjnRf06JqDfz5GvzCm4UdeFdxsBzZ0jGbuUCIBojk cSyg== X-Received: by 10.14.215.194 with SMTP id e42mr216101121eep.32.1358040785803; Sat, 12 Jan 2013 17:33:05 -0800 (PST) Received: from mover.dalas.net (riviera.nat.student.pw.edu.pl. [194.29.137.1]) by mx.google.com with ESMTPS id q44sm15132651eep.5.2013.01.12.17.33.04 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 12 Jan 2013 17:33:05 -0800 (PST) From: Lukasz Dalek To: u-boot@lists.denx.de Date: Sun, 13 Jan 2013 02:32:32 +0100 Message-Id: <1358040752-28322-2-git-send-email-luk0104@gmail.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1358040752-28322-1-git-send-email-luk0104@gmail.com> References: <1358040752-28322-1-git-send-email-luk0104@gmail.com> In-Reply-To: <201301130205.59632.marex@denx.de> References: <201301130205.59632.marex@denx.de> Cc: marex@denx.de Subject: [U-Boot] [PATCH] pxa: Add weak attribute to reset_cpu() function X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de This commit allows pxa2xx based boards to reimplement reset_cpu() function with board specific reset sequence. Signed-off-by: Lukasz Dalek --- arch/arm/cpu/pxa/pxa2xx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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) {