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 37915C43334 for ; Thu, 9 Jun 2022 14:55:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BE72A843C9; Thu, 9 Jun 2022 16:55:55 +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="U9Qogc0I"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 58E94843C5; Thu, 9 Jun 2022 16:55:53 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on20703.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1a::703]) (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 8AF3E843C8 for ; Thu, 9 Jun 2022 16:55:50 +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=n26aqxwzUTjNjg74XXb1mqNif/7NhPowrVTtKVXbJtCSupCu4VksKSm/L1UMvH93H39B+znchTX8Y+OI+MUsjR2il3Ao8NpGl1kRiGobv4QI9iPt40NABRRjnd7FujymwTmpsjYIgF0OOT8jUOK1w1Orw4xDtPDQaBipYEKMiXJDx9yADvIEY6wfNaZezhHvefGLXPYIE1EQ/syoNDxUhTQqau79wV4/+w9rmwWXYs2V63iOIWL+CgL6bZT6F+aIB5/xAjNBZhN4PUvsaPcx3iwnJ5hxGQYgHISQW3OQxR1GMWLFNlamR57Aa1Z50HAyVHUxQWS19wTs3Ht+ZB8/hg== 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=dGCnSxF0t9ey9CgsTkYiZxeIRfvNEIrCa7BNWZySMZ0=; b=S4rJGze70r24QdMz/OT2ZNHfrK57T1wYzCkUQzHSR+32XTsJRyLSx0f7HwFnsx8s6AYMIQMHU2GT02fCdtq2XbUSxdyyeTMkLhyLc0nlzSlY8ymuBgcG6Usp8rXQLJ22DyvMFTLIjcwvkaJh7TLFam4hXqq/Fm8YK8VIuJAHaIAQoDEP1WGhCy/QNNzCzNNjhhCd8B4LgRWJRZ8aT7UoqDgY93k7WyJPkei/AZji3nnX00gRQ5u2Hepg+V8ImgL4RAvQfBndE8nlQtvujXz+n0eCmws6uiQpNNWZCbMY/onZEOXAsrvpWHH76Z6SIg7S/38cCC6wN92yThuXnAC2bw== 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=dGCnSxF0t9ey9CgsTkYiZxeIRfvNEIrCa7BNWZySMZ0=; b=U9Qogc0Id5ui8HUUJwEp/ov+BRD/unSqt2/tiTq63AcGu3gFG0U9LjEN9itvPHLsrkaA8VMz9dTjeXCyjZM2I7ll/t53p6HiGQ2zJtePtEtTw+1tiZAACqmVpqvpXT5teyG+09Y6hH+zb260fjACCxCgtY77WYk/N7mqKUQpEhg= Received: from OL1P279CA0002.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:12::7) by VI1PR0601MB2510.eurprd06.prod.outlook.com (2603:10a6:800:85::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.18; Thu, 9 Jun 2022 14:55:49 +0000 Received: from HE1EUR02FT047.eop-EUR02.prod.protection.outlook.com (2603:10a6:e10:12:cafe::4e) by OL1P279CA0002.outlook.office365.com (2603:10a6:e10:12::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13 via Frontend Transport; Thu, 9 Jun 2022 14:55:48 +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 HE1EUR02FT047.mail.protection.outlook.com (10.152.11.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.12 via Frontend Transport; Thu, 9 Jun 2022 14:55:46 +0000 Received: from aherlnxbspsrv01.lgs-net.com ([10.60.34.56]) by hexagon.com with Microsoft SMTPSVC(10.0.17763.1697); Thu, 9 Jun 2022 16:55:46 +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, Mamta Shukla Subject: [PATCH v3 0/7] Add support for FlexSPI Boot for i.MX8m Date: Thu, 9 Jun 2022 14:55:22 +0000 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 09 Jun 2022 14:55:46.0405 (UTC) FILETIME=[00051150:01D87C11] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 8213f29e-2850-404b-3f73-08da4a2822c8 X-MS-TrafficTypeDiagnostic: VI1PR0601MB2510:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xgxtwdQ+olFFcH0eZ4g/Ueze00XdwWyAra5Y330qwL23zyDQ3AU+OkDPsY4v97nYc+ohETtoGdSFu+mpVU6G6/YnlyyHoeYhnaJbAT1OsmV61R+K80fOac1J6hJf8HX71lsFsPm50x2KfBEVJUm+qfZoBmueSAMEJeIEcQh0+7KdaL+0tflyrPc1VjfT3J+Y9cvMsZ0tlcRDos0fvskTXf1LoZusJace3b3LPNqpqSMPfwz76W/l70iszk5sxTkX4mLibsHvAcNBNP/FPgeTCqx4We10nH3BP7TiOxAd70AZ3SrjFMLwFt3dgQ4C40AWW23q1JD5xIpEAyAZb9RUIH4TOVbaEdIC9k6x+6j9pyVoGw9u9wc5XonD2xG7QA8SyLkRs+YgGHSVzIn5+VpRvFCw2R7uucY9vuNHG+CQvxN1e/swvRmt4gHDfgjICHq3BPVc8/LX21d9OFZJBsuYa2B/rbAAiQiyEBCAUsAE1txLF+WOMMgzCfcowtgv/KD6bpdy9DgYx+AHOre59sPVRYGFcbpPA0xSO//O31itjRGctu4T6qW3cYdxPt44jCnsAUp3+l5TflhJNAlYlVF2Tm3Qe3iIqnUSfPROJh5I0szVHw2t0Y+sJyqggpACUr9WLA+7UlUTzVhnEhPxd6pOkKgf3yk8TynxYc+QxgTVOgvc6MVU1b9KH2YlNA0SvOLK 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:(13230001)(4636009)(40470700004)(46966006)(36840700001)(36860700001)(36756003)(82310400005)(83380400001)(4326008)(8676002)(6916009)(356005)(70206006)(47076005)(2616005)(336012)(70586007)(316002)(40460700003)(186003)(107886003)(2906002)(508600001)(5660300002)(8936002)(86362001)(26005)(81166007)(44832011)(6666004); DIR:OUT; SFP:1102; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2022 14:55:46.8261 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8213f29e-2850-404b-3f73-08da4a2822c8 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: HE1EUR02FT047.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0601MB2510 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.5 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 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 +++ board/freescale/imx8mm_evk/MAINTAINERS | 1 + .../imx8mm_evk/imximage-8mm-lpddr4-fspi.cfg | 9 ++ board/freescale/imx8mm_evk/spl.c | 2 + configs/imx8mm_evk_fspi_defconfig | 115 ++++++++++++++++++ doc/board/nxp/imx8mm_evk.rst | 37 +++++- include/configs/imx8mm_evk.h | 7 +- include/imximage.h | 38 ++++++ tools/Kconfig | 59 +++++++++ tools/imx8mimage.c | 81 +++++++++++- 10 files changed, 362 insertions(+), 7 deletions(-) create mode 100644 board/freescale/imx8mm_evk/imximage-8mm-lpddr4-fspi.cfg create mode 100644 configs/imx8mm_evk_fspi_defconfig -- 2.25.1