]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: turris_omnia: Use show_board_info()
authorMarek Behún <marek.behun@nic.cz>
Sat, 9 Oct 2021 17:33:44 +0000 (19:33 +0200)
committerStefan Roese <sr@denx.de>
Thu, 21 Oct 2021 05:39:05 +0000 (07:39 +0200)
We are printing board information in checkboard() function, which is
called from the default weak implementation of show_board_info().

Rename checkboard() to show_board_info(). This throws away the weak
implementation of show_board_info().

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
board/CZ.NIC/turris_omnia/turris_omnia.c

index 7a86111890e7cafe48239cd087bc5209e1b2845b..39051a803a2cd978f9c92fec264bf38ba6a57679 100644 (file)
@@ -468,7 +468,7 @@ static struct udevice *get_atsha204a_dev(void)
        return dev;
 }
 
-int checkboard(void)
+int show_board_info(void)
 {
        u32 version_num, serial_num;
        int err = 1;
@@ -496,7 +496,7 @@ int checkboard(void)
        }
 
 out:
-       printf("Turris Omnia:\n");
+       printf("Model: Turris Omnia\n");
        printf("  RAM size: %i MiB\n", omnia_get_ram_size_gb() * 1024);
        if (err)
                printf("  Serial Number: unknown\n");