Add SPL_SMEM config to enable/disable SMEM driver in SPL.

Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Varadarajan Narayanan <[email protected]>
---
v3: Pick R-b Simon
---
 common/spl/Kconfig | 8 ++++++++
 drivers/Makefile   | 1 +
 2 files changed, 9 insertions(+)

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 5fa94098e49..88db96807b0 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -1387,6 +1387,14 @@ config SPL_RAM_DEVICE
          be already in memory when SPL takes over, e.g. loaded by the boot
          ROM.
 
+config SPL_SMEM
+       bool "Support SMEM (Shared Memory manager)"
+       depends on SMEM
+       help
+         Enable support for the Shared Memory Manager. The driver provides an
+         interface to items in a heap shared among all processors. This enables
+         the drivers in drivers/smem as part of an SPL build.
+
 config SPL_PCI_DFU
        bool "PCIe boot support"
        depends on SPL_PCI_ENDPOINT
diff --git a/drivers/Makefile b/drivers/Makefile
index 43d0ba33281..ead082450ca 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -74,6 +74,7 @@ obj-$(CONFIG_SPL_SATA) += ata/ scsi/
 obj-$(CONFIG_SPL_LEGACY_BLOCK) += block/
 obj-$(CONFIG_SPL_THERMAL) += thermal/
 obj-$(CONFIG_SPL_UFS_SUPPORT) += scsi/ ufs/
+obj-$(CONFIG_SPL_SMEM) += smem/
 
 endif
 endif
-- 
2.34.1

Reply via email to