📄 config.h
字号:
/* dab/config.h - Motorola MPC860DAB board configuration header */
/* Copyright 1998 Teltec UCD-CS */
/* Copyright 1984-1997 Wind River Systems, Inc. */
/*
modification history
--------------------
01a,15sep98,rkh started for DAB
01j,21feb97,mas added undef of INCLUDE_TIMESTAMP (SPR 7879).
01i,03jan97,dat BSP_REV level 2, for tornado 1.0.1 release
01h,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 the
Motorola MPC860DAB board.
*/
#ifndef INCconfigh
#define INCconfigh
/* BSP version/revision identification, should be placed
* before #include "configAll.h"
*/
#define BSP_VER_1_1 1
#define BSP_VERSION "1.3"
#define BSP_REV "/5 (c)Autosoft (Chengdu), 2001" /* 0 for the first bsp revision */
#include "configAll.h"
#undef FADS_860T
#define INCULDE_NETWORK
#ifdef FADS_860T
# define DEFAULT_BOOT_LINE \
"motfec(0,0)chenqi:vxWorks h=192.168.0.78 e=192.168.0.42 g=192.168.0.1 u=vxworks pw=vxworks tn=860pc"
#else /* FADS_860T */
# define DEFAULT_BOOT_LINE \
"cpm(0,0)chenqi:vxWorks h=192.168.0.78 e=192.168.0.42 g=192.168.0.1 u=vxworks pw=vxworks tn=860pc"
#endif /* FADS_860T */
/* DRAM type on the DAB board */
#undef EDO_DRAM /* to define if the DRAM is EDO */
/* 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 */
#define USER_I_MMU_ENABLE
#define USER_D_MMU_ENABLE
#define INCLUDE_MMU_BASIC
#if 1
/* XXX disabling the caches */
#undef USER_I_CACHE_ENABLE
#undef USER_D_CACHE_ENABLE
#endif
/* Number of TTY definition */
#undef NUM_TTY
#define NUM_TTY N_SIO_CHANNELS /* defined in dab.h */
/* Optional timestamp support */
/* 6/15/99 6:14PM add code */
#undef INCLUDE_TIMESTAMP
/* 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 0 /* minimum auxiliary clock rate */
#define AUX_CLK_RATE_MAX 0 /* maximum auxiliary clock rate */
/*
* Cristal Frequency - This macro defines the input oscillator frequency
* clocking the PPC860. On the DAB board, the CPU is clocked by a cristal
* running at 4 Mhz.
*/
#define CRISTAL_FREQ 50000000 /* 50 Mhz */
/*
* 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.
*/
#define SPLL_FREQ_REQUESTED FREQ_50_MHZ /* 50 Mhz */
/*
* 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
/* add necessary drivers */
#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. */
# undef INCLUDE_CPM /* define, if you want to use the */
#endif /* INCLUDE_NETWORK */
#else /* FADS_860T */
# undef INCLUDE_MOT_FEC /* define if you are using the FEC. */
# define INCLUDE_CPM /* define, if you want to use the */
#endif /* FADS_860T */
#define INCLUDE_CPM /* define, if you want to use the */
#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
/* No NVRAM*/
/* #define NV_RAM_SIZE NONE */
/* Memory addresses */
#define LOCAL_MEM_LOCAL_ADRS 0x00000000 /* Base of RAM */
/*#define LOCAL_MEM_SIZE 0x00400000*/ /* 4 Mbyte memory available */
#define LOCAL_MEM_SIZE 0x02000000 /* 32 Mbyte memory available */
/*
* 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 0x02800000 /* base address of ROM */
#define ROM_TEXT_ADRS ROM_BASE_ADRS + 0x100
#define ROM_SIZE 0x00100000 /* 2M ROM space */
/* RAM address for ROM boot */
#define RAM_HIGH_ADRS (LOCAL_MEM_LOCAL_ADRS + 0x01e00000)
/* RAM address for sys image */
#define RAM_LOW_ADRS (LOCAL_MEM_LOCAL_ADRS + 0x00010000)
/*#define RAM_LOW_ADRS (LOCAL_MEM_LOCAL_ADRS + 0x00200000)*/
#define FLASH_ADRS 0x029C0000 /* base address of Local flash */
#define FLASH_SIZE 0x00040000 /* 192K+64K flash size */
#define FLASH_WIDTH 1 /* 8 bit width */
/* base flash address for additional information store */
#define FLASH_PARAM FLASH_ADRS + 0x20000
/* Address for the destination network which is used by routeAdd() */
#define DESTINATION_NETWORK_ADRS FLASH_ADRS + 0x30000
/*
* NVRAM Definitions : Using FLASH's first sector
*/
#define NVRAM_INITIALIZED "INIT" /* Initialization Indicator */
#define NV_INIT_SIZE 4 /* (size of NVRAM_INITIALIZED) */
#undef NV_BOOT_OFFSET /* room for init indicator */
#define NV_BOOT_OFFSET (NV_INIT_SIZE+1)
#define NV_RAM_SIZE 65536 /* 64K bytes */
#define MAC_ADRS FLASH_ADRS + 0x10000 /* second sector */
/*#define DEFAULT_10M_MAC_ADRS (UINT8){0x08,0x00,0x3e,0x03,0x02,0x09}
#define DEFAULT_100M_MAC_ADRS (UINT8){0x08,0x00,0x3e,0x03,0x02,0x0a}
#define DEFAULT_10M_IP "192.168.0.42"*/
#define USER_RESERVED_MEM 0x00000000 /* user reserved memory size */
/*
* Default power management mode - selected via vxPowerModeSet() in
* sysHwInit().
*/
#define DEFAULT_POWER_MGT_MODE VX_POWER_MODE_DISABLE
#include "860pc.h" /* include the DAB params */
#endif /* INCconfigh */
/* The following has been added by WindCfg */
#include "configdb.h"
#if defined(PRJ_BUILD)
#include "prjParams.h"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -