diff options
Diffstat (limited to 'include/configs/TQM5200.h')
| -rw-r--r-- | include/configs/TQM5200.h | 42 | 
1 files changed, 29 insertions, 13 deletions
| diff --git a/include/configs/TQM5200.h b/include/configs/TQM5200.h index b60e3cd53..5ad193948 100644 --- a/include/configs/TQM5200.h +++ b/include/configs/TQM5200.h @@ -83,7 +83,7 @@  #define CONFIG_PCI_IO_SIZE	0x01000000  #define CONFIG_NET_MULTI	1 -#define CONFIG_EEPRO100		1 +#define CONFIG_EEPRO100  #define CFG_RX_ETH_BUFFER	8  /* use 8 rx buffer on eepro100  */  #define CONFIG_NS8382X		1  #endif	/* CONFIG_STK52XX */ @@ -164,12 +164,14 @@  				CFG_CMD_ECHO	| \  				CFG_CMD_EEPROM	| \  				CFG_CMD_I2C	| \ +				CFG_CMD_JFFS2	| \  				CFG_CMD_MII	| \  				CFG_CMD_NFS	| \  				CFG_CMD_PING	| \  				CFG_CMD_POST_DIAG | \  				CFG_CMD_REGINFO | \ -				CFG_CMD_SNTP	) +				CFG_CMD_SNTP	| \ +				CFG_CMD_BSP)  /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */  #include <cmd_confdefs.h> @@ -206,21 +208,21 @@  	"rootpath=/opt/eldk/ppc_6xx\0"					\  	"ramargs=setenv bootargs root=/dev/ram rw\0"			\  	"nfsargs=setenv bootargs root=/dev/nfs rw "			\ -		"nfsroot=$(serverip):$(rootpath)\0"			\ -	"addip=setenv bootargs $(bootargs) "				\ -		"ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask)"	\ -		":$(hostname):$(netdev):off panic=1\0"			\ +		"nfsroot=${serverip}:${rootpath}\0"			\ +	"addip=setenv bootargs ${bootargs} "				\ +		"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}"	\ +		":${hostname}:${netdev}:off panic=1\0"			\  	"flash_self=run ramargs addip;"					\ -		"bootm $(kernel_addr) $(ramdisk_addr)\0"		\ +		"bootm ${kernel_addr} ${ramdisk_addr}\0"		\  	"flash_nfs=run nfsargs addip;"					\ -		"bootm $(kernel_addr)\0"				\ -	"net_nfs=tftp 200000 $(bootfile);run nfsargs addip;bootm\0"	\ +		"bootm ${kernel_addr}\0"				\ +	"net_nfs=tftp 200000 ${bootfile};run nfsargs addip;bootm\0"	\  	"bootfile=/tftpboot/tqm5200/uImage\0"				\ -	"load=tftp 200000 $(u-boot)\0"					\ +	"load=tftp 200000 ${u-boot}\0"					\  	"u-boot=/tftpboot/tqm5200/u-boot.bin"	CONFIG_U_BOOT_SUFFIX	\  	"update=protect off FC000000 FC05FFFF;"				\  		"erase FC000000 FC05FFFF;"				\ -		"cp.b 200000 FC000000 $(filesize);"			\ +		"cp.b 200000 FC000000 ${filesize};"			\  		"protect on FC000000 FC05FFFF\0"			\  	"" @@ -321,6 +323,15 @@  #define CFG_FLASH_ERASE_TOUT	240000	/* Flash Erase Timeout (in ms)	*/  #define CFG_FLASH_WRITE_TOUT	500	/* Flash Write Timeout (in ms)	*/ +/* Dynamic MTD partition support */ +#define CONFIG_JFFS2_CMDLINE +#define MTDIDS_DEFAULT		"nor0=TQM5200-0" +#define MTDPARTS_DEFAULT	"mtdparts=TQM5200-0:640k(firmware),"	\ +						"1408k(kernel),"	\ +						"2m(initrd),"		\ +						"4m(small-fs),"		\ +						"16m(big-fs),"		\ +						"8m(misc)"  /*   * Environment settings @@ -358,7 +369,7 @@  #endif  #define CFG_MONITOR_LEN		(384 << 10)	/* Reserve 384 kB for Monitor	*/ -#define CFG_MALLOC_LEN		(128 << 10)	/* Reserve 128 kB for malloc()	*/ +#define CFG_MALLOC_LEN		(256 << 10)	/* Reserve 256 kB for malloc()	*/  #define CFG_BOOTMAPSZ		(8 << 20)	/* Initial Memory map for Linux */  /* @@ -416,7 +427,12 @@  /*   * RTC configuration   */ -#define CONFIG_RTC_MPC5200	1	/* use internal MPC5200 RTC */ +#if defined (CONFIG_STK52XX) && !defined (CONFIG_STK52XX_REV100) +# define CONFIG_RTC_M41T11 1 +# define CFG_I2C_RTC_ADDR 0x68 +#else +# define CONFIG_RTC_MPC5200	1	/* use internal MPC5200 RTC */ +#endif  /*   * Miscellaneous configurable options |