arm: mvebu: turris_omnia: print board info as Turris Mox
authorMarek Behún <marek.behun@nic.cz>
Thu, 2 May 2019 14:53:34 +0000 (16:53 +0200)
committerStefan Roese <sr@denx.de>
Fri, 3 May 2019 06:14:39 +0000 (08:14 +0200)
Unify the way how Omnia and Mox print board information (RAM size and
serial number).

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

index 8571541b0af67e47c709319ab2031dc1395d133a..54efd2d4c95aa6dd8b3c7d512847461eba643bce 100644 (file)
@@ -426,11 +426,13 @@ int checkboard(void)
        }
 
 out:
+       printf("Turris Omnia:\n");
+       printf("  RAM size: %i MiB\n", omnia_get_ram_size_gb() * 1024);
        if (err)
-               printf("Board: Turris Omnia (ver N/A). SN: N/A\n");
+               printf("  Serial Number: unknown\n");
        else
-               printf("Board: Turris Omnia SNL %08X%08X\n",
-                      be32_to_cpu(version_num), be32_to_cpu(serial_num));
+               printf("  Serial Number: %08X%08X\n", be32_to_cpu(version_num),
+                      be32_to_cpu(serial_num));
 
        return 0;
 }