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 8B2D7C7EE24 for ; Sat, 3 Jun 2023 14:05:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0D8528575B; Sat, 3 Jun 2023 16:05:07 +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="A4+Jy1Jg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C725A85746; Sat, 3 Jun 2023 16:05:04 +0200 (CEST) Received: from mail-oo1-xc2a.google.com (mail-oo1-xc2a.google.com [IPv6:2607:f8b0:4864:20::c2a]) (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 7D161847D5 for ; Sat, 3 Jun 2023 16:05:00 +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-oo1-xc2a.google.com with SMTP id 006d021491bc7-558b04141e2so54414eaf.0 for ; Sat, 03 Jun 2023 07:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1685801099; x=1688393099; 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=zyEKFnJgELuTCED6HlhJ8Qtvv6SQJGvqKsjz3n40QsA=; b=A4+Jy1JgYYm9SlvBqeGgAtoQBw8fDrY+Zh3Rho5bgS3F33Aqv03dCTUSKT5P5t2ySo t3OjJfXmNXeIOjTBakSVVtPfFWhqiSzr+l0USGdOVZADzeJwk2qFiRCvthYboGoG9Zq4 9Lpnyg1F2Ju6IuC/QcJd4rJyI2T/zA03hLoxlq2eOBqqt2mfLiXWu5SL5+orXTRbkOFe eyp8vWg+13QyMJglp9zKGJ2Y0vWkFRxNwvJaVRbVakUgiJLtE+kOmy9eT5SQQUbdlBGS kNlNupgeORAUatiMKPTFUEQ2DjGooMDE4yTSVw4Owa55eQ1TbWAt1PbU5PGMPIbOZJUF W8QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685801099; x=1688393099; 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=zyEKFnJgELuTCED6HlhJ8Qtvv6SQJGvqKsjz3n40QsA=; b=QYqcwEtmKO7XUgjcHlfkiW8x/mFx9orzZevJ27NRBDCQSPKJRerrKrTMvIPfu5OlPa 1x2p/C3Uc3L/4mgWoL6KcVRz6Jg1tQTCcvOw5b/dzZ3IwD8Ut1oyUWU2YK1Ue60kRxsZ FLbA0beRBkYA5pzNDc15Odx6thNYxV/xyF4iT2lhnu/6u4F4RY/wsF+gr9KPV7u/WI5Q HynsJOsOV0BAiHWo0uU6nxZYPJC1We7rXZKdIQsrvf6s4WXXUSlLkSIZx6MoDJ+xYwLx Qnd9cfPIIEBL1UljpWPLeX0APSfy6Pm48jVb0xt930nwzMVQO9e/OrO3sU/zkCcKM54Y /voA== X-Gm-Message-State: AC+VfDz2vrgG4/hpkLtgbeVeWCBqHp4090YciNA7bNIFrscYJGth1Tfa 63PdZny26dmliFx4s+XzmyArJg== X-Google-Smtp-Source: ACHHUZ5fx1EdQGiSsEfSuN5LAGf0Lrrv6oS30mtp1HCGJGQkYitf5NojiEAYXMoMZA2JyjUqZnKH6g== X-Received: by 2002:a05:6808:a10:b0:398:10ef:c9d2 with SMTP id n16-20020a0568080a1000b0039810efc9d2mr3460967oij.36.1685801099165; Sat, 03 Jun 2023 07:04:59 -0700 (PDT) Received: from mchitale-vm.. ([103.97.165.210]) by smtp.googlemail.com with ESMTPSA id cz8-20020a056808404800b0039819ef73e7sm113150oib.2.2023.06.03.07.04.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Jun 2023 07:04:33 -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 3/4] nvme: pci: Enable for SPL Date: Sat, 3 Jun 2023 19:32:55 +0530 Message-Id: <20230603140256.2443518-4-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 Enable NVME and PCI NVMe drivers for SPL builds. Also enable PCI_PNP for SPL which is required to auto configure the PCIe devices. Signed-off-by: Mayuresh Chitale --- drivers/Makefile | 1 + drivers/nvme/Makefile | 2 +- drivers/pci/Kconfig | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/Makefile b/drivers/Makefile index 58be410135..dc559ea7f7 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -34,6 +34,7 @@ obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox/ obj-$(CONFIG_$(SPL_)REMOTEPROC) += remoteproc/ obj-$(CONFIG_$(SPL_)SYSINFO) += sysinfo/ obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm/ +obj-$(CONFIG_$(SPL_)NVME) += nvme/ obj-$(CONFIG_XEN) += xen/ obj-$(CONFIG_$(SPL_)FPGA) += fpga/ obj-y += bus/ diff --git a/drivers/nvme/Makefile b/drivers/nvme/Makefile index fa7b619446..fd3e68a91d 100644 --- a/drivers/nvme/Makefile +++ b/drivers/nvme/Makefile @@ -4,4 +4,4 @@ obj-y += nvme-uclass.o nvme.o nvme_show.o obj-$(CONFIG_NVME_APPLE) += nvme_apple.o -obj-$(CONFIG_NVME_PCI) += nvme_pci.o +obj-$(CONFIG_$(SPL_)NVME_PCI) += nvme_pci.o diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig index ef328d2652..dca71ef504 100644 --- a/drivers/pci/Kconfig +++ b/drivers/pci/Kconfig @@ -40,6 +40,12 @@ config PCI_PNP help Enable PCI memory and I/O space resource allocation and assignment. +config SPL_PCI_PNP + bool "Enable Plug & Play support for PCI" + help + Enable PCI memory and I/O space resource allocation and assignment. + This is required to auto configure the enumerated devices. + config PCI_REGION_MULTI_ENTRY bool "Enable Multiple entries of region type MEMORY in ranges for PCI" help -- 2.34.1