Re: [U-Boot] [PATCH 23/25] spl: Allow remoteproc drivers to be used within SPL

2018-08-24 Thread Tom Rini
On Tue, Aug 21, 2018 at 08:02:01PM +0530, Lokesh Vutla wrote:

> Add an option for building remoteproc drivers within SPL.
> 
> Signed-off-by: Lokesh Vutla 

Reviewed-by: Tom Rini 

-- 
Tom


signature.asc
Description: PGP signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH 23/25] spl: Allow remoteproc drivers to be used within SPL

2018-08-21 Thread Lokesh Vutla
Add an option for building remoteproc drivers within SPL.

Signed-off-by: Lokesh Vutla 
---
 common/spl/Kconfig  | 6 ++
 drivers/Makefile| 2 +-
 drivers/remoteproc/Makefile | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 67275eb39d..ba6be4dc40 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -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
diff --git a/drivers/Makefile b/drivers/Makefile
index c0124765db..23ea609b09 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -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/
 
diff --git a/drivers/remoteproc/Makefile b/drivers/remoteproc/Makefile
index 87ef9e61a7..77eb708523 100644
--- a/drivers/remoteproc/Makefile
+++ b/drivers/remoteproc/Makefile
@@ -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
-- 
2.18.0

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot