spl: Allow mailbox drivers to be used within SPL
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 27 Aug 2018 10:27:49 +0000 (15:57 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 11 Sep 2018 12:32:55 +0000 (08:32 -0400)
Add an option for building mailbox drivers within SPL.

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
common/spl/Kconfig
drivers/Makefile
drivers/mailbox/Makefile

index e5a5188de8f1e8a00b02a81f0997e0372a94a10d..cccd551acab88ce59dfaaeee5839a63f0db27c58 100644 (file)
@@ -430,6 +430,14 @@ config SPL_LIBGENERIC_SUPPORT
          boards. Enable this option to build the code in lib/ as part of an
          SPL build.
 
+config SPL_DM_MAILBOX
+       bool "Support Mailbox"
+       help
+         Enable support for Mailbox within SPL. This enable the inter
+         processor communication protocols tobe used within SPL. Enable
+         this option to build the drivers in drivers/mailbox as part of
+         SPL build.
+
 config SPL_MMC_SUPPORT
        bool "Support MMC"
        depends on MMC
index d296354b3c01e49f3a7949305c99dc03c7ca1302..c0124765db4dc84d264942fb0c07cec4311b17f6 100644 (file)
@@ -14,6 +14,7 @@ obj-$(CONFIG_$(SPL_TPL_)SERIAL_SUPPORT) += serial/
 obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += mtd/spi/
 obj-$(CONFIG_$(SPL_TPL_)SPI_SUPPORT) += spi/
 obj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/
+obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox/
 
 ifndef CONFIG_TPL_BUILD
 ifdef CONFIG_SPL_BUILD
index 4ac85d412f3b27ee4af77373dac4b7b8965651a6..243ff6f3ceaf80793b0a01de0622336caee2ac57 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: GPL-2.0
 
-obj-$(CONFIG_DM_MAILBOX) += mailbox-uclass.o
+obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox-uclass.o
 obj-$(CONFIG_SANDBOX_MBOX) += sandbox-mbox.o
 obj-$(CONFIG_SANDBOX_MBOX) += sandbox-mbox-test.o
 obj-$(CONFIG_TEGRA_HSP) += tegra-hsp.o