Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35A80C433EF for ; Tue, 12 Jul 2022 12:05:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A7CBA83FEA; Tue, 12 Jul 2022 14:05:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=leica-geosystems.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=leica-geosystems.com header.i=@leica-geosystems.com header.b="orNY1+Bc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id ADC1E8411C; Tue, 12 Jul 2022 14:05:18 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2130.outbound.protection.outlook.com [40.107.104.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7B16883FEA for ; Tue, 12 Jul 2022 14:05:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=leica-geosystems.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=mamta.shukla@leica-geosystems.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HSN7g1TixPQGN5wePQIQmqwKWVOP3tGti9XLlzFriMVoCm9y41o9LgzMUrGrZZKq31ghBi+9okGvxTmgU8ENdtqK2X/wd/Zf41Zy33i+/nGghgfk2St2DVCRnUrIB7Oc8BryKRrDnc0oJOu67kUT2v0FRd4MjWg2UTQjIIN616ydRDlpKpnJvBmwBnoQLfle42iltf1QFwjtsgVFtHcvI0yKjtHicXqyYgOojbbCJm+WR8xhY7PnPdcPPoGKsjDwhBGgGrbMPBqIynpbdq4RVYiHqC4tHTCoSYSlxrZMx4kf2r0nIOibx6E7KQOjDcAxQkGcbaMW0a6feKPeAXmnIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=p43o1fw28K8DbaqWPbpFfaj5oZafPMRrEvAKrIfn+BE=; b=Rzgu6QWvQYmYI4mnwcc4p7Xc8GSHBrR/vlvuHNyaJTOltQUkpiocZaagHVzcZHabfMd9ST1kCzEr9KNb7UTycnOOwyQB3wkdvBRYoScUUokPNOstf675otb9qw93coJij2wh9sppjnrnwdL/6h+YR83sTr1/R39phE9E44baILoEBBzDI9F0yHbJY+kQCg16cY7vS9WlYwJddhOHxuScDR9Uy0vza1ZPgM5epN9RMeDmR+XtX/vAo7uvj+G/g2meJsni8Pt7CMbrvcw+gLyrB38TogD8GCycS9lJ2dIFE53zywR6ImGqTedEVPCSe/FbCdt/ICvEI8KE61EY2PbiKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=leica-geosystems.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=leica-geosystems.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p43o1fw28K8DbaqWPbpFfaj5oZafPMRrEvAKrIfn+BE=; b=orNY1+BcTsETaMrWiMPuJjcX+CrrEvFJEMjF17f/CVQGP1ARoEduOOEYnjA1bDSrYUYRBarVb3MB9LqW+C2M/OKYoOGkgNeDJskd6CmwVMJTF98vKVU2H/OnDFxvYg1lbZl6c7nGjWNEIuUMbWY5K5OwKWlBguvVkoOaVaB41NM= Received: from AM6P192CA0066.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:82::43) by AM6PR06MB6262.eurprd06.prod.outlook.com (2603:10a6:20b:f7::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.25; Tue, 12 Jul 2022 12:05:14 +0000 Received: from AM5EUR02FT013.eop-EUR02.prod.protection.outlook.com (2603:10a6:209:82:cafe::8c) by AM6P192CA0066.outlook.office365.com (2603:10a6:209:82::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.15 via Frontend Transport; Tue, 12 Jul 2022 12:05:14 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=leica-geosystems.com; Received-SPF: Pass (protection.outlook.com: domain of leica-geosystems.com designates 193.8.40.94 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.94; helo=hexagon.com; pr=C Received: from hexagon.com (193.8.40.94) by AM5EUR02FT013.mail.protection.outlook.com (10.152.8.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.16 via Frontend Transport; Tue, 12 Jul 2022 12:05:13 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.56]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Tue, 12 Jul 2022 14:05:13 +0200 From: Mamta Shukla To: u-boot@lists.denx.de Cc: sbabic@denx.de, peng.fan@nxp.com, aford173@gmail.com, bsp-development.geo@leica-geosystems.com, festevam@denx.de, Mamta Shukla Subject: [PATCH v5 0/7] Add support for FlexSPI Boot for i.MX8m Date: Tue, 12 Jul 2022 12:04:45 +0000 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 12 Jul 2022 12:05:13.0580 (UTC) FILETIME=[A469A2C0:01D895E7] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: bb69492b-dcaf-4f71-ab16-08da63fec709 X-MS-TrafficTypeDiagnostic: AM6PR06MB6262:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 909F8FiLpmCiL1r3BUPBiXAYFhWEyFuwVWdcd1U0LHwpo6bZ7WLKKCV1E+Ii7w0sJxQIQ7cjSQAWUHjBLUtNjW56ZFOsk3yznBMRAj5Ai8bbeFzDT/KqX57mH2lTZzZCrMmBvypRTlx/DRJyQEzotJx9XSf2RwMYwzMSTcuyICGOIOGi6x2ss8XT67ff2PMxWXcbhDw9SCZf4O0Y73RsjviKgSFgV2K9nWiiWC1uaMZYGXRhI7YIQUzLg/SX7BZriZIAa7dS5HG4PUxmUIltXtpwBIZevhxmCAQkqiAMiCozyH52WPc5C+WuMiHSB6+hdwij66TMODISdvFD2bh07tm43Z8eBJ02VF1TfE+wNyGXz4bgY1+U4mA09lRGytHh7JuOjuHKVwdcBaVBCMWpKlxGPRxidKczOW5r3GaCK/5lUcxGovho4mGOqrdqbL4DOXskIWS0yAyl0ubjajk/Mh/pVQvjcWL7L1wWZ/atBC+plFkGQUKLbeSa5GpxroiVFvHug7Qx9wPo4Pp+TxkkJEyaaaOrCczIlqe3bZsAbPYmX47j8KMEdcHbqOAUcozS0leBSKpLbHiSaOPo1tuVM5NNmu+nEw7R9I5gz6GvWs/dikDTgDXCIzWgwhsLyGCAahd3uolqun2UulL6ccCeQcSoig0FtdJYJcbrVi4shbU6f14is4NGpPMY1FI1yBnA4WM2xpplAWEEvIsgv/ZdgXJVH4mvqnZ71qUWYyi/VnIygIS+CPf3Ni0Xsd7J9mZ4AB1940ix6e1pEv/6wZFA667tfRjb6Iz3tixTRxXHh9jQGY6/o3iOsc62Ea5xZIhw X-Forefront-Antispam-Report: CIP:193.8.40.94; CTRY:CH; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:hexagon.com; PTR:ahersrvdom50.leica-geosystems.com; CAT:NONE; SFS:(13230016)(4636009)(376002)(346002)(396003)(39860400002)(136003)(46966006)(40470700004)(36840700001)(26005)(82740400003)(107886003)(2616005)(8676002)(2906002)(478600001)(356005)(36756003)(8936002)(86362001)(5660300002)(82310400005)(41300700001)(44832011)(83380400001)(47076005)(186003)(81166007)(40460700003)(6666004)(316002)(6916009)(70586007)(36860700001)(40480700001)(70206006)(336012)(4326008); DIR:OUT; SFP:1102; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2022 12:05:13.8020 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bb69492b-dcaf-4f71-ab16-08da63fec709 X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a; Ip=[193.8.40.94]; Helo=[hexagon.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR02FT013.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR06MB6262 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This series of patch adds support for generating FlexSPI Header file and booting from QSPI on i.MX8m. Changes in v2: -Add check for error in case open() for fspi_fd in imx8mkimage.c fails -Remove extra line in commit message -Remove extra line in imx8mm_evk_fspi_defconfig -New patch in series to add an entry for imx8mm_evk_fspi_defconfig in board/freescale/imx8mm_evk/MAINTAINERS -New patch in series to add instructions to build and boot from QSPI Flash Changes in v3: -Fix Checkpatch ERROR: code indent should use tabs where possible -Fix Checkpatch ERROR for trailing spaces Changes in v4: -Add condition for CONFIG_SYS_UBOOT_BASE for mmc/sd card build -Define QPSI0_AMBA_BASE in imx-regs.h since it is imx8mm specific Changes in v5: -Fix GCC warning: braces around scalar initializer -Remove __ASSEMBLY__ as it has been dropped in commit 5c86a8f7a191 ("imx: Don't define __ASSEMBLY__ in source files") -Sync config with commit e092e3250270 ("Prepare v2022.07") Mamta Shukla (7): tools: mkimage: Add support to generate FlexSPI Header for i.MX8m dts: imx8mm-uboot: Add support to pack FlexSPI Header using binman configs: Add config for enabling FSPI boot option for i.MX8m board: freescale: Add QSPI Boot support in spl for i.MX8m configs: imx8mm: Define CONFIG_SYS_UBOOT_BASE for i.MX8m board: freescale: Add entry for imx8mm_evk_fspi_defconfig doc: board: nxp: Add instructions to boot from QSPI arch/arm/dts/imx8mm-u-boot.dtsi | 20 +++ arch/arm/include/asm/arch-imx8m/imx-regs.h | 1 + board/freescale/imx8mm_evk/MAINTAINERS | 1 + .../imx8mm_evk/imximage-8mm-lpddr4-fspi.cfg | 7 + board/freescale/imx8mm_evk/spl.c | 2 + configs/imx8mm_evk_fspi_defconfig | 124 ++++++++++++++++++ doc/board/nxp/imx8mm_evk.rst | 37 +++++- include/configs/imx8mm_evk.h | 9 ++ include/imximage.h | 38 ++++++ tools/Kconfig | 59 +++++++++ tools/imx8mimage.c | 81 +++++++++++- 11 files changed, 373 insertions(+), 6 deletions(-) create mode 100644 board/freescale/imx8mm_evk/imximage-8mm-lpddr4-fspi.cfg create mode 100644 configs/imx8mm_evk_fspi_defconfig -- 2.25.1