]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mpl: Remove memory test relocation fixups
authorPeter Tyser <ptyser@xes-inc.com>
Mon, 21 Sep 2009 16:20:33 +0000 (11:20 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 3 Oct 2009 08:17:56 +0000 (10:17 +0200)
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
board/mpl/common/memtst.c
board/mpl/mip405/mip405.c
board/mpl/pati/pati.c
board/mpl/vcma9/vcma9.c

index 1393ea15af6f18140820acc697d30800f0348d46..92c33bac1698e3b3946008f73879791738d3fcc9 100644 (file)
@@ -468,32 +468,6 @@ static RAM_MEMTEST_FUNC test_stage[TEST_STAGES] = {
         RAM_MemTest_CheckRandomPattern, NULL}
 };
 
-void mem_test_reloc(void)
-{
-       unsigned long addr;
-       int i;
-       for (i=0; i< TEST_STAGES; i++) {
-               addr = (ulong) (test_stage[i].test_write) + gd->reloc_off;
-               test_stage[i].test_write=
-                       (void (*) (unsigned long startaddr, unsigned long size,
-                                               unsigned long *pat))addr;
-               addr = (ulong) (test_stage[i].test_write_desc) + gd->reloc_off;
-               test_stage[i].test_write_desc=(char *)addr;
-               if(test_stage[i].test_check1) {
-                       addr = (ulong) (test_stage[i].test_check1) + gd->reloc_off;
-                       test_stage[i].test_check1=
-                               (void *(*) (int mode, unsigned long startaddr,
-                                unsigned long size, unsigned long *pat))addr;
-               }
-               if(test_stage[i].test_check2) {
-                       addr = (ulong) (test_stage[i].test_check2) + gd->reloc_off;
-                       test_stage[i].test_check2=
-                               (void *(*) (int mode, unsigned long startaddr,
-                                unsigned long size, unsigned long *pat))addr;
-               }
-       }
-}
-
 
 int mem_test (unsigned long start, unsigned long ramsize, int quiet)
 {
index ae8eade64ad5d6ff9317f687c5aa0f0638050a7e..495e9bd88a430f5f48c51156bfeb91f8c1c379d1 100644 (file)
@@ -717,7 +717,6 @@ int post_hotkeys_pressed(void)
 }
 #endif
 
-extern void mem_test_reloc(void);
 extern int mk_date (char *, struct rtc_time *);
 
 int last_stage_init (void)
@@ -725,7 +724,7 @@ int last_stage_init (void)
        unsigned long stop;
        struct rtc_time newtm;
        char *s;
-       mem_test_reloc();
+
        /* write correct LED configuration */
        if (miiphy_write("ppc_4xx_eth0", 0x1, 0x14, 0x2402) != 0) {
                printf ("Error writing to the PHY\n");
index 1b3b698ed90f776cbc44090c5079c04ae8aa5430..e12bc423f4ff150f0fe9ea5abc92fad7ca1c900c 100644 (file)
@@ -144,7 +144,6 @@ const sdram_t sdram_table[] = {
 
 
 extern int mem_test (unsigned long start, unsigned long ramsize, int quiet);
-extern void mem_test_reloc(void);
 
 /*
  * Get RAM size.
@@ -334,7 +333,6 @@ void user_led1(int led_on)
  ****************************************************************/
 int last_stage_init (void)
 {
-       mem_test_reloc();
        init_ios();
        return 0;
 }
index 3216d6347dcef378696837bc693c676197b8b5af..2b64f44879c3ec7d4fe1ce61f5819e3d33112f87 100644 (file)
@@ -312,11 +312,8 @@ int checkboard(void)
 }
 
 
-extern void mem_test_reloc(void);
-
 int last_stage_init(void)
 {
-       mem_test_reloc();
        checkboard();
        stdio_print_current_devices();
        check_env();