summaryrefslogtreecommitdiffstats
path: root/board/mpl/common/common_util.c
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2010-10-05 23:48:47 -0500
committerWolfgang Denk <wd@denx.de>2010-10-06 22:25:38 +0200
commita7d54346e025d91bb4413c61b5f5ec13ae2a6bfc (patch)
tree934c8c403dfb7c06aca27977d7c00a6837358e45 /board/mpl/common/common_util.c
parenta2f69d35f977179a0c98812c47718cee5b36fc11 (diff)
downloadblackbird-obmc-uboot-a7d54346e025d91bb4413c61b5f5ec13ae2a6bfc.tar.gz
blackbird-obmc-uboot-a7d54346e025d91bb4413c61b5f5ec13ae2a6bfc.zip
board/mpl: Remove mpl-specific memory test command
The mpl-specfic memory test is only documented for one board, doesn't compile cleanly, uses improper coding style, and overlaps functionality with U-Boot's common 'mtest' command, so lets get rid of it. Signed-off-by: Peter Tyser <ptyser@xes-inc.com> CC: d.peter@mpl.ch CC: d.mueller@elsoft.ch CC: wd@denx.de
Diffstat (limited to 'board/mpl/common/common_util.c')
-rw-r--r--board/mpl/common/common_util.c30
1 files changed, 3 insertions, 27 deletions
diff --git a/board/mpl/common/common_util.c b/board/mpl/common/common_util.c
index 624c7088ac..d3300ed681 100644
--- a/board/mpl/common/common_util.c
+++ b/board/mpl/common/common_util.c
@@ -430,12 +430,12 @@ void check_env(void)
int do_mplcommon(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
- ulong size,src,ld_addr;
+ ulong ld_addr;
int result;
#if !defined(CONFIG_PATI)
+ ulong size = IMAGE_SIZE;
+ ulong src = MULTI_PURPOSE_SOCKET_ADDR;
backup_t back;
- src = MULTI_PURPOSE_SOCKET_ADDR;
- size = IMAGE_SIZE;
#endif
if (strcmp(argv[1], "flash") == 0)
@@ -480,30 +480,6 @@ int do_mplcommon(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
}
#endif /* #if !defined(CONFIG_PATI) */
}
- if (strcmp(argv[1], "mem") == 0)
- {
- result=0;
- if(argc==3)
- {
- result = (int)simple_strtol(argv[2], NULL, 16);
- }
- src=(unsigned long)&result;
- src-=CONFIG_SYS_MEMTEST_START;
- src-=(100*1024); /* - 100k */
- src&=0xfff00000;
- size=0;
- do {
- size++;
- printf("\n\nPass %ld\n",size);
- mem_test(CONFIG_SYS_MEMTEST_START,src,1);
- if(ctrlc())
- break;
- if(result>0)
- result--;
-
- }while(result);
- return 0;
- }
#if !defined(CONFIG_PATI)
if (strcmp(argv[1], "clearenvvalues") == 0)
{
OpenPOWER on IntegriCloud