From patchwork Tue Jun 4 06:43:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wasim Khan X-Patchwork-Id: 1109782 X-Patchwork-Delegate: prabhakar@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="Za2khXiW"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45J8V24rLLz9s6w for ; Tue, 4 Jun 2019 21:15:22 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 3F248C21E29; Tue, 4 Jun 2019 11:15:10 +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=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 4B9A1C21BE5; Tue, 4 Jun 2019 11:14:44 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id ED9A6C21C27; Tue, 4 Jun 2019 06:43:46 +0000 (UTC) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20044.outbound.protection.outlook.com [40.107.2.44]) by lists.denx.de (Postfix) with ESMTPS id 7067BC21BE5 for ; Tue, 4 Jun 2019 06:43:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Gxjhfo3sbsRiDKZ61ul4Eujc1TkzmJrkCrZus9jJ1VA=; b=Za2khXiWDX9l7P2sYYFkVxTuukz8QiQTjVka/4rcoL8MDe2kRd60apnv93IGZ0rvHBlsQjw/sKLYEIrkVdtduB1cVwi4NvcqAF1716N3aIQtZWJGJbY7HeibM7/2cpRASHwbJUCHU6Zs2kakD0q5ZeG7f2PE3+N3nAd7/fQ8hM4= Received: from VE1PR04MB6702.eurprd04.prod.outlook.com (20.179.235.203) by VE1PR04MB6461.eurprd04.prod.outlook.com (20.179.233.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1943.22; Tue, 4 Jun 2019 06:43:45 +0000 Received: from VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::9c45:77c7:ab7c:df40]) by VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::9c45:77c7:ab7c:df40%4]) with mapi id 15.20.1943.018; Tue, 4 Jun 2019 06:43:45 +0000 From: Wasim Khan To: "u-boot@lists.denx.de" , Prabhakar Kushwaha , Priyanka Jain Thread-Topic: [PATCH 1/3] armv8: ls2088aqds: Add bootcmd for TFA boot Thread-Index: AQHVGqDbPjqjV8KlUkydn+uCy8OC2g== Date: Tue, 4 Jun 2019 06:43:45 +0000 Message-ID: <1559630364-19106-1-git-send-email-wasim.khan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR01CA0095.apcprd01.prod.exchangelabs.com (2603:1096:3:15::21) To VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:128::11) authentication-results: spf=none (sender IP is ) smtp.mailfrom=wasim.khan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [14.142.151.118] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5768017f-6a23-4982-099f-08d6e8b7fd89 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VE1PR04MB6461; x-ms-traffictypediagnostic: VE1PR04MB6461: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1775; x-forefront-prvs: 0058ABBBC7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(346002)(396003)(39860400002)(376002)(366004)(189003)(199004)(8676002)(6116002)(81156014)(81166006)(50226002)(3846002)(305945005)(7736002)(55236004)(68736007)(36756003)(386003)(4326008)(6506007)(102836004)(71190400001)(71200400001)(53936002)(66066001)(316002)(25786009)(66946007)(66476007)(64756008)(66446008)(66556008)(73956011)(14454004)(14444005)(2501003)(86362001)(5660300002)(8936002)(52116002)(78486014)(26005)(99286004)(256004)(110136005)(486006)(6636002)(186003)(2906002)(478600001)(476003)(6486002)(44832011)(6436002)(6512007)(2616005); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6461; H:VE1PR04MB6702.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: RLN+AqeOioarMJICs7i25tbhhr3lU3xT/MGEKm64wf6b6zAiXyzEu8NL87fF/2XRlDso57ZIPkkk4RVU4Bttlb5yZNtY2zK30C7meszKvb5Evn2jki3lXx9znhXUh+CBRcuSifn/bVW+wMyCwx3+YqHrv8EsvWY+bOKREYgYM/jEet+2vGJv5UWrrKkvsY+3E7DE4AoQgnmmyj+vRvLjsCFd63WpVVa7DvCGfjBF9A5dLS47Bfy3+x3WM9hV1b0zu7SEBDsXPGjZBcJpB4ew7XdPBjNrZU8gzcquGaKh403au8NnY31mJQyIlOIANFCdoWM+CQyrFi2+w3CVXhm6DXZ1/Je+FUJMRa1lc+f+HtmwZMglwCRRYtMMKcX7pVH9J4Q/M6Et6m0xfmYTSW2qICKQWh9gvZOEQNkGp6HT4R4= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5768017f-6a23-4982-099f-08d6e8b7fd89 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2019 06:43:45.2058 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wasim.khan@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6461 X-Mailman-Approved-At: Tue, 04 Jun 2019 11:14:42 +0000 Subject: [U-Boot] [PATCH 1/3] armv8: ls2088aqds: Add bootcmd for TFA boot 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" Add bootcmd for IFC NOR boot and SD boot. Signed-off-by: Wasim Khan --- include/configs/ls2080aqds.h | 45 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/include/configs/ls2080aqds.h b/include/configs/ls2080aqds.h index 74c7dc4..85f12d4 100644 --- a/include/configs/ls2080aqds.h +++ b/include/configs/ls2080aqds.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0+ */ /* - * Copyright 2017 NXP + * Copyright 2018-2019 NXP * Copyright 2015 Freescale Semiconductor */ @@ -378,8 +378,8 @@ unsigned long get_board_ddr_clk(void); "hwconfig=fsl_ddr:bank_intlv=auto\0" \ "loadaddr=0x80100000\0" \ "loadaddr_sd=0x90100000\0" \ - "kernel_addr=0x100000\0" \ - "kernel_addr_sd=0x800\0" \ + "kernel_addr=0x581000000\0" \ + "kernel_addr_sd=0x8000\0" \ "ramdisk_addr=0x800000\0" \ "ramdisk_size=0x2000000\0" \ "fdt_high=0xa0000000\0" \ @@ -389,9 +389,23 @@ unsigned long get_board_ddr_clk(void); "kernel_load=0xa0000000\0" \ "kernel_size=0x2800000\0" \ "kernel_size_sd=0x14000\0" \ - "mcinitcmd=fsl_mc start mc 0x580a00000" \ - " 0x580e00000 \0" \ - "mcmemsize=0x70000000 \0" + "load_addr=0xa0000000\0" \ + "kernelheader_addr=0x580800000\0" \ + "kernelheader_addr_r=0x80200000\0" \ + "kernelheader_size=0x40000\0" \ + "BOARD=ls2088aqds\0" \ + "mcmemsize=0x70000000 \0" \ + IFC_MC_INIT_CMD \ + "nor_bootcmd=echo Trying load from nor..;" \ + "cp.b $kernel_addr $load_addr " \ + "$kernel_size ; env exists secureboot && " \ + "cp.b $kernelheader_addr $kernelheader_addr_r " \ + "$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\ + "bootm $load_addr#$BOARD\0" \ + "sd_bootcmd=echo Trying load from SD ..;" \ + "mmcinfo; mmc read $load_addr " \ + "$kernel_addr_sd $kernel_size_sd && " \ + "bootm $load_addr#$BOARD\0" #elif defined(CONFIG_SD_BOOT) #define CONFIG_EXTRA_ENV_SETTINGS \ "hwconfig=fsl_ddr:bank_intlv=auto\0" \ @@ -426,6 +440,25 @@ unsigned long get_board_ddr_clk(void); #endif /* CONFIG_TFABOOT */ #endif /* CONFIG_SECURE_BOOT */ +#ifdef CONFIG_TFABOOT +#define SD_BOOTCOMMAND \ + "env exists mcinitcmd && env exists secureboot "\ + "&& mmcinfo && mmc read $load_addr 0x3c00 0x800 " \ + "&& esbc_validate $load_addr; " \ + "env exists mcinitcmd && run mcinitcmd " \ + "&& mmc read 0x88000000 0x6800 0x800 " \ + "&& fsl_mc lazyapply dpl 0x88000000; " \ + "run sd_bootcmd; " \ + "env exists secureboot && esbc_halt;" + +#define IFC_NOR_BOOTCOMMAND \ + "env exists mcinitcmd && env exists secureboot "\ + "&& esbc_validate 0x580780000; env exists mcinitcmd "\ + "&& fsl_mc lazyapply dpl 0x580d00000;" \ + "run nor_bootcmd; " \ + "env exists secureboot && esbc_halt;" +#endif + #if defined(CONFIG_FSL_MC_ENET) && !defined(CONFIG_SPL_BUILD) #define CONFIG_FSL_MEMAC #define CONFIG_PHYLIB_10G From patchwork Tue Jun 4 06:43:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wasim Khan X-Patchwork-Id: 1109783 X-Patchwork-Delegate: prabhakar@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="bDkjRxJA"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45J8W2252fz9s3l for ; Tue, 4 Jun 2019 21:16:14 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id A7E30C21D9A; Tue, 4 Jun 2019 11:15:44 +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=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 2F9DDC21D83; Tue, 4 Jun 2019 11:14:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3E701C21C29; Tue, 4 Jun 2019 06:43:48 +0000 (UTC) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20084.outbound.protection.outlook.com [40.107.2.84]) by lists.denx.de (Postfix) with ESMTPS id E0E2DC21C27 for ; Tue, 4 Jun 2019 06:43:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wh9lDwhpZM65SqkPPu1GtQBaMx+shWSwfDYXYL2eN0U=; b=bDkjRxJAQVysZwz+qbMQ/d6HGPPAH5XTuLNHbM5q3/qDDcMx9NpEFEt0/mXkiOI9LJ4oo9VrT72MnoCFpcwe788924x5zgQGEAehUfdl8lFu3nx0Vykv6QbaXji2CB/P7pBKjz2pbOHC4Ql4Oxqvif4eGs69NCuvWsSbvcgvYzI= Received: from VE1PR04MB6702.eurprd04.prod.outlook.com (20.179.235.203) by VE1PR04MB6461.eurprd04.prod.outlook.com (20.179.233.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1943.22; Tue, 4 Jun 2019 06:43:47 +0000 Received: from VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::9c45:77c7:ab7c:df40]) by VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::9c45:77c7:ab7c:df40%4]) with mapi id 15.20.1943.018; Tue, 4 Jun 2019 06:43:47 +0000 From: Wasim Khan To: "u-boot@lists.denx.de" , Prabhakar Kushwaha , Priyanka Jain Thread-Topic: [PATCH 2/3] armv8: ls2088aqds: Fix MC firmware loading during SD boot Thread-Index: AQHVGqDcmPP1/jrhrky572Kvyi0Fvg== Date: Tue, 4 Jun 2019 06:43:46 +0000 Message-ID: <1559630364-19106-2-git-send-email-wasim.khan@nxp.com> References: <1559630364-19106-1-git-send-email-wasim.khan@nxp.com> In-Reply-To: <1559630364-19106-1-git-send-email-wasim.khan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR01CA0095.apcprd01.prod.exchangelabs.com (2603:1096:3:15::21) To VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:128::11) authentication-results: spf=none (sender IP is ) smtp.mailfrom=wasim.khan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [14.142.151.118] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 10c9962c-5064-4b48-0380-08d6e8b7fe9a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VE1PR04MB6461; x-ms-traffictypediagnostic: VE1PR04MB6461: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 0058ABBBC7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(346002)(396003)(39860400002)(376002)(366004)(189003)(199004)(8676002)(6116002)(81156014)(81166006)(50226002)(3846002)(305945005)(7736002)(55236004)(68736007)(36756003)(386003)(4326008)(6506007)(102836004)(71190400001)(71200400001)(53936002)(66066001)(316002)(25786009)(66946007)(66476007)(64756008)(66446008)(66556008)(73956011)(14454004)(14444005)(2501003)(86362001)(5660300002)(8936002)(52116002)(78486014)(26005)(99286004)(256004)(110136005)(486006)(76176011)(6636002)(186003)(446003)(11346002)(2906002)(478600001)(476003)(6486002)(44832011)(6436002)(6512007)(2616005); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6461; H:VE1PR04MB6702.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: g0I4ysuFHgbv+lM+1CHIER25fxkoGeT5FBEvtjZT6ApSs57/07Vy6IiiV8Ta+/jj5kO6uJBf48Zeskj6z5Z9ITwSp7iVDV47uGrmDBm5URRSt5Nq41P1eotexe8BaBI59SGXK2AiIcXSmQE6gGHVKWvDfZhOCB8UZiVuqe2hXjc+najYzUAyY1ENeF3Uk5NvfJS2+ynr6VgRwUo2fJ1DflXenmRNB/5nYIV0YT+qW+2fWR+Miwmf/lJ9jhYECHaAf8XcvgSb/d4CltM0KphqqmuF3L4LU6rtXD+JYNq+B+BqQL0Eq5yIUqEWYj2nRohBs3vQlXzblV+aABaYtJFTxepXTiF1oC7juPrum6NToJXQIyau8efFuc27Z8cDBsQO8d8tkQO8JUZigLxdPoeRZWGtb5D63JiUnR27WDG4LW8= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 10c9962c-5064-4b48-0380-08d6e8b7fe9a X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2019 06:43:47.0058 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wasim.khan@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6461 X-Mailman-Approved-At: Tue, 04 Jun 2019 11:14:42 +0000 Subject: [U-Boot] [PATCH 2/3] armv8: ls2088aqds: Fix MC firmware loading during SD boot 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" During SD boot, MC firmware and DPC are copied from SD card to DDR. Size reserved between MC and DPC firmware on DDR is 1MB. If the size of MC firmware(load address 0x80000000) is more than 1 MB then part of MC firmware will be overwritten by DPC firmware (load address 0x80100000). Fix: Update the MC/DPL/DPC firmware's DDR address as per their respective addresses in SD card. Signed-off-by: Wasim Khan --- include/configs/ls2080aqds.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/configs/ls2080aqds.h b/include/configs/ls2080aqds.h index 85f12d4..c754e23 100644 --- a/include/configs/ls2080aqds.h +++ b/include/configs/ls2080aqds.h @@ -368,9 +368,9 @@ unsigned long get_board_ddr_clk(void); #else #ifdef CONFIG_TFABOOT #define SD_MC_INIT_CMD \ - "mmcinfo;mmc read 0x80000000 0x5000 0x800;" \ - "mmc read 0x80100000 0x7000 0x800;" \ - "fsl_mc start mc 0x80000000 0x80100000\0" + "mmcinfo;mmc read 0x80a00000 0x5000 0x1200;" \ + "mmc read 0x80e00000 0x7000 0x800;" \ + "fsl_mc start mc 0x80a00000 0x80e00000\0" #define IFC_MC_INIT_CMD \ "fsl_mc start mc 0x580a00000" \ " 0x580e00000 \0" @@ -446,8 +446,8 @@ unsigned long get_board_ddr_clk(void); "&& mmcinfo && mmc read $load_addr 0x3c00 0x800 " \ "&& esbc_validate $load_addr; " \ "env exists mcinitcmd && run mcinitcmd " \ - "&& mmc read 0x88000000 0x6800 0x800 " \ - "&& fsl_mc lazyapply dpl 0x88000000; " \ + "&& mmc read 0x80d00000 0x6800 0x800 " \ + "&& fsl_mc lazyapply dpl 0x80d00000; " \ "run sd_bootcmd; " \ "env exists secureboot && esbc_halt;" From patchwork Tue Jun 4 06:43:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wasim Khan X-Patchwork-Id: 1109784 X-Patchwork-Delegate: prabhakar@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="WXqt5Ufc"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45J8X45DPGz9s3l for ; Tue, 4 Jun 2019 21:17:08 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 5469EC21D8A; Tue, 4 Jun 2019 11:15:57 +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=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 9F41BC21DAF; Tue, 4 Jun 2019 11:14:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1D6B4C21C2C; Tue, 4 Jun 2019 06:43:50 +0000 (UTC) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20065.outbound.protection.outlook.com [40.107.2.65]) by lists.denx.de (Postfix) with ESMTPS id BD76CC21C29 for ; Tue, 4 Jun 2019 06:43:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=36RbGiWlpmyVhNmfOnFRAtsYg/j91QNWiBPCxD+xm3A=; b=WXqt5Ufc+YWB6VWdYfg2+DTkYLNrnfqopc8hh1Y1s0UIIySfbx24KDz0okigcGN6Hx3Q8untFGxIYJuznB8H/NbqxwuZmXaMMsqyxyimmKIhcTZ2mE7u7j7XhN/X1annIM0xXgdu6YtIHsvzZm4tbGWmDJOt3kd2vZ/K2XfM3DQ= Received: from VE1PR04MB6702.eurprd04.prod.outlook.com (20.179.235.203) by VE1PR04MB6461.eurprd04.prod.outlook.com (20.179.233.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1943.22; Tue, 4 Jun 2019 06:43:48 +0000 Received: from VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::9c45:77c7:ab7c:df40]) by VE1PR04MB6702.eurprd04.prod.outlook.com ([fe80::9c45:77c7:ab7c:df40%4]) with mapi id 15.20.1943.018; Tue, 4 Jun 2019 06:43:48 +0000 From: Wasim Khan To: "u-boot@lists.denx.de" , Prabhakar Kushwaha , Priyanka Jain Thread-Topic: [PATCH 3/3] armv8: ls2088ardb: Fix MC firmware loading during SD boot Thread-Index: AQHVGqDduBFD2K953kmNi9PW+qFvoA== Date: Tue, 4 Jun 2019 06:43:48 +0000 Message-ID: <1559630364-19106-3-git-send-email-wasim.khan@nxp.com> References: <1559630364-19106-1-git-send-email-wasim.khan@nxp.com> In-Reply-To: <1559630364-19106-1-git-send-email-wasim.khan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR01CA0095.apcprd01.prod.exchangelabs.com (2603:1096:3:15::21) To VE1PR04MB6702.eurprd04.prod.outlook.com (2603:10a6:803:128::11) authentication-results: spf=none (sender IP is ) smtp.mailfrom=wasim.khan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [14.142.151.118] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 52ea6da6-9831-4c69-5cc7-08d6e8b7ffac x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VE1PR04MB6461; x-ms-traffictypediagnostic: VE1PR04MB6461: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 0058ABBBC7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(346002)(396003)(39860400002)(376002)(366004)(189003)(199004)(8676002)(6116002)(81156014)(81166006)(50226002)(3846002)(305945005)(7736002)(55236004)(68736007)(36756003)(386003)(4326008)(6506007)(102836004)(71190400001)(71200400001)(53936002)(66066001)(316002)(25786009)(66946007)(66476007)(64756008)(66446008)(66556008)(73956011)(14454004)(14444005)(2501003)(86362001)(5660300002)(8936002)(52116002)(78486014)(26005)(99286004)(256004)(110136005)(486006)(76176011)(6636002)(186003)(446003)(11346002)(2906002)(478600001)(476003)(6486002)(44832011)(6436002)(6512007)(2616005); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6461; H:VE1PR04MB6702.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: TjyXfG9lQgBTGGYN+pPEtxA/yfeRMpxnCrfH9dI+HuWNd6Shy8pZi+qr2YYU7XRyfZGFPD6PR70iuw1lhLte6/Pm500pySx2YAkZ305L97ONtyIleL0h7zcGNcnDbnUsxKsqfk6tz1yZlHp+JBOD4jWppjPV3mFDroZQ7OtpY1eeuRwBzuBeK85PnspgdtlnMLoQr/bjMgW7ShMuMkwHPKYvuEjEItKnNFmvoZwV6mhJ1frQ2FZAIrF+XECsZntQYHl28Dx3Gp/d3mxPF5uC94Q2rkCkt8RbGX9zELlEXJB89QJoQTJ2EXBW5jVhnWE4zUNFtU3PtrZYRy31XKY84VowVjP8dTIFUgQN0XfNiaFzznQkVl9dcu1QfUfqnVIhREK9OyTZKIVOfdUzEQ0NmPivu4vVK5SoRuJ2t6AvCW0= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52ea6da6-9831-4c69-5cc7-08d6e8b7ffac X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2019 06:43:48.7717 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wasim.khan@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6461 X-Mailman-Approved-At: Tue, 04 Jun 2019 11:14:42 +0000 Subject: [U-Boot] [PATCH 3/3] armv8: ls2088ardb: Fix MC firmware loading during SD boot 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" During SD boot, MC firmware and DPC are copied from SD card to DDR. Size reserved between MC and DPC firmware on DDR is 1MB. If the size of MC firmware(load address 0x80000000) is more than 1 MB then part of MC firmware will be overwritten by DPC firmware (load address 0x80100000). Fix: Update the MC/DPL/DPC firmware's DDR address as per their respective addresses in SD card. Signed-off-by: Wasim Khan --- include/configs/ls2080ardb.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/configs/ls2080ardb.h b/include/configs/ls2080ardb.h index 2e8a8bb..1138111 100644 --- a/include/configs/ls2080ardb.h +++ b/include/configs/ls2080ardb.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0+ */ /* - * Copyright 2017 NXP + * Copyright 2018-2019 NXP * Copyright 2015 Freescale Semiconductor */ @@ -342,14 +342,14 @@ unsigned long get_board_sys_clk(void); "esbc_validate 0x20740000;" \ "fsl_mc start mc 0x20a00000 0x20e00000 \0" #define SD_MC_INIT_CMD \ - "mmcinfo;mmc read 0x80000000 0x5000 0x800;" \ - "mmc read 0x80100000 0x7000 0x800;" \ + "mmcinfo;mmc read 0x80a00000 0x5000 0x1200;" \ + "mmc read 0x80e00000 0x7000 0x800;" \ "env exists secureboot && " \ "mmc read 0x80700000 0x3800 0x10 && " \ "mmc read 0x80740000 0x3A00 0x10 && " \ "esbc_validate 0x80700000 && " \ "esbc_validate 0x80740000 ;" \ - "fsl_mc start mc 0x80000000 0x80100000\0" + "fsl_mc start mc 0x80a00000 0x80e00000\0" #define IFC_MC_INIT_CMD \ "env exists secureboot && " \ "esbc_validate 0x580700000 && " \ @@ -528,8 +528,8 @@ unsigned long get_board_sys_clk(void); "&& mmcinfo && mmc read $load_addr 0x3c00 0x800 " \ "&& esbc_validate $load_addr; " \ "env exists mcinitcmd && run mcinitcmd " \ - "&& mmc read 0x88000000 0x6800 0x800 " \ - "&& fsl_mc lazyapply dpl 0x88000000; " \ + "&& mmc read 0x80d00000 0x6800 0x800 " \ + "&& fsl_mc lazyapply dpl 0x80d00000; " \ "run distro_bootcmd;run sd_bootcmd; " \ "env exists secureboot && esbc_halt;"