#
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/)
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
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
}
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 );
#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) */
#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
*/
#include <ppcboot.h>
#include "mpc8xx.h"
-#include "tqm8xx.h"
/* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */
-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