MPC8641HPCN: Report board id, board version and fpga version.
authorKumar Gala <galak@kernel.crashing.org>
Thu, 19 Jun 2008 06:45:27 +0000 (01:45 -0500)
committerJon Loeliger <jdl@freescale.com>
Thu, 19 Jun 2008 13:32:13 +0000 (08:32 -0500)
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/freescale/mpc8641hpcn/mpc8641hpcn.c

index cf540fc6518df7324fba3273e866d231806f1b99..b30c6b1e9205ed2ea562354058830d34b49f7be3 100644 (file)
@@ -47,8 +47,10 @@ int board_early_init_f(void)
 
 int checkboard(void)
 {
-       puts("Board: MPC8641HPCN\n");
-
+       printf ("Board: MPC8641HPCN, System ID: 0x%02lx, "
+               "System Version: 0x%02lx, FPGA Version: 0x%02lx\n",
+               in8(PIXIS_BASE + PIXIS_ID), in8(PIXIS_BASE + PIXIS_VER),
+               in8(PIXIS_BASE + PIXIS_PVER));
        return 0;
 }