arm64: renesas: Deduplicate board_early_init_f()

Introduce common weak board_early_init_f() in rcar64-common.c
which is the default implementation in case there is no other
board specific board_early_init_f(). Remove board_early_init_f()
from Salvator-X, ULCB and Draak boards where this function is
empty.

Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
Marek Vasut
2025-01-29 18:04:33 +01:00
parent 4d12216904
commit a75792914f
4 changed files with 5 additions and 15 deletions

View File

@@ -65,3 +65,8 @@ int __weak board_init(void)
{ {
return 0; return 0;
} }
int __weak board_early_init_f(void)
{
return 0;
}

View File

@@ -10,11 +10,6 @@
#include <asm/arch/rcar-mstp.h> #include <asm/arch/rcar-mstp.h>
#include <asm/arch/renesas.h> #include <asm/arch/renesas.h>
int board_early_init_f(void)
{
return 0;
}
#define HSUSB_MSTP704 BIT(4) /* HSUSB */ #define HSUSB_MSTP704 BIT(4) /* HSUSB */
/* HSUSB block registers */ /* HSUSB block registers */

View File

@@ -12,11 +12,6 @@
#include <asm/arch/renesas.h> #include <asm/arch/renesas.h>
#include <init.h> #include <init.h>
int board_early_init_f(void)
{
return 0;
}
#define HSUSB_MSTP704 BIT(4) /* HSUSB */ #define HSUSB_MSTP704 BIT(4) /* HSUSB */
/* HSUSB block registers */ /* HSUSB block registers */

View File

@@ -13,11 +13,6 @@
#define HSUSB_MSTP704 BIT(4) /* HSUSB */ #define HSUSB_MSTP704 BIT(4) /* HSUSB */
int board_early_init_f(void)
{
return 0;
}
/* HSUSB block registers */ /* HSUSB block registers */
#define HSUSB_REG_LPSTS 0xE6590102 #define HSUSB_REG_LPSTS 0xE6590102
#define HSUSB_REG_LPSTS_SUSPM_NORMAL BIT(14) #define HSUSB_REG_LPSTS_SUSPM_NORMAL BIT(14)