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 A7D2CC433F5 for ; Sat, 22 Jan 2022 19:40:18 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8D365839F5; Sat, 22 Jan 2022 20:39:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.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=kpnmail.nl header.i=@kpnmail.nl header.b="by3ClHmP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8F9D3835CA; Sat, 22 Jan 2022 20:38:44 +0100 (CET) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.183]) (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 0A6DF83870 for ; Sat, 22 Jan 2022 20:38:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=kettenis@openbsd.org X-KPN-MessageId: e017bcc0-7bba-11ec-a1d2-005056992ed3 Received: from smtp.kpnmail.nl (unknown [10.31.155.8]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id e017bcc0-7bba-11ec-a1d2-005056992ed3; Sat, 22 Jan 2022 20:38:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kpnmail.nl; s=kpnmail01; h=mime-version:message-id:date:subject:to:from; bh=7ShN/mTx2pA6h7hrqfcIyMghip9HT/47HbPiEI4o064=; b=by3ClHmP/hkbA96nH4Gel44kXzV7tf7n1UxAUNXHzWU8CTCgyHafHp3Mucm+h9zH/3qxoGf6KpgjE jDj2XFABnUMYQ8uujOi7SW/UGjYXvNlpRt+qyHSI7Iv9vZ2zOTi0VKK/usSFQbB5d4hbxEWrCDesUH kYMiBAh4Eg1VZOr4= X-KPN-VerifiedSender: No X-CMASSUN: 33|aYFNF8vN15EPsOWSctzFbvtCtacV8FHmfkWzmyfZWnG7rSPs4VZiWLIyw8xoBcT g8UgTv/JA5hDs/oENgz9CCQ== X-Originating-IP: 83.163.83.176 Received: from copland.sibelius.xs4all.nl (sibelius.xs4all.nl [83.163.83.176]) by smtp.xs4all.nl (Halon) with ESMTPSA id f6a6900b-7bba-11ec-a897-00505699d6e5; Sat, 22 Jan 2022 20:39:07 +0100 (CET) From: Mark Kettenis To: u-boot@lists.denx.de Cc: sjg@chromium.org, jh80.chung@samsung.com, trini@konsulko.com, sven@svenpeter.dev, marcan@marcan.st, bmeng.cn@gmail.com, Mark Kettenis Subject: [PATCH v2 9/9] configs: apple: Add NVMe boot target Date: Sat, 22 Jan 2022 20:38:19 +0100 Message-Id: <20220122193819.84907-10-kettenis@openbsd.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220122193819.84907-1-kettenis@openbsd.org> References: <20220122193819.84907-1-kettenis@openbsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Add a boot target for NVMe such that we can boot from NVMe. Signed-off-by: Mark Kettenis --- include/configs/apple.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/configs/apple.h b/include/configs/apple.h index 3e5fb495f1..47faad8150 100644 --- a/include/configs/apple.h +++ b/include/configs/apple.h @@ -13,6 +13,12 @@ "fdt_addr_r=0x960100000\0" \ "kernel_addr_r=0x960200000\0" +#if CONFIG_IS_ENABLED(CMD_NVME) + #define BOOT_TARGET_NVME(func) func(NVME, nvme, 0) +#else + #define BOOT_TARGET_NVME(func) +#endif + #if CONFIG_IS_ENABLED(CMD_USB) #define BOOT_TARGET_USB(func) func(USB, usb, 0) #else @@ -20,6 +26,7 @@ #endif #define BOOT_TARGET_DEVICES(func) \ + BOOT_TARGET_NVME(func) \ BOOT_TARGET_USB(func) #include -- 2.34.1