From patchwork Tue Apr 11 05:54:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Garg X-Patchwork-Id: 749344 X-Patchwork-Delegate: yorksun@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3w2GV00sl1z9sNk for ; Tue, 11 Apr 2017 15:54:48 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="ig4Zi9s6"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id C7978C21CEF; Tue, 11 Apr 2017 05:54:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BF98DC21C31; Tue, 11 Apr 2017 05:54:38 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 94175C21C31; Tue, 11 Apr 2017 05:54:37 +0000 (UTC) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0051.outbound.protection.outlook.com [104.47.0.51]) by lists.denx.de (Postfix) with ESMTPS id 088DEC21C2B for ; Tue, 11 Apr 2017 05:54:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=nL3excK5KxctB0AAC5bjLRbiXxT9ibE7wDANj55Xoi8=; b=ig4Zi9s6pKWEEa1EFzTxqILNE2LAChK9JqWeBvREvjdtvfi/N2fL1oAWBhCeqFNe2aIKLSQdkgid84n3NVRJS+SXk3KOEURmA3jBa3GTSagwI6FOTbrNqVTljkwvr9N2yfS8F/+1wxfDbylqU+5FbgKcfzdx14Cw4xMI1AZ1Pc8= Received: from VI1PR04MB1455.eurprd04.prod.outlook.com (10.163.166.147) by VI1PR04MB2959.eurprd04.prod.outlook.com (10.170.228.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Tue, 11 Apr 2017 05:54:35 +0000 Received: from VI1PR04MB1455.eurprd04.prod.outlook.com ([10.163.166.147]) by VI1PR04MB1455.eurprd04.prod.outlook.com ([10.163.166.147]) with mapi id 15.01.1019.025; Tue, 11 Apr 2017 05:54:34 +0000 From: Sumit Garg To: york sun , "u-boot@lists.denx.de" Thread-Topic: [PATCH 1/3] fsl: PPA: add support PPA image validation from NAND and SD Thread-Index: AQHSr5PyOR4QIxzX1kGUs1PkC4hvkaG+2wgAgADUDHA= Date: Tue, 11 Apr 2017 05:54:34 +0000 Message-ID: References: <1491606536-3858-1-git-send-email-sumit.garg@nxp.com> <4d5fb2b5-c53f-0f91-2946-9ddddce95203@nxp.com> In-Reply-To: <4d5fb2b5-c53f-0f91-2946-9ddddce95203@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [192.88.169.1] x-microsoft-exchange-diagnostics: 1; VI1PR04MB2959; 7:pbyweFg2Cpj5Q2yBQyxJtGshLUWzaZLlpNKTiZ2WozwqQlSERGISW4bkVMActEF8XdDZ66Y4FqCpBJVconYxngakI8mgHmyTwreSrjetdHRsmA328srIHihGNs1lP/LQam1opSULuDA81Ibjzz5TEpvTlM6p1bTiiTJHzqZFBIQP8dBDjw+AmBtvlo2+BOQyhgZLgCslO0jzn57oYA2tKtJnck2YVw3tEXHEmil3iheJg1guIwTYBe1BAGQChACfV8DtDmnpS7L9oGUE6K34qj4Gn3YaqgJ5WgA1BRwEKiqGubsr8KVmKVDq6L4c4qubueBDe4wjwcdvLBjzl3HZkg== x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10009020)(6009001)(39450400003)(39410400002)(39840400002)(39850400002)(39400400002)(39860400002)(24454002)(13464003)(377454003)(6116002)(2501003)(102836003)(50986999)(3846002)(4326008)(76176999)(54356999)(53546009)(189998001)(8936002)(25786009)(5660300001)(77096006)(8676002)(6506006)(86362001)(81166006)(38730400002)(305945005)(229853002)(7736002)(2900100001)(6436002)(53936002)(66066001)(122556002)(55016002)(7696004)(33656002)(99286003)(74316002)(6246003)(3280700002)(2950100002)(54906002)(2906002)(3660700001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB2959; H:VI1PR04MB1455.eurprd04.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; x-ms-office365-filtering-correlation-id: 5450c368-b77f-4e89-f5d2-08d4809f3b29 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075); SRVR:VI1PR04MB2959; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197)(16074681357397); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041248)(20161123555025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(6072148); SRVR:VI1PR04MB2959; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB2959; x-forefront-prvs: 0274272F87 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2017 05:54:34.4951 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB2959 Cc: Udit Agarwal , Ruchika Gupta , Vini Pillai Subject: Re: [U-Boot] [PATCH 1/3] fsl: PPA: add support PPA image validation from NAND and SD X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" > -----Original Message----- > From: York Sun [mailto:york.sun@nxp.com] > Sent: Monday, April 10, 2017 10:39 PM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Vini Pillai ; Udit > Agarwal > Subject: Re: [PATCH 1/3] fsl: PPA: add support PPA image validation from > NAND and SD > > On 04/07/2017 04:41 AM, Sumit Garg wrote: > > Signed-off-by: Sumit Garg > > Signed-off-by: Udit Agarwal > > Tested-by: Vinitha Pillai > > --- > > arch/arm/cpu/armv8/fsl-layerscape/ppa.c | 67 > > ++++++++++++++++++++++++++++++++- > > 1 file changed, 66 insertions(+), 1 deletion(-) > > > > diff --git a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c > > b/arch/arm/cpu/armv8/fsl-layerscape/ppa.c > > index 7f87bb8..d8f1d36 100644 > > --- a/arch/arm/cpu/armv8/fsl-layerscape/ppa.c > > +++ b/arch/arm/cpu/armv8/fsl-layerscape/ppa.c > > @@ -39,6 +39,10 @@ int ppa_init(void) > > #ifdef CONFIG_CHAIN_OF_TRUST > > uintptr_t ppa_esbc_hdr = CONFIG_SYS_LS_PPA_ESBC_ADDR; > > For MMC and NAND, this CONFIG_SYS_LS_PPA_ESBC_ADDR is actually not > used. > Shall we move the assignment down to XIP section? The Kconfig should also be > updated. > > York As per PPA verification patch for eMMC/SD and NAND: --- a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig +++ b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig @@ -179,12 +179,22 @@ config SYS_LS_PPA_ESBC_ADDR default 0x40740000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1046A default 0x40480000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1012A default 0x580c40000 if SYS_LS_PPA_FW_IN_XIP && FSL_LSCH3 + default 0x700000 if SYS_LS_PPA_FW_IN_MMC + default 0x700000 if SYS_LS_PPA_FW_IN_NAND help If the PPA header firmware locate at XIP flash, such as NOR or QSPI flash, this address is a directly memory-mapped. If it is in a serial accessed flash, such as NAND and SD card, it is a byte offset. CONFIG_SYS_LS_PPA_ESBC_ADDR is used to provide offset on eMMC/SD and NAND. Sumit _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot