public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] arm: mach-rmobile: Mark the default s_init function as weak
@ 2020-09-22  8:09 Biju Das
  2020-09-22 13:12 ` Marek Vasut
  0 siblings, 1 reply; 2+ messages in thread
From: Biju Das @ 2020-09-22  8:09 UTC (permalink / raw)
  To: u-boot

Mark the default s_init function as weak, so that SoC's can
override it if needed, and it will still be discarded if unused.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 arch/arm/mach-rmobile/lowlevel_init_gen3.S | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/mach-rmobile/lowlevel_init_gen3.S b/arch/arm/mach-rmobile/lowlevel_init_gen3.S
index 213ec143e2..1df2c40345 100644
--- a/arch/arm/mach-rmobile/lowlevel_init_gen3.S
+++ b/arch/arm/mach-rmobile/lowlevel_init_gen3.S
@@ -31,6 +31,12 @@ ENTRY(save_boot_params)
 	b	save_boot_params_ret
 ENDPROC(save_boot_params)
 
+.pushsection .text.s_init, "ax"
+WEAK(s_init)
+	ret
+ENDPROC(s_init)
+.popsection
+
 ENTRY(lowlevel_init)
 	mov	x29, lr			/* Save LR */
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] arm: mach-rmobile: Mark the default s_init function as weak
  2020-09-22  8:09 [PATCH] arm: mach-rmobile: Mark the default s_init function as weak Biju Das
@ 2020-09-22 13:12 ` Marek Vasut
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Vasut @ 2020-09-22 13:12 UTC (permalink / raw)
  To: u-boot

On 9/22/20 10:09 AM, Biju Das wrote:
> Mark the default s_init function as weak, so that SoC's can
> override it if needed, and it will still be discarded if unused.

Applied to sh/next, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-22 13:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-22  8:09 [PATCH] arm: mach-rmobile: Mark the default s_init function as weak Biju Das
2020-09-22 13:12 ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox