Browse Source

spl: Allow mailbox drivers to be used within SPL

Add an option for building mailbox drivers within SPL.

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Lokesh Vutla 3 years ago
parent
commit
880274192c
3 changed files with 10 additions and 1 deletions
  1. 8 0
      common/spl/Kconfig
  2. 1 0
      drivers/Makefile
  3. 1 1
      drivers/mailbox/Makefile

+ 8 - 0
common/spl/Kconfig

@@ -430,6 +430,14 @@ config SPL_LIBGENERIC_SUPPORT
430 430
 	  boards. Enable this option to build the code in lib/ as part of an
431 431
 	  SPL build.
432 432
 
433
+config SPL_DM_MAILBOX
434
+	bool "Support Mailbox"
435
+	help
436
+	  Enable support for Mailbox within SPL. This enable the inter
437
+	  processor communication protocols tobe used within SPL. Enable
438
+	  this option to build the drivers in drivers/mailbox as part of
439
+	  SPL build.
440
+
433 441
 config SPL_MMC_SUPPORT
434 442
 	bool "Support MMC"
435 443
 	depends on MMC

+ 1 - 0
drivers/Makefile

@@ -14,6 +14,7 @@ obj-$(CONFIG_$(SPL_TPL_)SERIAL_SUPPORT) += serial/
14 14
 obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += mtd/spi/
15 15
 obj-$(CONFIG_$(SPL_TPL_)SPI_SUPPORT) += spi/
16 16
 obj-$(CONFIG_$(SPL_TPL_)TIMER) += timer/
17
+obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox/
17 18
 
18 19
 ifndef CONFIG_TPL_BUILD
19 20
 ifdef CONFIG_SPL_BUILD

+ 1 - 1
drivers/mailbox/Makefile

@@ -2,7 +2,7 @@
2 2
 #
3 3
 # SPDX-License-Identifier: GPL-2.0
4 4
 
5
-obj-$(CONFIG_DM_MAILBOX) += mailbox-uclass.o
5
+obj-$(CONFIG_$(SPL_)DM_MAILBOX) += mailbox-uclass.o
6 6
 obj-$(CONFIG_SANDBOX_MBOX) += sandbox-mbox.o
7 7
 obj-$(CONFIG_SANDBOX_MBOX) += sandbox-mbox-test.o
8 8
 obj-$(CONFIG_TEGRA_HSP) += tegra-hsp.o