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 D0F45C433F5 for ; Fri, 14 Jan 2022 11:05:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 33D178340A; Fri, 14 Jan 2022 12:05:25 +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=pass (1024-bit key; secure) header.d=kpnmail.nl header.i=@kpnmail.nl header.b="ckLlX3BB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F249483434; Fri, 14 Jan 2022 12:05:19 +0100 (CET) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.186]) (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 E270B83434 for ; Fri, 14 Jan 2022 12:05:11 +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: c0e1b237-7529-11ec-922e-00505699b430 Received: from smtp.kpnmail.nl (unknown [10.31.155.8]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id c0e1b237-7529-11ec-922e-00505699b430; Fri, 14 Jan 2022 12:04:33 +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=cjl4jrJlHehwPSrfelvxMO2yaWiLq3jW8yqcQSQ4kgM=; b=ckLlX3BBw1b259/9Zo/fD4GgQaS+m0GDIntzqnbPt/0Z7HkHUsx7fJvTXk2duwoebQl+yclhHiSa1 R8904KPcb8ymShR9AYP4ynW2CMbmUSay79/pGsVq3dqGgRNMaUSeBZ25rCcLRIwRfOoEIUz/cwnAW1 lFUFOId6WT1GIMqI= X-KPN-VerifiedSender: No X-CMASSUN: 33|bgiuyYLJzPVIKeWiYGhwOH11jrlXKuWCldJC7dBJnhRN6OYtG/LRBaWFwYfqeij XR0W5MhpqMwFwIArbg6nPKQ== 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 ec63f2bf-7529-11ec-a83c-00505699d6e5; Fri, 14 Jan 2022 12:05:46 +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 8/8] configs: apple: Add NVMe boot target Date: Fri, 14 Jan 2022 12:04:38 +0100 Message-Id: <20220114110438.58452-9-kettenis@openbsd.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220114110438.58452-1-kettenis@openbsd.org> References: <20220114110438.58452-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.2 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