diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2005-10-13 01:49:09 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2005-10-13 01:49:09 +0200 |
commit | 070610c529d8fc4c4339b8422054b1f82abae7f0 (patch) | |
tree | f9a15714cd3581e57518822ad56d2914af5d38fb | |
parent | f57f70aab9d5ed7964f2f791829a2d780b788a7e (diff) | |
download | u-boot-midas-070610c529d8fc4c4339b8422054b1f82abae7f0.tar.gz u-boot-midas-070610c529d8fc4c4339b8422054b1f82abae7f0.tar.bz2 u-boot-midas-070610c529d8fc4c4339b8422054b1f82abae7f0.zip |
Add support for OF flat tree for the STXtc board.
Patch by Pantelis Antoniou, 04 Sep 2005
-rw-r--r-- | CHANGELOG | 3 | ||||
-rw-r--r-- | board/stxxtc/Makefile | 11 | ||||
-rw-r--r-- | include/configs/stxxtc.h | 20 |
3 files changed, 21 insertions, 13 deletions
@@ -2,6 +2,9 @@ Changes for U-Boot 1.1.4: ====================================================================== +* Add support for OF flat tree for the STXtc board. + Patch by Pantelis Antoniou, 04 Sep 2005 + * Support passing of OF flat trees to the kernel. Patch by Pantelis Antoniou, 04 Sep 2005 diff --git a/board/stxxtc/Makefile b/board/stxxtc/Makefile index 8c529a0611..759edc1b79 100644 --- a/board/stxxtc/Makefile +++ b/board/stxxtc/Makefile @@ -25,11 +25,19 @@ include $(TOPDIR)/config.mk LIB = lib$(BOARD).a -OBJS = $(BOARD).o +OBJS = $(BOARD).o oftree.o $(LIB): .depend $(OBJS) $(AR) crv $@ $(OBJS) +%.dtb: %.dts + dtc -f -V 0x10 -I dts -O dtb $< >$@ + +%.c: %.dtb + xxd -i $< \ + | sed -e "s/^unsigned char/const unsigned char/g" \ + | sed -e "s/^unsigned int/const unsigned int/g" > $@ + ######################################################################### .depend: Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c) @@ -38,3 +46,4 @@ $(LIB): .depend $(OBJS) sinclude .depend ######################################################################### + diff --git a/include/configs/stxxtc.h b/include/configs/stxxtc.h index f6e6a609cf..3ffe6b2e05 100644 --- a/include/configs/stxxtc.h +++ b/include/configs/stxxtc.h @@ -574,19 +574,15 @@ typedef unsigned int led_id_t; #define CONFIG_CRC32_VERIFY 1 #define CONFIG_HUSH_OLD_PARSER_COMPATIBLE 1 -/* Note: change below for your network setting!!! - * This was done just to facilitate manufacturing test and configuration. - */ -#define CONFIG_ETHADDR 00:e0:0c:07:9b:8a +/*****************************************************************************/ + +/* pass open firmware flat tree */ +#define CONFIG_OF_FLAT_TREE 1 -#define CONFIG_SERVERIP 192.168.08.1 -#define CONFIG_IPADDR 192.168.08.85 -#define CONFIG_GATEWAYIP 192.168.08.1 -#define CONFIG_NETMASK 255.255.255.0 -#define CONFIG_HOSTNAME stx_xtc -#define CONFIG_ROOTPATH /xtcroot -#define CONFIG_BOOTFILE uImage -#define CONFIG_LOADADDR 0x1000000 +/* maximum size of the flat tree (8K) */ +#define OF_FLAT_TREE_MAX_SIZE 8192 +#define OF_CPU "PowerPC,MPC870@0" +#define OF_TBCLK (MPC8XX_HZ / 16) #endif /* __CONFIG_H */ |