]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: Allow remoteproc drivers to be used within SPL
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 27 Aug 2018 10:27:53 +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 remoteproc drivers within SPL.

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

index cccd551acab88ce59dfaaeee5839a63f0db27c58..280496fbe0b6a975ecd084358a2c9c915475f0e8 100644 (file)
@@ -642,6 +642,12 @@ config SPL_RAM_DEVICE
          be already in memory when SPL takes over, e.g. loaded by the boot
          ROM.
 
+config SPL_REMOTEPROC
+       bool "Support REMOTEPROCS"
+       help
+         Enable support for REMOTEPROCs in SPL. This permits to load
+         a remote processor firmware in SPL.
+
 config SPL_RTC_SUPPORT
        bool "Support RTC drivers"
        help
index c0124765db4dc84d264942fb0c07cec4311b17f6..23ea609b094f519f88fddbfb178b69b26417cff1 100644 (file)
@@ -15,6 +15,7 @@ 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/
+obj-$(CONFIG_$(SPL_)REMOTEPROC) += remoteproc/
 
 ifndef CONFIG_TPL_BUILD
 ifdef CONFIG_SPL_BUILD
@@ -102,7 +103,6 @@ obj-y += input/
 # SOC specific infrastructure drivers.
 obj-y += smem/
 obj-y += soc/
-obj-$(CONFIG_REMOTEPROC) += remoteproc/
 obj-y += thermal/
 obj-y += axi/
 
index 87ef9e61a77283e8ba20ec9c16e02da15e8c226f..77eb7085235949b7dcdf36d58d4d46ad7b0e6faa 100644 (file)
@@ -4,7 +4,7 @@
 # Texas Instruments Incorporated - http://www.ti.com/
 #
 
-obj-$(CONFIG_REMOTEPROC) += rproc-uclass.o
+obj-$(CONFIG_$(SPL_)REMOTEPROC) += rproc-uclass.o
 
 # Remote proc drivers - Please keep this list alphabetically sorted.
 obj-$(CONFIG_K3_SYSTEM_CONTROLLER) += k3_system_controller.o