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 8ABDBC77B7C for ; Thu, 4 May 2023 09:53:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9354E852CE; Thu, 4 May 2023 11:53:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="JBlDkjz3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E930084D31; Thu, 4 May 2023 11:53:44 +0200 (CEST) Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3FDE884749 for ; Thu, 4 May 2023 11:53:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mchitale@ventanamicro.com Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-6434e40394eso243961b3a.1 for ; Thu, 04 May 2023 02:53:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1683194020; x=1685786020; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=n8nRaTbS1/7s84oKissZTpUGzSVIA/hS89tOjvG2eKQ=; b=JBlDkjz3NG9WfRaTeWKApBJQNpntWxL9BfDOtCaWEjGsEcWr9jNaH4NUCV9Ify1BbM wHxRX5hl/CoJn4ka6+d/8AvERgyS/Mu/JqBGzD1JbZmZwL2/9avEGpO1g5vldZWdBc1V VNcxeV2AusUf7GrjlzDpAMHUc7rk7yThkJQgzIRXE25XDNN0uqO5eCwnp/W5WPQdGWFP Oniokq5xdnRKPvU7dRQw4iiEIznCOTHoZ06tbnD7eHLtsvxZDFoN3I8Mzy62NnnAe7pM zYKVDdEygJ0EjJbZwecBTcEE96tnZw9VjZKTTbHATCvI6+vGJexUn+f4Ce2OO60ijpia 1YSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683194020; x=1685786020; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n8nRaTbS1/7s84oKissZTpUGzSVIA/hS89tOjvG2eKQ=; b=Kk5mMK0t+GM6Qk+8Vkp+VW9Pv0kVvL03QuElmLgiTZ0PuEPeyKXwFS7NbgbzjPYhdP XMO1g40YCEFiQ6s6Uy9m5wV+EGwltnHWZTthxS8L1a4rFsRP7KUWpMQcg2YeYTJ0ucd9 AM4g0dL4EdZKMl5RkLtE80Bnl9WvX7v1tmeBdUq7ajdDd8kbrmd4KxiUnxuuijDzGHiZ Fa4cWxGbUmLfbjGqDEMZslnleg6jUBR8yrGbwE8xkhJdAGM/ry7oX+pateK/NbqBL3JL cH/EbmqPd3Owm4R34FeeBKUCwkMMUeSuevq/spRP0ScdiY99PFE+n1wWn+49ylMTmim4 cfdw== X-Gm-Message-State: AC+VfDyMsEE5cxvfdtHJBg/rKMYbt9wKgHqZcsg/x0ITmmyNAXgtk7OU iNuPOZ3cc8P88qxg5+qnmSGkxQ== X-Google-Smtp-Source: ACHHUZ75Nitu0eLT4PjUQEsNR4RKlTNtRqg6Qrro11Hj7dwSV8ho1Dls1GUSclqyXq0EHm15nTmr9A== X-Received: by 2002:a05:6a00:18a1:b0:643:87fd:1f9 with SMTP id x33-20020a056a0018a100b0064387fd01f9mr1389979pfh.2.1683194020546; Thu, 04 May 2023 02:53:40 -0700 (PDT) Received: from mchitale-vm.. ([103.97.165.210]) by smtp.googlemail.com with ESMTPSA id w18-20020a63d752000000b0051b8172fa68sm21746267pgi.38.2023.05.04.02.53.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 02:53:39 -0700 (PDT) From: Mayuresh Chitale To: Bin Meng , Simon Glass Cc: Mayuresh Chitale , u-boot@lists.denx.de, Heinrich Schuchardt , Rick Chen , Leo Subject: [PATCH v3 1/5] spl: Add Kconfig options for NVME Date: Thu, 4 May 2023 15:23:23 +0530 Message-Id: <20230504095327.2791676-2-mchitale@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230504095327.2791676-1-mchitale@ventanamicro.com> References: <20230504095327.2791676-1-mchitale@ventanamicro.com> 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.8 at phobos.denx.de X-Virus-Status: Clean Add kconfig options to enable NVME and PCI NVMe support in SPL Signed-off-by: Mayuresh Chitale --- common/spl/Kconfig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 2c042ad306..515e8f2c66 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -1263,6 +1263,27 @@ config SPL_SATA_RAW_U_BOOT_SECTOR Sector on the SATA disk to load U-Boot from, when the SATA disk is being used in raw mode. Units: SATA disk sectors (1 sector = 512 bytes). +config SPL_NVME + bool "NVM Express device support" + depends on BLK + select HAVE_BLOCK_DEVICE + select SPL_BLK_FS + help + This option enables support for NVM Express devices. + It supports basic functions of NVMe (read/write). + +config SPL_NVME_PCI + bool "NVM Express PCI device support for SPL" + depends on SPL_PCI && SPL_NVME + help + This option enables support for NVM Express PCI devices. + This allows use of NVMe devices for loading u-boot. + +config SPL_NVME_BOOT_DEVICE + hex "NVMe boot device number" + depends on SPL_NVME + default 0x0 + config SPL_SERIAL bool "Support serial" select SPL_PRINTF -- 2.34.1