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 2F319C77B7C for ; Thu, 4 May 2023 09:54:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CA1F484F47; Thu, 4 May 2023 11:53:51 +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="Ntm8mWk1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9012A84797; Thu, 4 May 2023 11:53:50 +0200 (CEST) Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) (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 1D55384797 for ; Thu, 4 May 2023 11:53:48 +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-pg1-x534.google.com with SMTP id 41be03b00d2f7-51b0f9d7d70so179808a12.1 for ; Thu, 04 May 2023 02:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1683194026; x=1685786026; 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=JOTu9DlprjxjUPCxwt23wR9KfCpv9OpW4jV12zfmVtQ=; b=Ntm8mWk1m0zypsGK9U149jzSGcnCzW33SvY8o9S2OuV+a6cJksZbHNWHkIs1z7bHaV dao8iO4aCeZE9WEyNutNRZGrs5++oeQ3qhZJACfMntSDr920rhCfVp2a9z6CVnSkxL/Z 7GlI4sL9yxDWxmruuTm/OSBa8wiX/Gyht2QFrIAeEA411p3Rgy/NVC/Rg1iXEQ25mT5M mJDpVTxBWhZZiqBWCSt8hGjsWXu27ZAYw6L3+Ej5lgndJxazOEu2wW1GjCQin3gBjCve ugPhiPnS5J3I50VOmCF8NzIph+cPqBEfE02bjPA6rBiNG//dLHHaPv+KK38AAMj21yUQ IXWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683194026; x=1685786026; 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=JOTu9DlprjxjUPCxwt23wR9KfCpv9OpW4jV12zfmVtQ=; b=Shvyj5VPQdksa44/81yxRS6SJwOeLXzOschG4jmBj8ezZNDaEaeOy5nNG2tOrNNQAm eiFqD3w9FcA9zPfuv1nnTLbYZsGLEW0WYPU+aOTD3UzqIvMJs9SQoboYDAtPf7njMqos 4Azha4Wm4mi39++gZJC07KingrSjQOpV4EOq5C1zI5FRYU7u7QsSdrC/xoajXSO29gKm VINJRb8/4NokTNCYJA3+tagMcz9ZjswOwALFkXuz9V+AJaqYPq3CDh/7x4yZeMNjdXUN rLpoJvv9asl80qAyVZ9SzTZYphUZF7Zqz18g5I/OXB1hIXbpdjqjNjxxTkdkswhnIx/f 0E5Q== X-Gm-Message-State: AC+VfDyRybQ2duzZYwP1W0+lPKiaVnykkxA/p8ov08j/MkzctsCKi1CX Y1o9wmawXy1x327si6TP+Lbbww== X-Google-Smtp-Source: ACHHUZ5TJ2YGk0BggmQRAtF2GkgXl0ES5z4DgxW0nFo4E12680f008IXXUxYk+HRrwbcJN1zqvATAg== X-Received: by 2002:a05:6a21:3293:b0:eb:6e43:8e1b with SMTP id yt19-20020a056a21329300b000eb6e438e1bmr1915098pzb.30.1683194026427; Thu, 04 May 2023 02:53:46 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 02:53:46 -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 3/5] nvme: pci: Enable for SPL Date: Thu, 4 May 2023 15:23:25 +0530 Message-Id: <20230504095327.2791676-4-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 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 | 7 +++++++ 3 files changed, 9 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..ecab6ddc7e 100644 --- a/drivers/pci/Kconfig +++ b/drivers/pci/Kconfig @@ -40,6 +40,13 @@ 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" + default n + 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