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 F0C0AC77B73 for ; Sat, 3 Jun 2023 14:04:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 093F38575B; Sat, 3 Jun 2023 16:04:05 +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="LXaLLocm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8AB44847D5; Sat, 3 Jun 2023 16:03:59 +0200 (CEST) Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) (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 DC04E85746 for ; Sat, 3 Jun 2023 16:03:56 +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-oi1-x22e.google.com with SMTP id 5614622812f47-39855d57240so2064413b6e.2 for ; Sat, 03 Jun 2023 07:03:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1685801035; x=1688393035; 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=5sCvvfn/PczvA1D6g51HEkiphpVj0cRvnfZ1hw2+7rc=; b=LXaLLocmbokfXRX1yDrOuVpWs0ar6BQY/UOjkxugUVl9W/wfGLCGdae/l7FTt2TxkN KbqSLkzrdytdIVWOWRIWkzD+9qcDf21FJ3Afysf/xnURZVunhAn2bSFhzuhlnEfVUqwj PYGgG02VFWj0JnjFx5SkvQx0Py/KxjEHxUWOeZGV/ozxnhA99zrt0xqPtrZAKgjxze8/ RUAG0HGSWo3BMD8mYpwSCU01lKIb2AurqkASIddbSAKsG00zM91D0cNrevsxdgsq6VRO /BUHe0tLNJz6RqLtVyD8Qt8CnfE6iV71ND+Hgo/8dyTg9pEXNIY9YwcdvUJARKLNSMW7 qerQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685801035; x=1688393035; 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=5sCvvfn/PczvA1D6g51HEkiphpVj0cRvnfZ1hw2+7rc=; b=URxlKDJhe/8sMaFJ2FkVoBxd1rr+353s5os2Qco4yDgDX+/fJyOCizMwwHZgYNmxnV NrDm459gR3mzQ/4ZhOaK4wNhMDSeKxR81w5UOwIdZ7xepf1jEorIoAbcURNfpLHaOgGC JMYFoLyKY4xWXOw+j+p7dLvK3R79nyQHIECRm4OMOE3m0tvg9NWbFQM94Hluw1m6MAVo kxl+UN1PSAd00hxROnwAVNyFuLIjKtDMN5J9mS/zoiMAithwfQAgHp3jTNCCA8NOxcmo a/w9u4EB1/xyQ9PRQYp1ECqqfGlvCG9sKhZJLy6B6BlfvrtPBeIoFn3g3tzAMbEYAiSB S7ZQ== X-Gm-Message-State: AC+VfDznAFiwQ0H2DhOmnWulergMr/ldpLHEwOQpCD+Q3bQsXkGm32Fo 2oRa0bLjBgdI1jRsB+ezqj5LNQ== X-Google-Smtp-Source: ACHHUZ5dRH/8+seI1io4wrG12icK76f/01cGcRty21rAtFAhzuN8xuJnJvXrBWXvFj61X65ZEXa0NA== X-Received: by 2002:a05:6808:428e:b0:398:574e:8352 with SMTP id dq14-20020a056808428e00b00398574e8352mr2085246oib.21.1685801035505; Sat, 03 Jun 2023 07:03:55 -0700 (PDT) Received: from mchitale-vm.. ([103.97.165.210]) by smtp.googlemail.com with ESMTPSA id cz8-20020a056808404800b0039819ef73e7sm113150oib.2.2023.06.03.07.03.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jun 2023 07:03:47 -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 v4 1/4] spl: Add Kconfig options for NVME Date: Sat, 3 Jun 2023 19:32:53 +0530 Message-Id: <20230603140256.2443518-2-mchitale@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230603140256.2443518-1-mchitale@ventanamicro.com> References: <20230603140256.2443518-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 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 2c042ad306..94b13f7a7f 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -1263,6 +1263,32 @@ 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 FS_LOADER + 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_BOOT_PARTITION + hex "NVMe boot partition number" + depends on SPL_NVME + default 0x1 + config SPL_SERIAL bool "Support serial" select SPL_PRINTF -- 2.34.1