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

📄 config.h

📁 motorola 8260 CPU上面
💻 H
字号:
/* 8260pc/config.h - Motorola MPC8260 processor card configuration header *//*modification history--------------------Dec. 15, 2000 created by sjzhuOct. 24, 2001 modified by shirley*//*This file contains the configuration parameters for theMotorola MPC8260 processor card.*/#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/* 8260pc *//* #define BSP_VERSION     "1.2"*//* #define BSP_REV         "/4  (c) ESDL(Beijing), 2000"*/ /* 0 for the first bsp revision */#define BSP_VERSION     "1.3"#define BSP_REV         "/4  (c) NCSD, 2001" /* 0 for the first bsp revision */#include "configAll.h"#define DEFAULT_BOOT_LINE \"motfcc(0,0)niubq:vxWorks h=168.1.2.8 e=168.1.2.223 u=vxworks pw=vxworks" /* "motfcc(0,0)kevin:vxWorks.8260pc h=192.168.247.97 e=192.168.247.227 u=ftp pw=foo" *//* "motfcc(0,0)johnson:vxWorks h=192.168.247.147 e=192.168.247.227 u=8260pc pw=8260pc" */ #define USER_I_MMU_ENABLE#define USER_D_MMU_ENABLE#define INCLUDE_MMU_BASIC#define USER_I_CACHE_ENABLE#define USER_D_CACHE_ENABLE#define INCLUDE_CACHE_SUPPORT#undef INCLUDE_WINDVIEW/* Number of TTY definition */#undef	NUM_TTY#define	NUM_TTY		N_SIO_CHANNELS		/* defined in 8260pc.h *//* 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 *//* 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 *//* * Crystal Frequency - This macro defines the input oscillator frequency * (labeled SYSCLK on the MPC8260 ADS board) clocking the PPC8260.  */ /* 8260pc *//* #define CRYSTAL_FREQ		40000000		   40 Mhz */#define CRYSTAL_FREQ		50000000		/* 66 Mhz *//* * 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 */#define DRAM_REFRESH_FREQ	64000			/* 64 kHz *//* * 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#ifdef  INCLUDE_NETWORK#   define INCLUDE_MOT_FCC              /* include the FCC ethernet driver */#endif #ifdef INCLUDE_MOT_FCC#ifndef INCLUDE_END#   define INCLUDE_END                  /* only END-style driver for FCC */#endif /* INCLUDE_END */#endif /* INCLUDE_MOT_FCC */ /* remove unnecessary drivers */#undef INCLUDE_BP#undef INCLUDE_EX#undef INCLUDE_ENP#undef INCLUDE_SM_NET#undef INCLUDE_SM_SEQ_ADD#define FLASH_ADRS              0xfff00000      /* base address of flash */#define FLASH_WIDTH             2#define FLASH_SIZE              0x00200000      /* 2 Mbytes total flash size */#define FLASH_SIZE_WRITEABLE    0x00100000#define FLASH_MEM_TYPE          FLASH_28F016    /* flash device type */#define NV_RAM_SIZE             NONE            /* no NVRAM */ /* Memory addresses */ #define LOCAL_MEM_SIZE          0x02000000      /* 32 Mbyte memory available */#define LOCAL_MEM_LOCAL_ADRS    0x00000000      /* Base of RAM *//* 8260pc */ #define LOCAL_BUS_MEM_SIZE          0x01000000      /* 16 Mbyte Local Bus memory available */#define LOCAL_BUS_MEM_LOCAL_ADRS    0x02000000      /* Base of Local Bus RAM */ /* * 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           FLASH_ADRS      /* base address of ROM */#define ROM_TEXT_ADRS           ROM_BASE_ADRS + 0x100 #define ROM_SIZE                FLASH_SIZE_WRITEABLE      /* ROM space */#define ROM_WARM_ADRS           (ROM_TEXT_ADRS+8) /* warm reboot entry *//* RAM address for ROM boot */#define RAM_HIGH_ADRS           (LOCAL_MEM_LOCAL_ADRS + 0x00300000) /* RAM address for sys image */#define RAM_LOW_ADRS            (LOCAL_MEM_LOCAL_ADRS + 0x00010000) #define USER_RESERVED_MEM	0x00000000	/* user reserved memory size */#if 0/* Address and size of the Board Control and Status Register space */#define DEFAULT_BCSRS_ADRS      0x04500000#define BCSRS_SIZE              0x00010000      /* 64K of address space */#endif/* Address and size of MPC8260 Internal Memory Map */#define DEFAULT_IMM_ADRS        0x04700000    /* 8260PC: please change 8260pc.h IMMR_ADDRESS_RESET_VALUE accordingly */#define IMM_SIZE                0x00020000      /* 128K of address space *//* Hard Reset Configuration Words */#define HRCW_BYTE_0             0x18    /* 16 bit boot port, Inital prefix = FFFn_nnnn, 60x Bus Mode*/#define HRCW_BYTE_1             0xB2    /* IMMR[0-14] = 0x0F00_0000 */#define HRCW_BYTE_2             0x02    /* boot space = 0xFE00_0000 - 0xFFFF_FFFF */#define HRCW_BYTE_3             0x05    /* MODCK_H = 0101 *//* * Default power management mode - selected via vxPowerModeSet() in * sysHwInit(). */#define DEFAULT_POWER_MGT_MODE  VX_POWER_MODE_DISABLE#include "8260pc.h"			/* include the ads8260 params */#endif	/* INCconfigh */#if defined(PRJ_BUILD)#include "prjParams.h"#endif

⌨️ 快捷键说明

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