]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-rmobile: Mark the default s_init function as weak
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 22 Sep 2020 08:09:17 +0000 (09:09 +0100)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 26 Sep 2020 15:25:43 +0000 (17:25 +0200)
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

index 213ec143e2774cf1c48a60feb566610ee3b81375..1df2c4034531ae657c638ccb38104ac10db6f4e7 100644 (file)
@@ -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 */