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 0DF92C433F5 for ; Thu, 29 Sep 2022 11:39:05 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D79ED84CE7; Thu, 29 Sep 2022 13:38:26 +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="G+E+lSQF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 32A5C84C7D; Thu, 29 Sep 2022 11:57:17 +0200 (CEST) Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) (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 8930084B2B for ; Thu, 29 Sep 2022 11:57:14 +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-pj1-x102e.google.com with SMTP id r8-20020a17090a560800b00205eaaba073so860897pjf.1 for ; Thu, 29 Sep 2022 02:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=MynRMTJz41dXp+dLQXDW69s0DRIlB6xjVNxbzAEs7sU=; b=G+E+lSQFbA4MRjrnXZmbD2JHW10M8K3hgiNMBQaMW+opyqNM70B23vZzN6G6eA4ie6 4YKRc5Sw455mCDKD7g1Cu0kXgblxDenYYv8EE/OPjPk1kBM8MyJ4M284/qurjFf125IM IGLneWBMfVMYSklpupKZfE8bXZ0/zUaO8NcLoLdPrfaQzWSn20WQFLTzY3zpLV7c3VTb 4XF1m73jZL0qQGA695FNo92cBBUHBaNW5MrRXH6w9dgn2olAMW7ASejoVGxHQH/LzAmv HGYJBkpCZSmmixKnClFrQ/CIPg+zpWCZ9yIp3gQcNXz51NV2yBuc6OgSDKIir8e0kL2S s5SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=MynRMTJz41dXp+dLQXDW69s0DRIlB6xjVNxbzAEs7sU=; b=GB7jixhcv3+++Mf0rZZ7DWvv3wPPq9bRjY4MXSOSxgDPtHruom+3z8g/tjEv/0xmVW HaF9j7UFuTkctSfvdzyzTuWmQemTPZIDihbC8kNtIpMqzLkEuPTR5GJCzECivz0jaFla FUhIMi6GOQj5hwVIfDWsSwT4bx5iii0hHHn0w65sdrE6ZyNIp6+QmWeFCpEQUCxNekGd r7HGj83ZLrrzfx8blZZd1YGvDSEAK0HJTpp5tkkdVKNjarG9DPuDswWknoasjVksgBUD LogcHy7v2MYSEj/QYErPNz0Qat95NIy/k76OzSdCHxObGGgQDJA/wxsWImZyu6aIL4dv hMUA== X-Gm-Message-State: ACrzQf27WD1uCgbIDJEZRWE2tnDnybOrBRhV8JWdMihWfOZkNDxk+VrZ aUWbUqe+kSxXmBaNPnq8Z0KxWg== X-Google-Smtp-Source: AMsMyM6C3xjbZymruUQwOTV6Z7qPVmT3yAeAklSRLIJFYJpiwiVGfXbqGpBU+pMu55w2wio7MctfbQ== X-Received: by 2002:a17:90b:35c7:b0:205:ff7a:38b7 with SMTP id nb7-20020a17090b35c700b00205ff7a38b7mr2844941pjb.105.1664445432892; Thu, 29 Sep 2022 02:57:12 -0700 (PDT) Received: from ThinkPad-T490.dc1.ventanamicro.com ([103.97.165.210]) by smtp.googlemail.com with ESMTPSA id a1-20020a170902710100b00176dee43e0dsm5418139pll.285.2022.09.29.02.57.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 02:57:12 -0700 (PDT) From: Mayuresh Chitale To: Bin Meng , Simon Glass Cc: Mayuresh Chitale , u-boot@lists.denx.de, Heinrich Schuchardt , Rick Chen , Leo Subject: [RFC PATCH v1 1/3] spl: Add Kconfig options for NVME Date: Thu, 29 Sep 2022 15:26:37 +0530 Message-Id: <20220929095639.355675-2-mchitale@ventanamicro.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220929095639.355675-1-mchitale@ventanamicro.com> References: <20220929095639.355675-1-mchitale@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 29 Sep 2022 13:38:11 +0200 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 This patch adds options to enable PCI NVMe support in SPL Signed-off-by: Mayuresh Chitale --- common/spl/Kconfig | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 70d97815f0..2bc97421f9 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -1218,6 +1218,31 @@ config SPL_SATA expense and power consumption. This enables loading from SATA using a configured device. +config SPL_NVME + bool "NVM Express device support" + depends on BLK + select HAVE_BLOCK_DEVICE + 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 SYS_NVME_FAT_BOOT_PARTITION + hex "NVMe boot partition number" + depends on SPL_NVME + default 0x1 + config SPL_SATA_RAW_U_BOOT_USE_SECTOR bool "SATA raw mode: by sector" depends on SPL_SATA -- 2.25.1