]> www.infradead.org Git - users/rw/ppcboot.git/commitdiff
Cleanup. Removed dead code.
authorwdenk <wdenk>
Wed, 9 Aug 2000 20:33:09 +0000 (20:33 +0000)
committerwdenk <wdenk>
Wed, 9 Aug 2000 20:33:09 +0000 (20:33 +0000)
Added SST39xFx00A flash chip definitions.
Added ETX_094 configuration.

Makefile
common/Makefile
common/cmd_boot.c
common/environment.S
config.mk
include/flash.h
include/ppcboot.h
tqm8xx/tqm8xx.c

index cd9b438fb009aacd81927b17cc204df7c252dff3..49ef502e07220468412732b742f2e18ec8b60190 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,8 +22,9 @@
 #
 
 ARCH   := ppc
-CPU    := mpc8xx
-BOARD  := tqm8xx
+CPU    := $(shell perl -e '$$_="cpu";printf"%s\n",(-l $$_)?readlink:$$_;')
+BOARD  := $(shell perl -e '$$_="board";printf"%s\n",(-l $$_)?readlink:$$_;')
+
 
 HOSTARCH := $(shell uname -m | \
        sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)
@@ -80,6 +81,12 @@ TQM860L_config       :
        ln -s mpc8xx cpu
        cd include ; ln -s config_$(@:_config=).h config.h
 
+ETX094_config  :
+       rm -f board cpu include/config.h
+       ln -s etx094 board
+       ln -s mpc8xx cpu
+       cd include ; ln -s config_$(@:_config=).h config.h
+
 FADS_config:
        rm -f board cpu include/config.h
        ln -s FADS board
@@ -91,7 +98,7 @@ FADS_config:
 clean:
        @for dir in $(SUBDIRS); do $(MAKE) -C $$dir clean; done
 
-clobber distclean: clean
+clobber distclean:
        @for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir distclean; done
        rm -f $(OBJS) *.bak
        rm -f ppcboot ppcboot.bin ppcboot.elf ppcboot.srec ppcboot.map
index 6d953f6fd79ce66ac49e429d99706cd366d10667..60587c40e9db6dfe795f1a4942ef35a7c652519b 100644 (file)
@@ -34,8 +34,10 @@ OBJS = $(AOBJS) $(COBJS)
 
 CPPFLAGS += -I..
 
-$(LIB):        $(OBJS)
-       $(AR) crv $@ $(OBJS)
+all:   $(LIB) $(AOBJS)
+
+$(LIB):        $(COBJS)
+       $(AR) crv $@ $(COBJS)
 
 clean:
        rm -f $(OBJS)
index da09465a4f80bdd86f807ef044f9214d9d9cde85..80c56259b185e681a91e6cbbaca9cdd8db059083 100644 (file)
@@ -56,7 +56,7 @@ void do_bdinfo (cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
        }
        printf ("\n  IP addr     =");
        for (i=0; i<4; ++i) {
-               printf ("%c%d", i ? '.' : ' ', (ip >> 24) & 0xFF);
+               printf ("%c%ld", i ? '.' : ' ', (ip >> 24) & 0xFF);
                ip <<= 8;
        }
        printf ("\n  baudrate    = %6ld bps\n", bd->bi_baudrate   );
index 3db1276b2f286d980596db1656a2a3074cf3a960..fa2f7d352a1728a4938c82e8cd740404de80891f 100644 (file)
@@ -5,6 +5,7 @@
 
        .text
        .p2align CFG_FLASH_ENV_ALIGN
+
        .globl  environment
 environment:
        .ascii  "bootargs="
index 357405adbe92c0da7c2710b78b828052731094b8..cd7732b1519a2bfbe7b1ba96804c02e766291697 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -28,6 +28,7 @@ CONFIG_SHELL  := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
                    else echo sh; fi ; fi)
 
 CDK_DIR                = /LinuxPPC/CDK
+#CDK_DIR               = /opt/hardhat/devkit/ppc/8xx/
 CDKHEADERS     = -I$(CDK_DIR)/include \
                  -I$(CDK_DIR)/lib/gcc-lib/powerpc-linux/2.95.2/include
 
index aa33aa695eb57d273744fad3b1060d075291c494..dda429f5027d4d0b9fe8d81b23b1c9007ad0eadf 100644 (file)
@@ -59,12 +59,13 @@ void        flash_erase      (flash_info_t *, int, int);
 
 #define AMD_MANUFACT   0x00010001      /* AMD     manuf. ID in D23..D16, D7..D0 */
 #define FUJ_MANUFACT   0x00040004      /* FUJITSU manuf. ID in D23..D16, D7..D0 */
+#define SST_MANUFACT   0x00BF00BF      /* SST     manuf. ID in D23..D16, D7..D0 */
 
-#define AMD_ID_LV400T  0x22B922B9      /* 29LV400T ID (4 M, top boot sector)   */
-#define AMD_ID_LV400B  0x22BA22BA      /* 29LV400B ID (4 M, bottom boot sect)  */
+#define AMD_ID_LV400T  0x22B922B9      /* 29LV400T ID ( 4 M, top boot sector)  */
+#define AMD_ID_LV400B  0x22BA22BA      /* 29LV400B ID ( 4 M, bottom boot sect) */
 
-#define AMD_ID_LV800T  0x22DA22DA      /* 29LV800T ID (8 M, top boot sector)   */
-#define AMD_ID_LV800B  0x225B225B      /* 29LV800B ID (8 M, bottom boot sect)  */
+#define AMD_ID_LV800T  0x22DA22DA      /* 29LV800T ID ( 8 M, top boot sector)  */
+#define AMD_ID_LV800B  0x225B225B      /* 29LV800B ID ( 8 M, bottom boot sect) */
 
 #define AMD_ID_LV160T  0x22C422C4      /* 29LV160T ID (16 M, top boot sector)  */
 #define AMD_ID_LV160B  0x22492249      /* 29LV160B ID (16 M, bottom boot sect) */
@@ -73,6 +74,10 @@ void flash_erase      (flash_info_t *, int, int);
 #define AMD_ID_LV320T  0xDEADBEEF      /* 29LV320T ID (32 M, top boot sector)  */
 #define AMD_ID_LV320B  0xDEADBEEF      /* 29LV320B ID (32 M, bottom boot sect) */
 
+#define SST_ID_xF200A  0x27892789      /* 39xF200A ID ( 2M = 128K x 16 )       */
+#define SST_ID_xF400A  0x27802780      /* 39xF400A ID ( 4M = 256K x 16 )       */
+#define SST_ID_xF800A  0x27812781      /* 39xF800A ID ( 8M = 512K x 16 )       */
+
 /*-----------------------------------------------------------------------
  * Internal FLASH identification codes
  */
index aee520e595466d029314691ce682ddc94c505ef9..11d6d8f5b9c37ccfd47d26b148840d2f3ed6c6e2 100644 (file)
@@ -108,7 +108,6 @@ int set_board_info(bd_t *, uint);
 int    checkboard    (void);
 int    checkflash    (void);
 int    checkdram     (void);
-int    testdram      (void);
 
 /* common/cmd_nvedit.c */
 char *getenv (uchar *);
index fc334e0209893414328f9561dabd16ce6877be40..aacd018b21c6119ef0343cda20e9985f0bd48730 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <ppcboot.h>
 #include "mpc8xx.h"
-#include "tqm8xx.h"
 
 /* ------------------------------------------------------------------------- */
 
@@ -278,16 +277,6 @@ long int initdram (int board_type)
 
 /* ------------------------------------------------------------------------- */
 
-int testdram (void)
-{
-    /* TODO: XXX XXX XXX */
-    printf ("test: 16 MB - ok\n");
-
-    return (0);
-}
-
-/* ------------------------------------------------------------------------- */
-
 /*
  * Check memory range for valid RAM. A simple memory test determines
  * the actually available RAM size between addresses `base' and