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 5EBE7C77B73 for ; Tue, 2 May 2023 16:19:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7FD9A8471A; Tue, 2 May 2023 18:19:25 +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="HmpNN6Ul"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E5D9B846F7; Tue, 2 May 2023 18:19:23 +0200 (CEST) Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) (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 983778471E for ; Tue, 2 May 2023 18:19:21 +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-pl1-x62b.google.com with SMTP id d9443c01a7336-1ab0c697c2bso8709035ad.1 for ; Tue, 02 May 2023 09:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1683044360; x=1685636360; 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=MpEmZZanwukjqr+stk5ANmg2UwykKCfZSb61TX8ZCUc=; b=HmpNN6UlryHSejwhZsTjFtpdRaDw2TAoQkCH1VYIs390ptwUnDaw+OmlrBn7Zui9pP mluhrI9xoUhxf2OFcEgjYxbyMwCwJ1JwGKXpLGnUm7mKlO66RbrlwO6UqZNIOd3hEUA+ PNwB+gWDwy3gPlRnsp6xNNjFVasDNFEdZ15scGdKnDzSG7Dw1PnAi8eVgz4QEazp67wj SIfZVeE1KXeUV+SHlXlEXyeIW/OGkMbpajdE7/wRN1sS31bjyYWAuGb7YccORN+mNlMi LW2lSjrE5GQxXubkVru0wCeYP+OdNPgUObwZ70Rn50tELUsTS7Y6eEGJeu2vIp1Plps1 oz/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683044360; x=1685636360; 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=MpEmZZanwukjqr+stk5ANmg2UwykKCfZSb61TX8ZCUc=; b=DzyIXsXX37oHNg3pvI9DaXo14tXhZfSrOqnvQqu8C40ffR0ZG5GQ7fKmkCGzlBVz/S /H0JT1k8jZ8VHByCiT7oC7be1NrFufIwroB20lJcKlPhjS7K+2t2CrpIsbiR5+9MbbFx zLiyLuCS7Zl+6DPWs53LzYEvRTlc67G4lGljHA6tCvC4V3/p1aga6BIMDCLV6cu5/J1t ekzUGrccfFq/HKn7fU/vNF3cNleZfSoWrPgOkhLeHauoJCfcwdibTMAJ4+xW6XUBu9mR M8pz/LdcSInM/OVpCoT1XLCqba7dw+im3Y+Vi+X2t5yra96xsBgMXg6FuhDQMS5lGqDp Ht4Q== X-Gm-Message-State: AC+VfDy2kFLEF/IbsYoXdV8adCA1XdG/vdafTkIy6DT2iBG2M5u0vLyO 6oUtvyiAh7Jwt9YMtbFwOicfPQ== X-Google-Smtp-Source: ACHHUZ5mwtNPtkzpFkaO0anjeDzIFfnYips+p3ZksbMVhrUdZ1BkhREV35PQOAtvL6u+/MBpdFNftQ== X-Received: by 2002:a17:903:18f:b0:1a5:2540:729 with SMTP id z15-20020a170903018f00b001a525400729mr21592270plg.56.1683044359940; Tue, 02 May 2023 09:19:19 -0700 (PDT) Received: from mchitale-vm.. ([106.195.4.219]) by smtp.googlemail.com with ESMTPSA id c11-20020a170902724b00b001a527761c31sm20052465pll.79.2023.05.02.09.19.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 May 2023 09:19:19 -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 v2 1/4] spl: Add Kconfig options for NVME Date: Tue, 2 May 2023 21:48:59 +0530 Message-Id: <20230502161902.1339861-2-mchitale@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230502161902.1339861-1-mchitale@ventanamicro.com> References: <20230502161902.1339861-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 Reviewed-by: Simon Glass --- common/spl/Kconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 2c042ad306..a42774c76d 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -1263,6 +1263,26 @@ 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 + 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