versal2: Fix .*get_bootmode function name
authorMichal Simek <michal.simek@amd.com>
Tue, 18 Feb 2025 12:40:48 +0000 (13:40 +0100)
committerMichal Simek <michal.simek@amd.com>
Wed, 16 Apr 2025 11:42:06 +0000 (13:42 +0200)
Function was c&p from Versal NET and should use soc specific name instead.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/bd8cb2f9783bda47663927f78bf0bf908393334b.1739882445.git.michal.simek@amd.com
board/amd/versal2/board.c

index 5651d51..d3e6547 100644 (file)
@@ -149,7 +149,7 @@ int board_early_init_r(void)
        return 0;
 }
 
-static u8 versal_net_get_bootmode(void)
+static u8 versal2_get_bootmode(void)
 {
        u8 bootmode;
        u32 reg = 0;
@@ -175,7 +175,7 @@ static int boot_targets_setup(void)
        char *new_targets;
        char *env_targets;
 
-       bootmode = versal_net_get_bootmode();
+       bootmode = versal2_get_bootmode();
 
        puts("Bootmode: ");
        switch (bootmode) {