diff mbox series

[u-boot,v3,2/4] scripts: Makefile.spl: Enable memory drivers to be built for SPL

Message ID 20221020133049.8398-3-rogerq@kernel.org
State Accepted
Delegated to: Tom Rini
Headers show
Series Introduce MEMORY uclass and TI GPMC driver | expand

Commit Message

Roger Quadros Oct. 20, 2022, 1:30 p.m. UTC
Introduce CONFIG_SPL_MEMORY to allow Memory drivers to
be built for SPL.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
---
 common/spl/Kconfig   | 7 +++++++
 scripts/Makefile.spl | 1 +
 2 files changed, 8 insertions(+)

Comments

Simon Glass Oct. 21, 2022, 8:17 p.m. UTC | #1
On Thu, 20 Oct 2022 at 07:31, Roger Quadros <rogerq@kernel.org> wrote:
>
> Introduce CONFIG_SPL_MEMORY to allow Memory drivers to
> be built for SPL.
>
> Signed-off-by: Roger Quadros <rogerq@kernel.org>
> ---
>  common/spl/Kconfig   | 7 +++++++
>  scripts/Makefile.spl | 1 +
>  2 files changed, 8 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini Oct. 26, 2022, 7:27 p.m. UTC | #2
On Thu, Oct 20, 2022 at 04:30:47PM +0300, Roger Quadros wrote:

> Introduce CONFIG_SPL_MEMORY to allow Memory drivers to
> be built for SPL.
> 
> Signed-off-by: Roger Quadros <rogerq@kernel.org>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

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/