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 D3545C433EF for ; Thu, 9 Jun 2022 11:03:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 66E48843A1; Thu, 9 Jun 2022 13:03:07 +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="BSJPxq2g"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B7DD6843A2; Thu, 9 Jun 2022 13:03:05 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20701.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d00::701]) (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 96199842C2 for ; Thu, 9 Jun 2022 13:03:01 +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=J5mJ7fFAK5C/XahEfYlTpvUMGQxm3+caOvszYHlDaRkcvmK0I76n9HxmFgdG26ghaZtlZAMsVrNa6KxtfzKujpZzj5uiU7kcS0/NNcPRNsDMtsJyrTQqpXNLWGOQ45WDUVGMk/7i+/bcX9N8fpGrp7etGZW7/zZOuz95UloIaMkc38RtVOXVMRY92Kzzq1nwBLc/BkKnEKGVE/YvfEb13n9tyB2d4o1h0DPjJhwO4haJ93jHNTpSK3RHdhxgSlL9egtIqdWO7sH6JGadnrXaPlWw2h7CYB/c+/gFtOt4qMbTQvNtzy4xl1iy5f8A+nMmtWtwrEgzhKwZ2C7hdf2QGg== 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=MbU9FfEZccpblVrjXapmW9ItHKuuGjlrV/sLW9Oen4I=; b=n2lyRH4ZOm3kHoTwhoU/m/GQx7uc8YxRLa3/iMLW9fVgLUFtm7umnRHtp701Wunlbm9pFztS8Ow4uyJXS5v32rdmRDsuw7QDBnPca7RdLYPVT0NU+Hk1xYFveUu/GkMeX/+dkyWfdvMKFuvL9NUZh9O8jnay4J0utIPJZJcDONdosvpqHcfVnd/vIMViQTreXcB2JymvCVa1PpqQvaC0EgLcunQ1VSmovQJbLhGkagUZ7Dsb0QctCqR/sTZ8NXPPMHT03PDKFHEPtDtMHgUHlWNfYpmOF02gg6mg87osPQde2YBjIE1LrZyxBQLBbhewl8Od72uK96HkcibuMqiQ9w== 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=MbU9FfEZccpblVrjXapmW9ItHKuuGjlrV/sLW9Oen4I=; b=BSJPxq2gboHthbUnkSgLWmqcTvs1y/sXj1N8UDmLzcLpVn4tq9KXEtjay9Fd4b9Ecp0h70v0xRckqlfXQgpWyA9ZIiKQogW+Yoj/zqcZrJdX88Awc2KBNwj531UGZHm0Paw45TZBG/FfAB+soBhU3LO+VJAvB9NsdfVP+8pK7A4= Received: from AS8P250CA0021.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:330::26) by HE1PR0602MB3610.eurprd06.prod.outlook.com (2603:10a6:7:86::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.15; Thu, 9 Jun 2022 11:03:00 +0000 Received: from VE1EUR02FT025.eop-EUR02.prod.protection.outlook.com (2603:10a6:20b:330:cafe::65) by AS8P250CA0021.outlook.office365.com (2603:10a6:20b:330::26) 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 11:02:59 +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 VE1EUR02FT025.mail.protection.outlook.com (10.152.12.109) 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 11:02:59 +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 13:02:59 +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 v2 0/7] Add support for FLexSPI Boot for i.MX8m Date: Thu, 9 Jun 2022 11:01:56 +0000 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 09 Jun 2022 11:02:59.0212 (UTC) FILETIME=[7AEC8CC0:01D87BF0] X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: b5b7ed7c-62a9-40ad-ac26-08da4a079d8c X-MS-TrafficTypeDiagnostic: HE1PR0602MB3610: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: nYEbP8+Slcg1HetILIqoPUDaOKIvA9DvrjANSaAmcV4Cl3wIHq6XkRPEqQwzYYTeXHoH6Ji1TUdn3tuT5CDDq1y4cd6Tn9sSKjR4AEjR5mfm2v05aqJcFOe4tqqBh1TScu62h4IAVI4r5KTuw83UGFmqR6wc36L0y5Z4RUchqQ+/djHTX9BzsUk0nJ5/wXf+R2MAF06mz8lGKj2CBvVkuQ2h7Q/7l/ry5mFODmMv4krcyCiTXgTTuIP/V/ZrxhQ/VrB5nFGAEFJ1d1Ti09LKk9mCM5Ztw+Oo57pYUHLCjT32pRxj2Ld1hO98uqKXiXDV19KBqD30Vd4i8YA0RVL++FtnPKicU5wfqirLS4xoYSS8VF7wB5HKAZuqW1f0RAaSXSmr7MyJaufxwKboo2LPE+DwcBzXsLpZz+7h/tCYHlAMNMd94JIEFr2z7x1TTs1ZFyd6SKhb0JWiRFUrv8jyL8fBrclpiye5RffYmBMlWH9MXK/YPxFI7w6MjDduFPmoBu4MVkUmg38FFkZAvWZywfdiBJSdU2KkIofXq2/IILXMnE2zQ+8VlJ0X21P7I6t5WEmchOTleGE2uqfaHSgnHQEgKMdgkhGMvjY3LaXLStqPVk6k72FX0nqyyr8P+Kawnz800xKoEl6bYucWWv1ahStp1UP6kc5k3wI8NOhlWbGV4LRYhrYCuUfPfQq1PBGS 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)(36840700001)(40470700004)(46966006)(6666004)(186003)(86362001)(47076005)(70206006)(8936002)(26005)(508600001)(107886003)(2616005)(44832011)(40460700003)(2906002)(336012)(6916009)(81166007)(4326008)(8676002)(316002)(82310400005)(70586007)(83380400001)(5660300002)(36756003)(356005)(36860700001); DIR:OUT; SFP:1102; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2022 11:02:59.4502 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b5b7ed7c-62a9-40ad-ac26-08da4a079d8c 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: VE1EUR02FT025.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0602MB3610 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 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 | 22 +++- 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 | 38 +++++- include/configs/imx8mm_evk.h | 7 +- include/imximage.h | 38 ++++++ tools/Kconfig | 59 +++++++++ tools/imx8mimage.c | 81 +++++++++++- 10 files changed, 364 insertions(+), 8 deletions(-) create mode 100644 board/freescale/imx8mm_evk/imximage-8mm-lpddr4-fspi.cfg create mode 100644 configs/imx8mm_evk_fspi_defconfig -- 2.25.1