mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 06:31:28 +01:00
arm: imx8: don't duplicate build_info()
Move build_info() to common place. Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com> Cc: Peng Fan <peng.fan@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
64b5f46975
commit
d87b2486e6
@ -16,6 +16,7 @@ struct pass_over_info_t {
|
|||||||
u32 g_ap_mu;
|
u32 g_ap_mu;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void build_info(void);
|
||||||
enum boot_device get_boot_device(void);
|
enum boot_device get_boot_device(void);
|
||||||
int print_bootinfo(void);
|
int print_bootinfo(void);
|
||||||
int sc_pm_setup_uart(sc_rsrc_t uart_rsrc, sc_pm_clock_rate_t clk_rate);
|
int sc_pm_setup_uart(sc_rsrc_t uart_rsrc, sc_pm_clock_rate_t clk_rate);
|
||||||
|
|||||||
@ -24,3 +24,16 @@ int sc_pm_setup_uart(sc_rsrc_t uart_rsrc, sc_pm_clock_rate_t clk_rate)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void build_info(void)
|
||||||
|
{
|
||||||
|
u32 sc_build = 0, sc_commit = 0;
|
||||||
|
|
||||||
|
/* Get SCFW build and commit id */
|
||||||
|
sc_misc_build_info(-1, &sc_build, &sc_commit);
|
||||||
|
if (!sc_build) {
|
||||||
|
printf("SCFW does not support build info\n");
|
||||||
|
sc_commit = 0; /* Display 0 if build info not supported */
|
||||||
|
}
|
||||||
|
printf("Build: SCFW %x\n", sc_commit);
|
||||||
|
}
|
||||||
|
|||||||
@ -78,19 +78,6 @@ int board_phy_config(struct phy_device *phydev)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void build_info(void)
|
|
||||||
{
|
|
||||||
u32 sc_build = 0, sc_commit = 0;
|
|
||||||
|
|
||||||
/* Get SCFW build and commit id */
|
|
||||||
sc_misc_build_info(-1, &sc_build, &sc_commit);
|
|
||||||
if (!sc_build) {
|
|
||||||
printf("SCFW does not support build info\n");
|
|
||||||
sc_commit = 0; /* Display 0 when the build info is not supported*/
|
|
||||||
}
|
|
||||||
printf("Build: SCFW %x\n", sc_commit);
|
|
||||||
}
|
|
||||||
|
|
||||||
int checkboard(void)
|
int checkboard(void)
|
||||||
{
|
{
|
||||||
puts("Board: iMX8QM MEK\n");
|
puts("Board: iMX8QM MEK\n");
|
||||||
|
|||||||
@ -94,19 +94,6 @@ int board_phy_config(struct phy_device *phydev)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void build_info(void)
|
|
||||||
{
|
|
||||||
u32 sc_build = 0, sc_commit = 0;
|
|
||||||
|
|
||||||
/* Get SCFW build and commit id */
|
|
||||||
sc_misc_build_info(-1, &sc_build, &sc_commit);
|
|
||||||
if (!sc_build) {
|
|
||||||
printf("SCFW does not support build info\n");
|
|
||||||
sc_commit = 0; /* Display 0 when the build info is not supported */
|
|
||||||
}
|
|
||||||
printf("Build: SCFW %x\n", sc_commit);
|
|
||||||
}
|
|
||||||
|
|
||||||
int checkboard(void)
|
int checkboard(void)
|
||||||
{
|
{
|
||||||
puts("Board: iMX8QXP MEK\n");
|
puts("Board: iMX8QXP MEK\n");
|
||||||
|
|||||||
@ -71,19 +71,6 @@ int board_phy_config(struct phy_device *phydev)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void build_info(void)
|
|
||||||
{
|
|
||||||
u32 sc_build = 0, sc_commit = 0;
|
|
||||||
|
|
||||||
/* Get SCFW build and commit id */
|
|
||||||
sc_misc_build_info(-1, &sc_build, &sc_commit);
|
|
||||||
if (!sc_build) {
|
|
||||||
printf("SCFW does not support build info\n");
|
|
||||||
sc_commit = 0; /* Display 0 if build info not supported */
|
|
||||||
}
|
|
||||||
printf("Build: SCFW %x\n", sc_commit);
|
|
||||||
}
|
|
||||||
|
|
||||||
int checkboard(void)
|
int checkboard(void)
|
||||||
{
|
{
|
||||||
puts("Model: Toradex Apalis iMX8\n");
|
puts("Model: Toradex Apalis iMX8\n");
|
||||||
|
|||||||
@ -83,19 +83,6 @@ int board_phy_config(struct phy_device *phydev)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void build_info(void)
|
|
||||||
{
|
|
||||||
u32 sc_build = 0, sc_commit = 0;
|
|
||||||
|
|
||||||
/* Get SCFW build and commit id */
|
|
||||||
sc_misc_build_info(-1, &sc_build, &sc_commit);
|
|
||||||
if (!sc_build) {
|
|
||||||
printf("SCFW does not support build info\n");
|
|
||||||
sc_commit = 0; /* Display 0 if build info not supported */
|
|
||||||
}
|
|
||||||
printf("Build: SCFW %x\n", sc_commit);
|
|
||||||
}
|
|
||||||
|
|
||||||
int checkboard(void)
|
int checkboard(void)
|
||||||
{
|
{
|
||||||
puts("Model: Toradex Colibri iMX8X\n");
|
puts("Model: Toradex Colibri iMX8X\n");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user