diff mbox series

[v2,01/12] drivers: Descend to drivers/soc unconditionally

Message ID 20200204053959.8802-2-vigneshr@ti.com
State Accepted, archived
Commit 28ff144662ebda8e601fa87579523e346f7eaf35
Delegated to: Lokesh Vutla
Headers show
Series TI: AM654/J721e: Add support to boot from OSPI | expand

Commit Message

Raghavendra, Vignesh Feb. 4, 2020, 5:39 a.m. UTC
Descend to drivers/soc directory unconditionally for SPL and U-Boot
builds. Individual drivers can have their own config to check what needs
to be built for SPL. There should be no increase in SPL code size
due to this change.

This is required on K3 SoCs to support DMA in SPL.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
---
 drivers/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Simon Glass June 2, 2020, 1:46 p.m. UTC | #1
Hi Tom,

On Mon, 3 Feb 2020 at 22:40, Vignesh Raghavendra <vigneshr@ti.com> wrote:
>
> Descend to drivers/soc directory unconditionally for SPL and U-Boot
> builds. Individual drivers can have their own config to check what needs
> to be built for SPL. There should be no increase in SPL code size
> due to this change.
>
> This is required on K3 SoCs to support DMA in SPL.
>
> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>
> ---
>  drivers/Makefile | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/Makefile b/drivers/Makefile
> index 23501fd74388..420875042896 100644
> --- a/drivers/Makefile
> +++ b/drivers/Makefile
> @@ -107,7 +107,6 @@ obj-y += reset/
>  obj-y += input/
>  # SOC specific infrastructure drivers.
>  obj-y += smem/
> -obj-y += soc/
>  obj-y += thermal/
>  obj-$(CONFIG_TEE) += tee/
>  obj-y += axi/
> @@ -119,3 +118,5 @@ obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
>  obj-$(CONFIG_DM_HWSPINLOCK) += hwspinlock/
>  obj-$(CONFIG_DM_RNG) += rng/
>  endif
> +
> +obj-y += soc/
> --
> 2.25.0
>

Oddly enough this commit seems to fix the problems with my rpi3, so
mainline is working again now.

Regards,
Simon
diff mbox series

Patch

diff --git a/drivers/Makefile b/drivers/Makefile
index 23501fd74388..420875042896 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -107,7 +107,6 @@  obj-y += reset/
 obj-y += input/
 # SOC specific infrastructure drivers.
 obj-y += smem/
-obj-y += soc/
 obj-y += thermal/
 obj-$(CONFIG_TEE) += tee/
 obj-y += axi/
@@ -119,3 +118,5 @@  obj-$(CONFIG_MACH_PIC32) += ddr/microchip/
 obj-$(CONFIG_DM_HWSPINLOCK) += hwspinlock/
 obj-$(CONFIG_DM_RNG) += rng/
 endif
+
+obj-y += soc/