⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 db64360.h

📁 u-boot-1.1.6 源码包
💻 H
📖 第 1 页 / 共 2 页
字号:
/* * (C) Copyright 2001 * Josh Huber <huber@mclx.com>, Mission Critical Linux, Inc. * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA *//* * board/config.h - configuration options, board specific *//************************************************************************* * (c) 2002 Datentechnik AG - Project: Dino * * * $Id: DB64360.h,v 1.3 2003/04/26 04:58:13 brad Exp $ *  ************************************************************************//************************************************************************* * * History: * *	$Log: DB64360.h,v $ *	Revision 1.3  2003/04/26 04:58:13  brad *	Cosmetic changes and compiler warning cleanups * *	Revision 1.2  2003/04/23 15:48:15  ingo *	mem. map output added * *	Revision 1.1  2003/04/17 09:31:42  ias *	keymile changes 17_04_2003 * *	Revision 1.10  2003/03/06 12:25:04  ias *	750 FX CPU HID settings updated * *	Revision 1.9  2003/03/03 16:14:36  ias *	cleanup compiler warnings of printf fuctions * *	Revision 1.8  2003/03/03 15:11:44  ias *	Marvell MPSC-UART is working * *	Revision 1.7  2003/02/26 12:15:45  ssu *	adapted default parameters to new board flash address * *	Revision 1.6  2003/02/25 14:55:42  ssu *	changed default environment parameters * *	Revision 1.5  2003/02/21 17:14:23  ias *	added extended SPD handling * *	Revision 1.4  2003/01/14 09:16:08  ias *	PPCBoot for Marvel Beta 0.9 * *	Revision 1.3  2002/12/03 13:56:26  ias *	Environment in flash support added * *	Revision 1.2  2002/11/29 16:53:29  ias *	Flash support for STM added * *	Revision 1.1  2002/11/29 13:36:31  ias *	Revision 0.1 of PPCBOOT (1.1.5) for Marvell DB64360 IBM750FX Board *	- working DDRRAM (only 32MByte of 128MB Modul) *	- working I2C Driver for SPD EEPROM read *	- working DUART 16650 for Serial Console *	- working "console" * * * ************************************************************************/#ifndef __CONFIG_H#define __CONFIG_H/* This define must be before the core.h include */#define CONFIG_DB64360		1	/* this is an DB64360 board	*/#ifndef __ASSEMBLY__#include "../board/Marvell/include/core.h"#endif/*-----------------------------------------------------*//*    #include "../board/db64360/local.h"	      */#ifndef __LOCAL_H#define __LOCAL_H/* first ethernet */#define CONFIG_ETHADDR		64:36:00:00:00:01											     /* next two ethernet hwaddrs */#define CONFIG_HAS_ETH1#define CONFIG_ETH1ADDR		64:36:00:00:00:02/* in the atlantis 64360 we have only 2 ETH port on the board,if we use PCI it has its own MAC addr */#define CONFIG_ENV_OVERWRITE#endif	/* __CONFIG_H *//* * High Level Configuration Options * (easy to change) */#define CONFIG_74xx			/* we have a 750FX (override local.h) */#define CONFIG_DB64360		1	/* this is an DB64360 board	*/#define CONFIG_BAUDRATE		115200	/* console baudrate = 115000	*//*ronen - we don't use the global CONFIG_ECC, since in the global ecc we initialize the	DRAM for ECC in the phase we are relocating to it, which isn't so sufficient.	so we will define our ECC CONFIG and initilize the DRAM for ECC in the DRAM initialization phase,	see sdram_init.c   */#undef CONFIG_ECC	 /* enable ECC support */#define CONFIG_MV64360_ECC/* which initialization functions to call for this board */#define CONFIG_MISC_INIT_R     /* initialize the icache L1 */#define CONFIG_BOARD_EARLY_INIT_F#define CFG_BOARD_NAME		"DB64360"#define CONFIG_IDENT_STRING	"Marvell DB64360 (1.1)"/*#define CFG_HUSH_PARSER */#undef CFG_HUSH_PARSER#define CFG_PROMPT_HUSH_PS2	"> "/* * The following defines let you select what serial you want to use * for your console driver. * * what to do: * to use the DUART, undef CONFIG_MPSC.	 If you have hacked a serial * cable onto the second DUART channel, change the CFG_DUART port from 1 * to 0 below. * * to use the MPSC, #define CONFIG_MPSC.  If you have wired up another * mpsc channel, change CONFIG_MPSC_PORT to the desired value. */#define CONFIG_MPSC_PORT	0/* to change the default ethernet port, use this define (options: 0, 1, 2) */#define CONFIG_NET_MULTI#define MV_ETH_DEVS 2/* #undef CONFIG_ETHER_PORT_MII	 */#if 0#define CONFIG_BOOTDELAY	-1	/* autoboot disabled		*/#else#define CONFIG_BOOTDELAY	3	/* autoboot after 5 seconds	*/#endif#define CONFIG_ZERO_BOOTDELAY_CHECK#undef	CONFIG_BOOTARGS/*#define CONFIG_PREBOOT	"echo;echo Type \"run flash_nfs\" to mount root filesystem over NFS;echo" *//* ronen - autoboot using tftp */#if (CONFIG_BOOTDELAY >= 0)#define CONFIG_BOOTCOMMAND	"tftpboot 0x400000 uImage;\ setenv bootargs ${bootargs} ${bootargs_root} nfsroot=${serverip}:${rootpath} \ ip=${ipaddr}:${serverip}${bootargs_end};  bootm 0x400000; "#define CONFIG_BOOTARGS "console=ttyS0,115200"#endif/* ronen - the u-boot.bin should be ~0x30000 bytes */#define CONFIG_EXTRA_ENV_SETTINGS \     "burn_uboot_sep= tftp 100000 u-boot.bin;protect off all;era FFF00000 FFF4ffff; \cp.b 100000 FFF00000 0x40000;protect on 1:0-4;\0" \      "burn_uboot_dep= tftp 100000 u-boot.bin;protect off all;era FFF00000 FFF7ffff; \cp.b 100000 FFF00000 0x40000;protect on 1:0-7;\0" \      "bootargs_root=root=/dev/nfs rw\0" \      "bootargs_end=:::DB64360:eth0:none \0"\      "ethprime=mv_enet0\0"\      "standalone=fsload 0x400000 uImage;setenv bootargs ${bootargs} root=/dev/mtdblock/0 rw \ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"/* --------------------------------------------------------------------------------------------------------------- *//* New bootcommands for Marvell DB64360 c 2002 Ingo Assmus */#define CONFIG_IPADDR		10.2.40.90#define CONFIG_SERIAL		"No. 1"#define CONFIG_SERVERIP		10.2.1.126#define CONFIG_ROOTPATH /mnt/yellow_dog_mini#define CONFIG_TESTDRAMDATA	y#define CONFIG_TESTDRAMADDRESS	n#define CONFIG_TESETDRAMWALK	n/* --------------------------------------------------------------------------------------------------------------- */#define CONFIG_LOADS_ECHO	0	/* echo off for serial download */#define CFG_LOADS_BAUD_CHANGE		/* allow baudrate changes	*/#undef	CONFIG_WATCHDOG			/* watchdog disabled		*/#undef	CONFIG_ALTIVEC			/* undef to disable		*/#define CONFIG_BOOTP_MASK	(CONFIG_BOOTP_DEFAULT | \				 CONFIG_BOOTP_BOOTFILESIZE)/* * JFFS2 partitions * *//* No command line, one static partition, whole device */#undef CONFIG_JFFS2_CMDLINE#define CONFIG_JFFS2_DEV		"nor1"#define CONFIG_JFFS2_PART_SIZE		0xFFFFFFFF#define CONFIG_JFFS2_PART_OFFSET	0x00000000/* mtdparts command line support *//* Use first bank for JFFS2, second bank contains U-Boot. * * Note: fake mtd_id's used, no linux mtd map file. *//*#define CONFIG_JFFS2_CMDLINE#define MTDIDS_DEFAULT		"nor1=db64360-1"#define MTDPARTS_DEFAULT	"mtdparts=db64360-1:-(jffs2)"*/#define CONFIG_COMMANDS (CONFIG_CMD_DFL \			 | CFG_CMD_ASKENV \			 | CFG_CMD_I2C \			 | CFG_CMD_EEPROM \			 | CFG_CMD_CACHE \			 | CFG_CMD_JFFS2 \			 | CFG_CMD_PCI \			 | CFG_CMD_NET )/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */#include <cmd_confdefs.h>/* * Miscellaneous configurable options */#define CFG_I2C_EEPROM_ADDR_LEN 1#define CFG_I2C_MULTI_EEPROMS#define CFG_I2C_SPEED	40000		/* I2C speed default *//* #define CFG_GT_DUAL_CPU	 also for JTAG even with one cpu */#define CFG_LONGHELP			/* undef to save memory		*/#define CFG_PROMPT	"=> "		/* Monitor Command Prompt	*/#if (CONFIG_COMMANDS & CFG_CMD_KGDB)#define CFG_CBSIZE	1024		/* Console I/O Buffer Size	*/#else#define CFG_CBSIZE	256		/* Console I/O Buffer Size	*/#endif#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_MEMTEST_START	0x00400000	 memtest works on	*//*#define CFG_MEMTEST_END		0x00C00000	 4 ... 12 MB in DRAM	*//*#define CFG_MEMTEST_END		0x07c00000	 4 ... 124 MB in DRAM	*//*#define CFG_DRAM_TEST * DRAM tests *   CFG_DRAM_TEST - enables the following tests. * *   CFG_DRAM_TEST_DATA - Enables test for shorted or open data lines *			  Environment variable 'test_dram_data' must be *			  set to 'y'. *   CFG_DRAM_TEST_DATA - Enables test to verify that each word is uniquely *			  addressable. Environment variable *			  'test_dram_address' must be set to 'y'. *   CFG_DRAM_TEST_WALK - Enables test a 64-bit walking ones pattern test. *			  This test takes about 6 minutes to test 64 MB. *			  Environment variable 'test_dram_walk' must be *			  set to 'y'. */#define CFG_DRAM_TEST#if defined(CFG_DRAM_TEST)#define CFG_MEMTEST_START		0x00400000	/* memtest works on	*//* #define CFG_MEMTEST_END		0x00C00000	 4 ... 12 MB in DRAM	*/#define CFG_MEMTEST_END		0x07c00000	/* 4 ... 124 MB in DRAM */#define CFG_DRAM_TEST_DATA#define CFG_DRAM_TEST_ADDRESS

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -