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 68A06C4332F for ; Thu, 20 Oct 2022 13:31:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B627284E73; Thu, 20 Oct 2022 15:31:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="ppfbogPF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0982984D30; Thu, 20 Oct 2022 15:31:12 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DAE5584D30 for ; Thu, 20 Oct 2022 15:31:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rogerq@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A422A61B7D; Thu, 20 Oct 2022 13:31:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52407C433D7; Thu, 20 Oct 2022 13:31:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666272667; bh=6+pJS7DyJgags3F0FnyfpK7X+baZnk26/Mx1m020ccU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ppfbogPFiW6HNXapJ3v8Q3Q7YgCSLBTwWPpFazW6U5sAv8/+NPIb0pEKq/GpjGy5H otbWT7eunRw1LuTZ49IvNGNtANgD7EBMok9NfoTqyqslAo0AGh+G6XYC9BNR3r0397 XdZweKpsKbhKYENudSMOehJOBKS/hEBzCevO7vaRmEN5HwfJyEAa6gIvoeLKjeoSUb Nlgus3gyQe0vNCtip07Oyj4D2Seerkc5467AM+gNcv1O+lXW0z6pu5TKuaR/jwatjo upmhNfMqfg5x96VhSl2prnREdegtv/l/sQM9OKrEb0gULBmjrn92Cbuyn+9Rj380b0 Ynv967+XXbkmg== From: Roger Quadros To: trini@konsulko.com, sjg@chromium.org Cc: u-boot@lists.denx.de, praneeth@ti.com, Roger Quadros Subject: [u-boot][PATCH v3 2/4] scripts: Makefile.spl: Enable memory drivers to be built for SPL Date: Thu, 20 Oct 2022 16:30:47 +0300 Message-Id: <20221020133049.8398-3-rogerq@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221020133049.8398-1-rogerq@kernel.org> References: <20221020133049.8398-1-rogerq@kernel.org> 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 Introduce CONFIG_SPL_MEMORY to allow Memory drivers to be built for SPL. Signed-off-by: Roger Quadros --- common/spl/Kconfig | 7 +++++++ scripts/Makefile.spl | 1 + 2 files changed, 8 insertions(+) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 70d97815f0..186131a699 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -789,6 +789,13 @@ config SPL_DM_MAILBOX this option to build the drivers in drivers/mailbox as part of SPL build. +config SPL_MEMORY + bool "Support Memory controller drivers" + help + Enable support for Memory Controller drivers within SPL. + These devices provide Memory bus interface to various devices like + SRAM, Ethernet adapters, FPGAs, etc. + config SPL_MMC bool "Support MMC" depends on MMC diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index 3bafeb4fe9..a1892bff7f 100644 --- a/scripts/Makefile.spl +++ b/scripts/Makefile.spl @@ -114,6 +114,7 @@ libs-$(CONFIG_PARTITIONS) += disk/ endif libs-y += drivers/ +libs-$(CONFIG_SPL_MEMORY) += drivers/memory/ libs-$(CONFIG_SPL_USB_GADGET) += drivers/usb/dwc3/ libs-$(CONFIG_SPL_USB_GADGET) += drivers/usb/cdns3/ libs-y += dts/ -- 2.17.1