From patchwork Thu Jul 3 09:51:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiubo Li X-Patchwork-Id: 366819 X-Patchwork-Delegate: yorksun@freescale.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 EC31114012F for ; Thu, 3 Jul 2014 20:17:34 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ED8514A032; Thu, 3 Jul 2014 12:17:30 +0200 (CEST) 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 OXThmwBh9nHz; Thu, 3 Jul 2014 12:17:30 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 700B54A039; Thu, 3 Jul 2014 12:17:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BCF5A4A03B for ; Thu, 3 Jul 2014 12:10:47 +0200 (CEST) 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 CTMUV69MDChH for ; Thu, 3 Jul 2014 12:10:44 +0200 (CEST) X-Greylist: delayed 932 seconds by postgrey-1.27 at theia; Thu, 03 Jul 2014 12:10:39 CEST 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 na01-by2-obe.outbound.protection.outlook.com (mail-by2lp0242.outbound.protection.outlook.com [207.46.163.242]) by theia.denx.de (Postfix) with ESMTPS id DFD984A039 for ; Thu, 3 Jul 2014 12:10:39 +0200 (CEST) Received: from BY2PR03CA035.namprd03.prod.outlook.com (10.242.234.156) by BY2PR03MB173.namprd03.prod.outlook.com (10.242.36.139) with Microsoft SMTP Server (TLS) id 15.0.974.11; Thu, 3 Jul 2014 09:55:05 +0000 Received: from BN1BFFO11FD033.protection.gbl (2a01:111:f400:7c10::1:161) by BY2PR03CA035.outlook.office365.com (2a01:111:e400:2c2c::28) with Microsoft SMTP Server (TLS) id 15.0.974.11 via Frontend Transport; Thu, 3 Jul 2014 09:55:04 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD033.mail.protection.outlook.com (10.58.144.96) with Microsoft SMTP Server (TLS) id 15.0.969.12 via Frontend Transport; Thu, 3 Jul 2014 09:55:04 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s639sqce012056; Thu, 3 Jul 2014 02:55:00 -0700 From: Xiubo Li To: , Date: Thu, 3 Jul 2014 17:51:10 +0800 Message-ID: <1404381072-42875-3-git-send-email-Li.Xiubo@freescale.com> X-Mailer: git-send-email 1.8.5 In-Reply-To: <1404381072-42875-1-git-send-email-Li.Xiubo@freescale.com> References: <1404381072-42875-1-git-send-email-Li.Xiubo@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(6009001)(189002)(199002)(107046002)(99396002)(76176999)(85852003)(76482001)(229853001)(106466001)(6806004)(44976005)(83322001)(69596002)(68736004)(19580395003)(97736001)(81156004)(77982001)(50986999)(46102001)(105606002)(87936001)(48376002)(26826002)(79102001)(77156001)(92566001)(102836001)(88136002)(104166001)(36756003)(50466002)(20776003)(81542001)(21056001)(64706001)(47776003)(95666004)(62966002)(81342001)(89996001)(83072002)(104016002)(80022001)(87286001)(4396001)(85306003)(92726001)(86362001)(19580405001)(93916002)(31966008)(84676001)(50226001)(74662001)(74502001); DIR:OUT; SFP:; SCL:1; SRVR:BY2PR03MB173; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 0261CCEEDF Received-SPF: Fail (: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=Li.Xiubo@freescale.com; X-OriginatorOrg: freescale.com X-Mailman-Approved-At: Thu, 03 Jul 2014 12:17:23 +0200 Cc: R64188@freescale.com, b44548@freescale.com, marc.zyngier@arm.com, Xiubo@theia.denx.de, b46683@freescale.com, b35083@freescale.com, Li , b47053@freescale.com Subject: [U-Boot] [PATCH 2/4] ARM: add the pen address byte reverting support. 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: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de For some SoCs, the pen address may has different endianness with the CPUs, so this need the byte revertion for it, Signed-off-by: Xiubo Li --- arch/arm/cpu/armv7/nonsec_virt.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/cpu/armv7/nonsec_virt.S b/arch/arm/cpu/armv7/nonsec_virt.S index e9766c0..c334a15 100644 --- a/arch/arm/cpu/armv7/nonsec_virt.S +++ b/arch/arm/cpu/armv7/nonsec_virt.S @@ -181,6 +181,9 @@ ENTRY(smp_waitloop) wfi ldr r1, =CONFIG_SMP_PEN_ADDR @ load start address ldr r1, [r1] +#ifdef CONFIG_SOC_BIG_ENDIAN + rev r1, r1 +#endif cmp r0, r1 @ make sure we dont execute this code beq smp_waitloop @ again (due to a spurious wakeup) mov pc, r1