]> git.sur5r.net Git - u-boot/commitdiff
cmd_bdinfo: display the address map size (32-bit vs. 36-bit)
authorTimur Tabi <timur@freescale.com>
Thu, 15 Mar 2012 11:42:26 +0000 (11:42 +0000)
committerAndy Fleming <afleming@freescale.com>
Wed, 25 Apr 2012 04:58:34 +0000 (23:58 -0500)
Some Freescale SOCs support 32-bit and 36-bit physical addressing, and
U-Boot must be built to enable one or the other.  Add this information
to the bdinfo command.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
common/cmd_bdinfo.c

index 5359a47859b98fb431e3d99a9a3c36a6f10ff404..3ab285bc73b20e4bf39094a9151fee1d8796ab4b 100644 (file)
@@ -119,6 +119,14 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
        print_mhz("pevfreq",            bd->bi_pevfreq);
 #endif
 
+#ifdef CONFIG_ENABLE_36BIT_PHYS
+#ifdef CONFIG_PHYS_64BIT
+       puts("addressing  = 36-bit\n");
+#else
+       puts("addressing  = 32-bit\n");
+#endif
+#endif
+
        print_eth(0);
 #if defined(CONFIG_HAS_ETH1)
        print_eth(1);