]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
* Fix mdelay() on TRAB - this was still the debugging version with
authorwdenk <wdenk>
Sun, 3 Nov 2002 18:03:52 +0000 (18:03 +0000)
committerwdenk <wdenk>
Sun, 3 Nov 2002 18:03:52 +0000 (18:03 +0000)
  seconds instead of ms.

* Patch by Robert Schwebel, 1 Nov 2002:
  XScale related cleanup (affects all ARM boards)

* Cleanup of names, warnings and README.

17 files changed:
common/cmd_autoscript.c
cpu/xscale/start.S
drivers/smc91111.c
include/configs/cradle.h
include/configs/csb226.h
include/configs/dnp1110.h
include/configs/ep7312.h
include/configs/impa7.h
include/configs/lart.h
include/configs/lubbock.h
include/configs/shannon.h
include/configs/smdk2400.h
include/configs/smdk2410.h
include/configs/trab.h
include/version.h
lib_arm/armlinux.c
lib_arm/board.c

index 49bd463f699b4574a0c69f9e86a255a9384d8555..7e706c93a73abee77679145ebfff6a87b63b4411 100644 (file)
@@ -106,7 +106,7 @@ autoscript (ulong addr)
                return 1;
        }
 
-       debug ("** Script length: %d\n", len);
+       debug ("** Script length: %ld\n", len);
 
        if ((cmd = malloc (len + 1)) == NULL) {
                return 1;
index f1049a8f5b72bf9f953212f061b90e8f45a987c4..6cc7c43dbd01543b8b9cebbe3cecaffa004e43aa 100644 (file)
@@ -96,7 +96,7 @@ _armboot_real_end:
  */
 .globl _uboot_reloc
 _uboot_reloc:
-       .word CFG_DRAM_BASE + CFG_DRAM_SIZE - CFG_MONITOR_LEN
+       .word TEXT_BASE
 
 #ifdef CONFIG_USE_IRQ
 /* IRQ stack memory (calculated at run-time) */
@@ -130,7 +130,6 @@ relocate:                           /* relocate U-Boot to RAM          */
        ldr     r2, _armboot_start
        ldr     r3, _armboot_end
        sub     r2, r3, r2              /* r2 <- size of armboot */
-/*     ldr     r1, _uboot_reloc        / * r1 <- destination address        */
        ldr     r1, _TEXT_BASE
        add     r2, r0, r2              /* r2 <- source end address */
 
@@ -176,7 +175,7 @@ cpuspeed:   .word   CFG_CPUSPEED
 
        /* RS: ???                                                          */
        .macro CPWAIT
-    mrc  p15,0,r0,c2,c0,0
+       mrc  p15,0,r0,c2,c0,0
        mov  r0,r0
        sub  pc,pc,#4
        .endm
@@ -207,23 +206,23 @@ cpu_init_crit:
 
        ldr     r0, =0x2001             /* enable access to all coproc.     */
        mcr     p15, 0, r0, c15, c1, 0
-    CPWAIT
+       CPWAIT
 
        mcr     p15, 0, r0, c7, c10, 4  /* drain the write & fill buffers   */
-    CPWAIT
+       CPWAIT
 
        mcr     p15, 0, r0, c7, c7, 0   /* flush Icache, Dcache and BTB     */
-    CPWAIT
+       CPWAIT
 
        mcr     p15, 0, r0, c8, c7, 0   /* flush instuction and data TLBs   */
-    CPWAIT
+       CPWAIT
 
        /* Enable the Icache                                                */
 /*
        mrc     p15, 0, r0, c1, c0, 0
        orr     r0, r0, #0x1800
        mcr     p15, 0, r0, c1, c0, 0
-    CPWAIT
+       CPWAIT
 */
        mov     pc, lr
 
index 62d213339ef4f4f4d84f152bb9466fde8b528f9a..6244b4eb2e03ad550087c1cfc0f0eb58d303c722 100644 (file)
@@ -771,7 +771,7 @@ static int smc_rcv()
                if (packet_length & 3) {
                        int i;
 
-                       byte *tail = NetRxPackets[0] + (packet_length & ~3);
+                       byte *tail = (byte *)(NetRxPackets[0] + (packet_length & ~3));
                        dword leftover = SMC_inl(SMC91111_DATA_REG);
                        for (i=0; i<(packet_length & 3); i++)
                                *tail++ = (byte) (leftover >> (8*i)) & 0xff;
index f87f171866ef37e026e85e7ee253a7822af4af42..5a215e495f0113a7954de469c0e9e1cb0d8af1d9 100644 (file)
@@ -46,7 +46,7 @@
 /*
  * Size of malloc() pool
  */
-#define CONFIG_MALLOC_SIZE      (CFG_ENV_SIZE + 128*1024)
+#define CFG_MALLOC_LEN         (CFG_ENV_SIZE + 128*1024)
 
 /*
  * Hardware drivers
index 13cf60f1673c39e03b1d1a39af9e1fb9abaed07c..d38e9db18398fa9fc93f38fbf740145dbc31e699 100644 (file)
@@ -31,6 +31,8 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#define DEBUG 1
+
 /*
  * If we are developing, we might want to start U-Boot from ram
  * so we MUST NOT initialize critical regs like mem-timing ...
 /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
 #include <cmd_confdefs.h>
 
-#define CONFIG_BOOTDELAY       10
-#define CONFIG_BOOTARGS                "root=ramfs devfs=mount console=ttySA0,115200"
+#define CONFIG_BOOTDELAY       3
+#define CONFIG_BOOTARGS                "root=/dev/nfs ip=bootp console=ttyS0,19200"
 #define CONFIG_ETHADDR         FF:FF:FF:FF:FF:FF
 #define CONFIG_NETMASK         255.255.255.0
 #define CONFIG_IPADDR          192.168.1.56
 #define CONFIG_SERVERIP                192.168.1.2
-#define CONFIG_BOOTCOMMAND     ""
+#define CONFIG_BOOTCOMMAND     "bootm 0x40000"
 
 #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
 #define CONFIG_KGDB_BAUDRATE   115200          /* speed to run kgdb serial port */
@@ -90,8 +92,8 @@
 #define CFG_MALLOC_LEN         (CFG_ENV_SIZE + 128*1024)
 
 #define CFG_LONGHELP                           /* undef to save memory         */
-#define CFG_PROMPT             "=> "           /* Monitor Command Prompt       */
-#define CFG_CBSIZE             256             /* Console I/O Buffer Size      */
+#define CFG_PROMPT             "uboot> "       /* Monitor Command Prompt       */
+#define CFG_CBSIZE             128             /* Console I/O Buffer Size      */
 #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
 #define CFG_MAXARGS            16              /* max number of command args   */
 #define CFG_BARGSIZE           CFG_CBSIZE      /* Boot Argument Buffer Size    */
 #define CFG_MSC2_VAL        0x00000000
 #define CFG_MDCNFG_VAL      0x09a909a9
 #define CFG_MDREFR_VAL      0x03ca0030
-/* #define CFG_MDREFR_VAL_100  ??? */
 #define CFG_MDMRS_VAL       0x00220022
 
 /*
index 673e76709815044b263b05871224b5292d842956..5a7642b0c66a456ba0efbac477c98d9058eb971c 100644 (file)
@@ -46,7 +46,7 @@
 /*
  * Size of malloc() pool
  */
-#define CONFIG_MALLOC_SIZE     (CFG_ENV_SIZE + 128*1024)
+#define CFG_MALLOC_LEN         (CFG_ENV_SIZE + 128*1024)
 
 /*
  * Hardware drivers
index 6b30ce12646aae130737aa3a94ee77a3f7c6b013..9a4c7e6ac41ffbab168915775c7cc9dbbe6dffa6 100644 (file)
@@ -47,7 +47,7 @@
 /*
  * Size of malloc() pool
  */
-#define CONFIG_MALLOC_SIZE     (CFG_ENV_SIZE + 128*1024)
+#define CFG_MALLOC_LEN         (CFG_ENV_SIZE + 128*1024)
 
 /*
  * Hardware drivers
index 99e0a4bd25f5629d578a144f8f697e419995adeb..fb35bd4e7cad9117568fc7b9206c0d9fb55cfdf2 100644 (file)
@@ -47,7 +47,7 @@
 /*
  * Size of malloc() pool
  */
-#define CONFIG_MALLOC_SIZE     (CFG_ENV_SIZE + 128*1024)
+#define CFG_MALLOC_LEN         (CFG_ENV_SIZE + 128*1024)
 
 /*
  * Hardware drivers
index aa2dfa048c7970e210e8bafc1177b0f7e73022c4..32153fc5216449130c87b9c44769eacbae170950 100644 (file)
@@ -45,7 +45,7 @@
 /*
  * Size of malloc() pool
  */
-#define CONFIG_MALLOC_SIZE     (CFG_ENV_SIZE + 128*1024)
+#define CFG_MALLOC_LEN         (CFG_ENV_SIZE + 128*1024)
 
 /*
  * Hardware drivers
index eb5ed2f35ae8fed7d843017c0f58a0820df719a0..187c33f294eb7310576c29a68f6f880491bb2227 100644 (file)
@@ -48,7 +48,7 @@
 /*
  * Size of malloc() pool
  */
-#define CONFIG_MALLOC_SIZE      (CFG_ENV_SIZE + 128*1024)
+#define CFG_MALLOC_LEN      (CFG_ENV_SIZE + 128*1024)
 
 /*
  * Hardware drivers
index c2817071d171feb9ceba3a7e14f1cd260b2edddf..53cc8cf9be0282d73bccb79132c3750df17ba3ca 100644 (file)
@@ -51,7 +51,7 @@
 /*
  * Size of malloc() pool
  */
-#define CONFIG_MALLOC_SIZE     (CFG_ENV_SIZE + 128*1024)
+#define CFG_MALLOC_LEN         (CFG_ENV_SIZE + 128*1024)
 
 /*
  * Hardware drivers
index 0cd6e7faca0d75277c7a6257bc1b9d6ead7b9ee3..543dfb071972c0eadfd7c880a26dba078973e07e 100644 (file)
@@ -54,7 +54,7 @@
 /*
  * Size of malloc() pool
  */
-#define CONFIG_MALLOC_SIZE     (CFG_ENV_SIZE + 128*1024)
+#define CFG_MALLOC_LEN         (CFG_ENV_SIZE + 128*1024)
 
 /*
  * Hardware drivers
index 8cebbec1f5392d692c3c1dca10d79c142a2abad6..766b8feece0eee33e6a128f7fc886b87aa825a11 100644 (file)
@@ -53,7 +53,7 @@
 /*
  * Size of malloc() pool
  */
-#define CONFIG_MALLOC_SIZE     (CFG_ENV_SIZE + 128*1024)
+#define CFG_MALLOC_LEN         (CFG_ENV_SIZE + 128*1024)
 
 /*
  * Hardware drivers
index 709676700f9730f26a35ab5c6885b2a066ca1ed2..4472087e10a5e8f7c99d1e34cc59070e8fc909c2 100644 (file)
@@ -53,7 +53,7 @@
 /*
  * Size of malloc() pool
  */
-#define CONFIG_MALLOC_SIZE     (CFG_ENV_SIZE + 128*1024)
+#define CFG_MALLOC_LEN         (CFG_ENV_SIZE + 128*1024)
 
 /*
  * Hardware drivers
index e17f651ba5600bf0f2ab03075a347eab6c788637..e10c62fcadca3fc1adad85221406d6b2b79568d5 100644 (file)
@@ -24,6 +24,6 @@
 #ifndef        __VERSION_H__
 #define        __VERSION_H__
 
-#define        U_BOOT_VERSION  "U-Boot 0.1.0"
+#define        U_BOOT_VERSION  "U-Boot 0.1.1"
 
 #endif /* __VERSION_H__ */
index e5b8faa81d357c1259c76bf7a48a69a4970d5634..33f86e9ffe9eba6754124f00c73dfa0921b1e28a 100644 (file)
     defined (CONFIG_INITRD_TAG) || \
     defined (CONFIG_VFD)
 static void setup_start_tag(bd_t *bd);
+# ifdef CONFIG_SETUP_MEMORY_TAGS
 static void setup_memory_tags(bd_t *bd);
+# endif
 static void setup_commandline_tag(bd_t *bd, char *commandline);
 #if 0
 static void setup_ramdisk_tag(bd_t *bd);
 #endif
+# ifdef CONFIG_INITRD_TAG
 static void setup_initrd_tag(bd_t *bd, ulong initrd_start, ulong initrd_end);
+# endif
 static void setup_end_tag(bd_t *bd);
-#if defined (CONFIG_VFD)
+# if defined (CONFIG_VFD)
 static void setup_videolfb_tag(gd_t *gd);
-#endif
+# endif
 
 
 static struct tag *params;
@@ -220,6 +224,7 @@ static void setup_start_tag(bd_t *bd)
 }
 
 
+#ifdef CONFIG_SETUP_MEMORY_TAGS
 static void setup_memory_tags(bd_t *bd)
 {
     int i;
@@ -234,6 +239,7 @@ static void setup_memory_tags(bd_t *bd)
        params = tag_next(params);
     }
 }
+#endif /* CONFIG_SETUP_MEMORY_TAGS */
 
 
 static void setup_commandline_tag(bd_t *bd, char *commandline)
@@ -262,6 +268,8 @@ static void setup_commandline_tag(bd_t *bd, char *commandline)
 #ifndef ATAG_INITRD2
 #define ATAG_INITRD2    0x54420005
 #endif
+
+#ifdef CONFIG_INITRD_TAG
 static void setup_initrd_tag(bd_t *bd, ulong initrd_start, ulong initrd_end)
 {
     /* an ATAG_INITRD node tells the kernel where the compressed
@@ -275,6 +283,7 @@ static void setup_initrd_tag(bd_t *bd, ulong initrd_start, ulong initrd_end)
 
     params = tag_next(params);
 }
+#endif /* CONFIG_INITRD_TAG */
 
 
 #if 0
index e58529f595c6ef69845234d65afc56bd0808a180..47dc53ce1b254d461065226b04f9272232735fca 100644 (file)
@@ -49,7 +49,7 @@ static ulong mem_malloc_brk = 0;
 static void mem_malloc_init (ulong dest_addr)
 {
        mem_malloc_start = dest_addr;
-       mem_malloc_end = dest_addr + CONFIG_MALLOC_SIZE;
+       mem_malloc_end = dest_addr + CFG_MALLOC_LEN;
        mem_malloc_brk = mem_malloc_start;
 
        memset ((void *) mem_malloc_start, 0,
@@ -169,7 +169,7 @@ init_fnc_t *init_sequence[] = {
        env_init,               /* initialize environment */
        init_baudrate,          /* initialze baudrate settings */
        serial_init,            /* serial communications setup */
-       display_banner,
+       display_banner,         /* say that we are here */
        dram_init,              /* configure available RAM banks */
        display_dram_config,