summaryrefslogtreecommitdiff
path: root/board/esd/cpci750/cpci750.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-01-31 16:38:04 +0100
committerStefan Roese <sr@denx.de>2007-01-31 16:38:04 +0100
commitd5ea287b02a6945c3977410e364a879dd1a555c8 (patch)
treee764bf1936906e4e96a00c0534ea72a6881a897c /board/esd/cpci750/cpci750.c
parent8b7d1f0ab7d7c4fe3160bbf74a7e9690d9f3a3ab (diff)
downloadu-boot-imx-d5ea287b02a6945c3977410e364a879dd1a555c8.zip
u-boot-imx-d5ea287b02a6945c3977410e364a879dd1a555c8.tar.gz
u-boot-imx-d5ea287b02a6945c3977410e364a879dd1a555c8.tar.bz2
[PATCH] Update esd cpci5200 files
Signed-off-by: Reinhard Arlt <reinhard.arlt@esd-electronics.com>
Diffstat (limited to 'board/esd/cpci750/cpci750.c')
-rw-r--r--board/esd/cpci750/cpci750.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/board/esd/cpci750/cpci750.c b/board/esd/cpci750/cpci750.c
index dbed597..36bb7ce 100644
--- a/board/esd/cpci750/cpci750.c
+++ b/board/esd/cpci750/cpci750.c
@@ -29,6 +29,7 @@
*/
#include <common.h>
+#include <command.h>
#include <74xx_7xx.h>
#include "../../Marvell/include/memory.h"
#include "../../Marvell/include/pci.h"
@@ -899,3 +900,24 @@ void board_prebootm_init ()
flush_data_cache ();
dcache_disable ();
}
+
+
+int do_show_cfg(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
+{
+ unsigned int reset_sample_low;
+ unsigned int reset_sample_high;
+
+ GT_REG_READ(0x3c4, &reset_sample_low);
+ GT_REG_READ(0x3d4, &reset_sample_high);
+ printf("Reset configuration 0x%08x 0x%08x\n", reset_sample_low, reset_sample_high);
+
+ return(0);
+}
+
+
+U_BOOT_CMD(
+ show_cfg, 1, 1, do_show_cfg,
+ "show_cfg- Show Marvell strapping register\n",
+ "Show Marvell strapping register (ResetSampleLow ResetSampleHigh)\n"
+ );
+