📄 config.h
字号:
/* ads827x/config.h - Motorola ADS827x-PCI board configuration header *//* Copyright 1984-2003 Wind River Systems, Inc. *//*modification history--------------------01f,12oct04,dtr Revision change.01e,19feb04,dtr Fix HW RST CONF word.01d,28jan04,dtr Modify FLASH defines.01c,08jan04,dtr Adding INCLUDE_SECURITY_ENGINE.01b,06jan04,dtr Change PCI_MEM_MASK_SIZE to match LOCAL_MEM_SIZE.01a,18dec03,dtr adapted from ads826x config.h*//*This file contains the configuration parameters for theMotorola MPC8272 ADS board.*/#ifndef INCconfigh#define INCconfigh#ifdef __cplusplusextern "C" {#endif /* __cplusplus */#define CTDB_MPC8280#ifdef CTDB_MPC8280#define CFG_IMMR INTERNAL_MEM_MAP_ADDR#define SCC_DEVICE 0#define SMC_DEVICE 1#define UART_DEVICE SCC_DEVICE /*用来定义系统是用SCC还是SMC做串口*/#endif /*CTDB_MPC8280*//* 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 "/1"/* Define Clock Speed and source */#define FREQ_33_MHZ 33000000#define FREQ_40_MHZ 40000000#define FREQ_66_MHZ 66000000#define FREQ_100_MHZ 100000000/* * This define must be set to the value of the resonant oscillator * inserted in position U16 of the ADS8272 board. Choose from above * list. */#define OSCILLATOR_FREQ FREQ_100_MHZ #define DIV_FACT_1 0#define DIV_FACT_16 1#define BRGCLK_DIV_FACTOR DIV_FACT_16#define M8260_BRGC_DIVISOR BRGCLK_DIV_FACTOR#include "configAll.h"#ifdef CTDB_MPC8280/*单板IP、加载文件名等的配置*/#define DEFAULT_BOOT_LINE \"motfcc(0,0)host: vxWorks h=192.168.0.68 e=192.168.0.235 u=vxworks pw=vxworks tn=CTDB_MPC8272"#else#define DEFAULT_BOOT_LINE \"motfcc(0,0)host:target/config/ads827x/vxWorks h=92.0.0.1 e=92.0.0.2 u=vxworks pw=vxworks tn=ads827x"#endif#define INCLUDE_MMU_BASIC#ifdef INCLUDE_MMU_BASIC# define USER_I_MMU_ENABLE# define USER_D_MMU_ENABLE#endif#define INCLUDE_CACHE_SUPPORT#ifdef INCLUDE_CACHE_SUPPORT# define USER_D_CACHE_ENABLE/* Does nothing about copyback vs writethrough in h/w, must use sysPhysMemDesc */# undef USER_D_CACHE_MODE# define USER_D_CACHE_MODE CACHE_COPYBACK# define USER_I_CACHE_ENABLE# undef USER_I_CACHE_MODE# define USER_I_CACHE_MODE CACHE_COPYBACK#endif/* Number of TTY definition */#undef NUM_TTY#define NUM_TTY N_SIO_CHANNELS /* defined in ads827x.h *//* Optional timestamp support */#undef INCLUDE_TIMESTAMP#define INCLUDE_AUX_CLK/* 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 *//* * 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 */#define M8260_SCCR_PCI_MODE_BIT 0x80/* add on-chip drivers */#undef INCLUDE_SECURITY_ENGINE#undef INCLUDE_PCI /* include PCI library support */#ifdef INCLUDE_PCI#define INCLUDE_PCI_AUTOCONF/* PCI based addresses */#define PCI_MEM_ADRS 0x50000000#define PCI_MEM_SIZE 0x01000000 /*16MB */#define PCI_MEM_SIZE_MASK PCI_SIZE_MASK_16M /* This should match PCI_MEM_SIZE */#define PCI_MEMIO_ADRS 0x60000000#define PCI_MEMIO_SIZE 0x01000000 /*16MB */#define PCI_MEMIO_SIZE_MASK PCI_SIZE_MASK_16M /* This should match PCI_MEMIO_SIZE */#define PCI_IO_ADRS 0x70000000#define PCI_IO_SIZE 0x00100000 /* IO Space is not available *//* CPU based addresses */#define CPU_PCI_MEM_ADRS 0x80000000#define CPU_PCI_MEM_SIZE PCI_MEM_SIZE#define CPU_PCI_MEMIO_ADRS 0x90000000#define CPU_PCI_MEMIO_SIZE PCI_MEMIO_SIZE#define CPU_PCI_IO_ADRS 0xa0000000#define CPU_PCI_IO_SIZE PCI_IO_SIZE/* CPU from PCI bus */#define PCI_MSTR_MEM_BUS 0x00000000#define PCI_MSTR_MEM_SIZE PCI_LOCAL_MEM_SIZE#define PCI_BRIDGE_PIMMR_BASE_ADRS 0x40000000/* CPU Address that is visible from PCI */#define PCI_LOCAL_MEM_BUS LOCAL_MEM_LOCAL_ADRS#define PCI_LOCAL_MEM_SIZE LOCAL_MEM_SIZE/* This should match LOCAL_MEM_SIZE - if not statically defined buffers need to be used for PCI devices */#define PCI_MSTR_MEM_SIZE_MASK PCI_SIZE_MASK_64M#ifndef PCI_CFG_TYPE# ifdef INCLUDE_PCI_AUTOCONF# define PCI_CFG_TYPE PCI_CFG_AUTO# else# define PCI_CFG_TYPE PCI_CFG_FORCE# endif /* INCLUDE_PCI_AUTOCONF */#endif /* PCI_CFG_TYPE */#endif /* INCLUDE_PCI *//* add necessary drivers */#ifdef INCLUDE_NETWORK# define INCLUDE_MOTFCCEND /* include the FCC ethernet driver */#endif#ifdef INCLUDE_MOTFCCEND# ifndef INCLUDE_END# define INCLUDE_END /* only END-style driver for FCC */# endif /* INCLUDE_END */#endif /* INCLUDE_MOTFCCEND */#ifdef INCLUDE_MOTFCCEND#define INCLUDE_FCC1 /* primary */#define INCLUDE_FCC2 #undef INCLUDE_FCC3 /* not available */#undef INCLUDE_FCC4 /* not available */#endif /* INCLUDE_MOTFCCEND */#undef INCLUDE_FEI_END#undef INCLUDE_PCI_DMA#undef INCLUDE_PCI_ERROR_HANDLING#undef PCI_BRIDGE_READ_ERRATA_WORKAROUND#ifndef INCLUDE_PCI# undef INCLUDE_PCI_DMA# undef INCLUDE_PCI_ERROR_HANDLING# undef INCLUDE_FEI_END# undef PCI_BRIDGE_READ_ERRATA_WORKAROUND#endif#ifdef CTDB_MPC8280#define BIOSVERSION 1 /* 1 BIOS版本,0 Flash版本*/#endif /*CTDB_MPC8280*//* Memory addresses */#ifdef CTDB_MPC8280/* 系统内存大小 */#define LOCAL_MEM_SIZE 0x08000000 /* 128 Mbyte memory available */#endif /*CTDB_MPC8280*/#define LOCAL_MEM_LOCAL_ADRS 0x00000000 /* Base of 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 FLASH_BASE_ADRS 0xfff00000#define ROM_BASE_ADRS 0xfff00000 /* base address of ROM */#define ROM_TEXT_ADRS ROM_BASE_ADRS + 0x100#define ROM_SIZE 0x80000 /* ROM space */#define ROM_WARM_ADRS (ROM_TEXT_ADRS+8) /* warm reboot entry *//* RAM address for ROM boot */#define RAM_HIGH_ADRS 0x00d00000/* RAM address for sys image */#define RAM_LOW_ADRS 0x00100000#define USER_RESERVED_MEM 0x00000000 /* user reserved memory size *//* Hard Reset Configuration Words */#ifdef CTDB_MPC8280/* SDRAM 片选*/#define CFG_60X_SDRAM_SIZE LOCAL_MEM_SIZE#if BIOSVERSION/* BIOS 片选*/#define CFG_BR0_PRELIM (0xFFF00801)#define CFG_OR0_PRELIM (0xFE000E84) /*60X BIOS 512K*/#define CFG_OR2_PRELIM (0xF8002500)#define CFG_BR2_PRELIM (0x00001841)/*硬件配置字*/#define HRCW_BYTE_0 0x04 /* 8 bit boot port, MSR(IP) = 1 */#define HRCW_BYTE_1 0x72 /* IMMR[0-14] = 0xF000_0000, no L2 cache signals*/#define HRCW_BYTE_2 0x36 /* bit[20:21] LBPC = 01, set local bus as PCI bus */#define HRCW_BYTE_3 0x5a /* bit[26] ALD_EN = 1 */#endif /*BIOSVERSION*/#endif /*CTDB_MPC8280*//* * The hard reset configuration word (above) defines the initial location * of the Internal Memory Map. If you want to change this address during * bsp boot time (to match the memory map defined by the Motorola ADS8266-PCI * documentation) define the IMMAP_REMAP macro below. The actual value * for the INTERNAL_MEM_MAP_ADDR is then defined in ads828x.h */#define IMMAP_REMAP#define DEFAULT_BAUD 9600/* * Default power management mode - selected via vxPowerModeSet() in * sysHwInit(). */#define DEFAULT_POWER_MGT_MODE VX_POWER_MODE_DISABLE#include "ads827x.h" /* include the ads826x params */#ifdef __cplusplus}#endif /* __cplusplus */#endif /* INCconfigh */#if defined(PRJ_BUILD) #include "prjParams.h"#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -