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

📄 config.h

📁 MPC850的bootrom。使用后可以直接启动boot程序
💻 H
字号:
/* ads860/config.h - Motorola 860ads board configuration header *//* Copyright 1984-1997 Wind River Systems, Inc. *//*modification history--------------------01t,04mar99,cn   merge from ads860 release view, defaults to INCLUDE_END		 (SPR# 23153).01s,09feb99,cn   added macro NV_RAM_SIZE (SPR# 23387), also added support 		 for SDRAM (SPR# 24337).01r,18nov98,cn   END drivers are not selected for default.01q,09nov98,cn   added support for 860T boards and FEC.		 Changed ROM_SIZE to be 2Meg as in Makefile (SPR# 22572).01p,08oct98,ms   made #define INCLUDE_CPM conditional on INCLUDE_NETWORK01o,22jun98,cn   added support for Enhanced Network Driver.01n,10jul98,sut  changed BSP_VERSION to "1.2" and BSP_REV to "/0"                 added BSP_VER_1_2 macro ( Tornado 2.0 release ).01m,28apr98,yp   added support for TFFS.01l,08apr98,gls  BSP_REV level 3, for re-release to support FADS01k,11nov97,map  added definitions for SYS_AUX_CLK [SPR# 9366].01j,21feb97,mas  added undef of INCLUDE_TIMESTAMP (SPR 7879).01i,03jan97,dat  BSP_REV level 2, for tornado 1.0.1 release01h,12nov96,tam  added DEFAULT_POWER_MGT_MODE to select the default power		 management mode.01g,11nov96,tpr  turned the cache off when EDO dran selected.01f,10nov96,tpr  defined cache and MMU support.		 replaced SYS_CLK_FREQ by SPLL_FREQ_REQUESTED.01e,08nov96,tpr  removed CPU_SPEED.01d,06nov96,tpr  changed RAM_LOW_ADRS to 0x00010000.01c,06nov96,tpr  increased BSP_REV from 0 to 1.		 + added CLK macros.01b,28may96,dzb  added Ethernet driver defines.01a,19apr96,tpr  written.*//*This file contains the configuration parameters for theMotorola MPC860ADS board.*/#ifndef	INCconfigh#define	INCconfigh/* BSP version/revision identification, should be placed * before #include "configAll.h" */#define BSP_VER_1_1     1#define BSP_VER_1_2     1#define BSP_VERSION     "1.2"#define BSP_REV         "/4"		/* 0 for the first bsp revision */#include "configAll.h"#undef FADS_860T		  /* define it in the case of a FADS860T */#define MPC850_BSP  /* define it in the case of a mpc850   gtt 2003.10.25*/#define MAX_SCC_CHANNELS 0x2  /* max SCC number for Ethernet channels */#ifdef FADS_860T#define DEFAULT_BOOT_LINE \"motfec(0,0)host:/usr/vw/config/ads860/vxWorks h=90.0.0.3 e=90.0.0.50 u=target"#else /* FADS_860T */#define DEFAULT_BOOT_LINE \"cpm(0,0)gtt:vxWorks h=192.80.1.130 e=192.80.1.253 u=target pw=target"#endif /* FADS_860T *//* DRAM type on the ADS board */#undef EDO_DRAM			/* to define if the DRAM is EDO */ #define INCLUDE_SDRAM		/* to define in case of SDRAM *//* Cache and MMU not supported */#ifdef	EDO_DRAM#undef USER_I_CACHE_ENABLE#undef USER_D_CACHE_ENABLE#undef INCLUDE_CACHE_SUPPORT#endif	/* EDO_DRAM */#undef  PAGE_SIZE#define PAGE_SIZE 4096#define USER_I_MMU_ENABLE#define USER_D_MMU_ENABLE#define INCLUDE_MMU_BASIC#undef  USER_I_CACHE_ENABLE#undef  USER_D_CACHE_ENABLE#undef  INCLUDE_CACHE_SUPPORT#undef USER_I_MMU_ENABLE#undef USER_D_MMU_ENABLE#undef INCLUDE_MMU_BASIC#define INCLUDE_WDB#define INCLUDE_END              /* Enhanced Network Driver see configNet.h */ #ifdef INCLUDE_END#ifdef INCLUDE_WDB#undef  WDB_COMM_TYPE#define WDB_COMM_TYPE	WDB_COMM_END /* END is prefered choice */#define INCLUDE_WDB_COMM_END#endif#endif#define INCLUDE_RAMDRV#define	INCLUDE_SHOW_ROUTINES#define  INCLUDE_DEBUG          /* pre-tornado debugging */#define  INCLUDE_SHELL        	 /* interactive c-expression interpreter */#define  INCLUDE_SYM_TBL        /* symbol table package */#define  INCLUDE_SYM_TBL_INIT   /* Initialise symbol table */#define INCLUDE_LOADER          /* object module loading */#define INCLUDE_UNLOADER        /* object module unloading */#define INCLUDE_BSD             /* For shared memory driver */#define INCLUDE_BSD_BOOT        /* attach for shared memory driver */#define INCLUDE_NET_SYM_TBL     /* load symbol table from network */#define INCLUDE_NET_SHOW        /* network show routines */#define INCLUDE_PING            /* for ping */#define INCLUDE_TELNET#define INCLUDE_FTP_SERVER	/* ftp server *//*#define INCLUDE_FTPD_SECURITY */#define INCLUDE_DNS_RESOLVER/* DNS resolver parameters; You must change these defaults to your config. */#ifdef INCLUDE_DNS_RESOLVER    #define RESOLVER_DOMAIN_SERVER  "90.0.0.3"    /* DNS server IP address */#define RESOLVER_DOMAIN         "wrs.com"     /* Resolver domain */#endif /* INCLUDE_DNS_RESOLVER */#define INCLUDE_PPP#undef TARGET_NAME_DEFAULT#define TARGET_NAME_DEFAULT  ""/* Number of TTY definition */#undef	 NUM_TTY#define	NUM_TTY		N_SIO_CHANNELS		/* defined in board.h */#define 	SCC_TTY_NUM		1     /* difine the Number of SCC being used as UART Mode gtt *//* Optional timestamp support */#undef	INCLUDE_TIMESTAMP/* optional TrueFFS support */#undef  INCLUDE_TFFS#ifdef INCLUDE_TFFS#define INCLUDE_DOSFS		/* dosFs file system */#define INCLUDE_SHOW_ROUTINES	/* show routines for system facilities*/#endif /* INCLUDE_DOSFS */#define INCLUDE_DOSFS		/* dosFs file system *//* clock rates */#define	SYS_CLK_RATE_MIN	1	/* minimum system clock rate */#define	SYS_CLK_RATE_MAX	8000	/* maximum system clock rate */#define	AUX_CLK_RATE_MIN	1	/* minimum auxiliary clock rate */#define	AUX_CLK_RATE_MAX	8000	/* maximum auxiliary clock rate *//* * Cristal Frequency - This macro defines the input oscillator frequency * clocking the PPC860.  */#define CRISTAL_FREQ		FREQ_50_MHZ     /* 50 Mhz   gtt *//* * SPLL_FREQ_REQUESTED - This macro defined the expected system PLL (SPLL) * frequency divided by 2. The two supported frequencies are either 25 * or 50 MHz. Use 50Mhz in the case of a FADS860T board. */#ifdef FADS_860T#   define SPLL_FREQ_REQUESTED	 FREQ_50_MHZ		/* 50 Mhz */#else /* FADS_860T */#   define SPLL_FREQ_REQUESTED  FREQ_50_MHZ      /* 25 Mhz --> 50 Mhz by gtt  */#endif /* FADS_860T *//* * DRAM refresh frequency - This macro defines the DRAM refresh frequency. * e.i: A DRAM with 1024 rows to refresh in 16ms:  * DRAM_REFRESH_FREQ = 1024/ 16E-3 = 64E3 hz */#ifndef INCLUDE_SDRAM#   define DRAM_REFRESH_FREQ	64000			/* 64 kHz */#else /* INCLUDE_SDRAM */#   define DRAM_REFRESH_FREQ	SDRAM_REFRESH_FREQ	/* defined in board.h*/#endif /* INCLUDE_SDRAM *//* * Baud Rate Generator division factor - 0 for division by 1 *					 1 for division by 4 *					 2 for division by 16 *					 3 for division by 64 */#define BRGCLK_DIV_FACTOR  0#define INCLUDE_END              /* Enhanced Network Driver see configNet.h */ #ifdef FADS_860T#ifdef	INCLUDE_NETWORK#define INCLUDE_MOT_FEC          	/* define if you are using the FEC. */#endif /* INCLUDE_NETWORK */#undef INCLUDE_CPM			/* define, if you want to use the   */					/* CPM ethernet driver */#undef USER_D_CACHE_ENABLE		/* data cache not supported for now */#else /* FADS_860T */#undef INCLUDE_MOT_FEC          	/* define if you are using the FEC. */#ifdef	INCLUDE_NETWORK#define INCLUDE_CPM			/* include the CPM ethernet driver */#endif /* INCLUDE_NETWORK */#endif /* FADS_860T */#ifdef INCLUDE_MOT_FEC#ifndef INCLUDE_END#define INCLUDE_END              	/* define if you are using the FEC */#endif /* INCLUDE_END */#endif /* INCLUDE_MOT_FEC *//* remove unnecessary drivers */#undef INCLUDE_BP#undef INCLUDE_EX#undef INCLUDE_ENP#undef INCLUDE_SM_NET#undef INCLUDE_SM_SEQ_ADD/* miscellaneous definitions */ #define NV_RAM_SIZE     NONE            /* no NVRAM */ /* Memory addresses */#define LOCAL_MEM_LOCAL_ADRS	 LOCAL_MEM_LOCAL_ADRS_VAL	/* Base of RAM */#define LOCAL_MEM_SIZE		 SDRAM_SIZE 	/* 4 Mbyte --> 8 Mbyte by gtt  *//* * The constants ROM_TEXT_ADRS, ROM_SIZE, and RAM_HIGH_ADRS are defined * in config.h, MakeSkel, Makefile, and Makefile.* * All definitions for these constants must be identical. */#define ROM_BASE_ADRS		ROM_BASE_ADRS_VAL     /* base address of ROM , */                                      /* from 0x02800000 to 0x08000000 by gtt */#define ROM_TEXT_ADRS		(ROM_BASE_ADRS + 0x100)#define ROM_SIZE		ROM_SIZE 	/* ROM space from 2M to 512K by gtt *//* RAM address for ROM boot */#define RAM_HIGH_ADRS		(LOCAL_MEM_LOCAL_ADRS + RAM_HIGH_ADRS_VAL)  /* RAM_HIGH_ADRS_VAL defined in board.h *//* RAM address for sys image */#define RAM_LOW_ADRS		(LOCAL_MEM_LOCAL_ADRS + RAM_LOW_ADRS_VAL)    /* RAM_LOW_ADRS_VAL defined in board.h */#define USER_RESERVED_MEM	 USER_RESERVED_MEM_VAL	/* user reserved memory size */                                                 /* USER_RESERVED_MEM_VAL defined in board.h *//* * Default power management mode - selected via vxPowerModeSet() in * sysHwInit(). */#define DEFAULT_POWER_MGT_MODE  VX_POWER_MODE_DISABLE#undef  CONSOLE_TTY#define	CONSOLE_TTY		0	 /* console channel */  /*#define INCLUDE_WDB #define INCLUDE_WDB_TTY_TEST #undef WDB_COMM_TYPE #define WDB_COMM_TYPE WDB_COMM_SERIAL  #define WDB_TTY_CHANNEL 1  #define WDB_TTY_BAUD 9600 #define WDB_TTY_DEV_NAME "tyCo/1"  */#include "board.h"				/* include the board params ,ads860.h --> board.h  gtt*/#endif	/* INCconfigh */#if defined(PRJ_BUILD)#include "prjParams.h"#endif

⌨️ 快捷键说明

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