From mboxrd@z Thu Jan 1 00:00:00 1970 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 C6181C678DC for ; Thu, 19 Jan 2023 17:41:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AE95785669; Thu, 19 Jan 2023 18:41:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=kicherer.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=kicherer.org header.i=@kicherer.org header.b="TL6BXuKI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 42B20851E6; Thu, 19 Jan 2023 16:28:39 +0100 (CET) Received: from mail.zeus06.de (www.zeus06.de [194.117.254.36]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C56F08567D for ; Thu, 19 Jan 2023 16:28:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=kicherer.org Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=dev@kicherer.org DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=kicherer.org; h=from:to :cc:subject:date:message-id:mime-version :content-transfer-encoding; s=k1; bh=L2iC29eRq2vXBmUX1Dv/Zs9bWO3 Izr75ETwceKWslYY=; b=TL6BXuKI/PpRftYLZPtOZ1JfHBNRCgQ10gjbFix+3BH ZeZMNTNp8qgtUnl82eAoRgAY/UHRqYnrzBnX94mRYZuKYHd1fwTLnXRm8B1GnAH+ v6lY03Qav2Qj2v714glaQrPA/ErbxvKinSfd00uwdIaIzS/zBqC3G30bHmwMk5F8 = Received: (qmail 1972833 invoked from network); 19 Jan 2023 16:28:33 +0100 Received: by mail.zeus06.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 19 Jan 2023 16:28:33 +0100 X-UD-Smtp-Session: l3s6476p2@2uPblZ/ynINd7WR9 From: Mario Kicherer To: u-boot@lists.denx.de Cc: sbabic@denx.de, festevam@gmail.com, uboot-imx@nxp.com, daniel.schwierzeck@gmail.com, weijie.gao@mediatek.com, GSS_MTK_Uboot_upstream@mediatek.com, rick@andestech.com, ycliang@andestech.com, Mario Kicherer Subject: [PATCH v2 0/2] spl: spl_nor: add alternative SPL_LOAD_IMAGE_METHOD Date: Thu, 19 Jan 2023 16:28:20 +0100 Message-Id: <20230119152822.1214202-1-dev@kicherer.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 19 Jan 2023 18:41:30 +0100 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 Add a second SPL_LOAD_IMAGE_METHOD BOOT_DEVICE_NOR2 to enable booting from an alternative NOR address in case loading from the first address fails - e.g., if no valid header is found. Changes since v1: - addressed right email recipients Mario Kicherer (2): spl: spl_nor: add BOOT_DEVICE_NOR2 as alternative SPL_LOAD_IMAGE_METHOD spl: spl_nor: add spl_boot_device parameter to spl_nor_get_uboot_base() arch/arm/include/asm/spl.h | 1 + arch/arm/mach-imx/image-container.c | 2 +- arch/mips/include/asm/spl.h | 1 + arch/mips/mach-mtmips/mt7621/spl/spl.c | 2 +- arch/mips/mach-mtmips/spl.c | 2 +- arch/riscv/include/asm/spl.h | 1 + common/spl/spl_nor.c | 11 ++++++----- 7 files changed, 12 insertions(+), 8 deletions(-) -- 2.34.1