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

📄 config.h

📁 MPC8360MDS VXWORKS BSP
💻 H
字号:
/* mds8360/config.h - Freescale MDS8360 board configuration header *//* Copyright (c) 2006 Wind River Systems, Inc. *//*modification history--------------------01e,19dec06,rlg  updates for NOR01d,22nov06,d_c  Move MAX_MAC_DEVS and ENET_DEFAULT from sysNet.h to config.h01c,30aug06,dtr  Increment BSP rev.01b,29jun06,dtr  update some definitions and include PCI.01a,18may06,dtr  adapted from ads834x config.h*//*This file contains the configuration parameters for theMotorola MPC8349E ADS board.*/#ifndef	INCconfigh#define	INCconfigh#ifdef __cplusplusextern "C" {#endif /* __cplusplus *//* BSP version/revision identification, should be placed * before #include "configAll.h" */#define BSP_VERSION		"2.0"#define BSP_REV		 	"/2"#define BSP_NAME                mds8360/* 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#define FREQ_266_MHZ             266000000#define FREQ_333_MHZ             333000000/* * This define must be set to the value of the resonant oscillator * inserted in position U16 or the PCI freq of the ADS834x board.   * Choose from above list. BSP assumes standalone board ie not in  * PCI chassis  */#define	OSCILLATOR_FREQ	FREQ_66_MHZ/* This is used to decide wether Errata ENET 15 patch is required */#define REV1_1_SILICON#define SYS_CLK_FREQ            FREQ_266_MHZ#define	DEC_CLK_TO_INC		4	   /* # bus clks per increment*/ #define DEC_CLOCK_FREQ		SYS_CLK_FREQ /* Set to system default */#define TIMESTAMP_HZ            SYS_CLK_FREQ#define TPR 0x2000#define LSRT_VALUE 0x3F#include "configAll.h"/* define only one of the following CPU*/#define MPC8360#define DEFAULT_BOOT_LINE \"qefcc(0,0)host:target/config/mds8360/vxWorks h=92.0.0.1 e=92.0.0.2 u=vxworks pw=vxworks tn=mds8360"#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 | CACHE_SNOOP_ENABLE#   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 */#define INCLUDE_VXBUS#ifdef INCLUDE_VXBUS#define INCLUDE_VXBUS_INIT#define INCLUDE_HWMEM_ALLOC#define INCLUDE_VXBUS_ACTIVATE#define INCLUDE_PARAM_SYS#define INCLUDE_PLB_BUS#define INCLUDE_QUICC_ENGINE_UTILS#define INCLUDE_QE_FCC_HEND#define INCLUDE_MII_BUS#define INCLUDE_GENERICPHY#define DRV_SIO_NS16550#define INCLUDE_SIO_UTILS#define INCLUDE_HEND_PARAM_SYS#define INCLUDE_PARAM_SYS#define HWMEM_POOL_SIZE 50000#endif/* other useful includes *#define INCLUDE_IFMEDIA#define INCLUDE_VXBUS_SHOW#define INCLUDE_IFCONFIG#define INCLUDE_NET_IF_SHOW#define INCLUDE_SHOW_ROUTINES#define INCLUDE_PCI_CFGSHOW#define INCLUDE_ISR_OBJECTS*//* Optional timestamp support */#define INCLUDE_TIMESTAMP#define INCLUDE_AUX_CLK#undef INCLUDE_DMA/* 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 *//* add on-chip drivers */#define INCLUDE_SECURITY_ENGINE /* only supported if chip has E ie 8349E *//* Note proto version of PIB (Platform IO base Board) has some  * issues.  Remove for default but add if required. * Some GEI cards fail to work SPR113700. * #define INCLUDE_PIB_SUPPORT      * include PIB IO board support * */#define  INCLUDE_PCI		/* include PCI library support */#ifdef  INCLUDE_PCI#define INCLUDE_PCI_AUTOCONF/*CPU Addr					PCI AddrPCI_LOCAL_MEM_BUS	------------------------- PCI_MSTR_MEM_BUS			-		        -	      		-		        -PCI_LOCAL_MEM_BUS +	------------------------- PCI_MSTR_MEM_BUS +PCI_LOCAL_MEM_SIZE	----IMMR              	- PCI_MSTR_MEM_SIZE      			-		        -       			-		        -----PIMMR	       		-		        -		       	-		        -CPU_PCI_MEM_ADRS	------------------------- PCI_MEM_ADRS       		        -			-		      	-			-CPU_PCI_MEMIO_ADRS	------------------------- PCI_MEMIO_ADRS	      	        -			-		       	-		       	-CPU_PCI_IO_ADRS		------------------------- PCI_IO_ADRS		       	-	       		-		       	-      			-CPU_PCI_IO_ADRS +	------------------------- PCI_IO_ADRS +CPU_PCI_IO_SIZE		-     			- PCI_IO_SIZE		       	-     			-		       	-     			-		       	-     			-		       	-------------------------- 4GBytes*//* for custom sysPciAutoConfig.c */#define PCI1_LAW_BASE            0x80000000       /* PCI LAW window */#define PCI1_LAW_SIZE            0x10000000       /* PCI LAW size   *//* PCI based addresses */#define PCI_MEM_ADRS		0x80000000#define PCI_MEM_SIZE		0x08000000 		/*16MB */#define PCI_MEM_SIZE_MASK	PCI_SIZE_128MB /* This should match PCI_MEM_SIZE */#define PCI_MEMIO_ADRS		0x88000000#define PCI_MEMIO_SIZE		0x04000000 		/*16MB */#define PCI_MEMIO_SIZE_MASK     PCI_SIZE_64MB	/* This should match PCI_MEMIO_SIZE */#define PCI_IO_ADRS	0x8c000000#define PCI_IO_SIZE	0x04000000	/* IO Space is not available */#define PCI_IO_SIZE_MASK PCI_SIZE_64MB#ifdef INCLUDE_SECONDARY_PCI#define PCI2_LAW_BASE            0x90000000       /* PCI LAW window */#define PCI2_LAW_SIZE            0x10000000       /* PCI LAW size   */#define PCI2_MEM_SIZE		0x08000000 		/*16MB */#define PCI2_MEMIO_SIZE		0x08000000 		/*16MB */#define PCI2_MEM_SIZE_MASK	PCI_SIZE_128MB /* This should match PCI_MEM_SIZE */#define PCI2_MEM_ADRS            (PCI2_LAW_BASE)                     #define PCI2_MEMIO_ADRS         (PCI2_MEM_ADRS   + PCI2_MEM_SIZE)    #define PCI2_IO_ADRS            (PCI2_MEMIO_ADRS + PCI2_MEMIO_SIZE)  #define PCI2_IO_SIZE	0x10000000	/* IO Space is not available *//* CPU based addresses */#define CPU_PCI2_MEM_ADRS		0x90000000#define CPU_PCI2_MEM_SIZE		PCI_MEM_SIZE#define CPU_PCI2_MEMIO_ADRS		0x98000000#define CPU_PCI2_MEMIO_SIZE		PCI_MEMIO_SIZE#define CPU_PCI2_IO_ADRS		0xa0000000#define CPU_PCI2_IO_SIZE	      	PCI_IO_SIZE#endif /* INCLUDE_SECONDARY_PCI *//* CPU based addresses */#define CPU_PCI_MEM_ADRS		0x80000000#define CPU_PCI_MEM_SIZE		PCI_MEM_SIZE#define CPU_PCI_MEMIO_ADRS		0x88000000#define CPU_PCI_MEMIO_SIZE		PCI_MEMIO_SIZE#define CPU_PCI_IO_ADRS			0x8c000000#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 at least match size of LOCAL_MEM_SIZE */#define PCI_LOCAL_MEM_SIZE_MASK PCI_SIZE_256MB#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_QE_FCC_HEND#define ETHERNET_MAC_HANDLER#  ifndef INCLUDE_END#    define INCLUDE_END  /* only END-style driver for FCC */#  endif /* INCLUDE_END */#endif /* INCLUDE_QE_FCC_HEND */#define MAX_MAC_DEVS         2          /* two network devices (fcc, scc) */#define ENET_DEFAULT         0x1EA00000 /* WR fixed MAC addr; see WR_ENETx *//* Both FCC MAC address and bootline is stored in top of flash *//* If you want to move bootimage here must move elsewhere in flash *//* Requires 1 segment */  #define INCLUDE_FLASH#ifdef INCLUDE_FLASH#  define SYS_FLASH_TYPE        FLASH_28F640J3A    /* flash device type */#  define FLASH_WIDTH           2#  define FLASH_CHIP_WIDTH      1#  define FLASH_SEGMENT_SIZE    0x10000#  define FLASH_ADRS            0xfe1e0000#  define FLASH_SIZE            0x10000#  define FLASH_SIZE_WRITEABLE  0x10000#  define NV_RAM_SIZE           FLASH_SIZE#  define FLASH_WIDTH_SPECIAL_2#  undef FLASH_NO_OVERLAY#  undef  NV_BOOT_OFFSET#  define NV_BOOT_OFFSET        0#endif#define FLASH_BASE_ADRS		0xfe000000#define FLASH_WINDOW_SIZE	0x00200000/* Memory addresses */#define LOCAL_MEM_SIZE		0x10000000		/* 64 Mbyte memory available */#define LOCAL_MEM_LOCAL_ADRS	0x00000000		/* Base of RAM */#define INCLUDE_LBC_SDRAM#define INCLUDE_DDR_SDRAM#define INCLUDE_SECONDARY_DRAM/* NOTE this should match the LAWAR SIZE in romInit for the chosen SDRAM */#define LOCAL_MEM_SIZE2          0x4000000      /* 64 Mbyte memory available */#define LOCAL_MEM_LOCAL_ADRS2    0x10000000      /* Base of RAM */#define LBC_SDRAM_LOCAL_SIZE_MASK  0xfc000000#define LBC_SDRAM_LOCAL_ADRS       LOCAL_MEM_LOCAL_ADRS2#define LBC_SDRAM_LOCAL_SIZE       LOCAL_MEM_SIZE2#define DDR_SDRAM_LOCAL_ADRS       LOCAL_MEM_LOCAL_ADRS#define DDR_SDRAM_LOCAL_SIZE       LOCAL_MEM_SIZE#define DDR_SDRAM_LOCAL_ADRS_END   (DDR_SDRAM_LOCAL_ADRS + DDR_SDRAM_LOCAL_SIZE)/* * 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   0xfe000000		/* base address of ROM */#define ROM_TEXT_ADRS  	ROM_BASE_ADRS + 0x100#define ROM_SIZE       	0x100000		 /* ROM space */#define ROM_WARM_ADRS   (ROM_TEXT_ADRS+8) /* warm reboot entry *//* RAM address for ROM boot */#define RAM_HIGH_ADRS  	0x00e00000/* RAM address for sys image */#define RAM_LOW_ADRS	0x00010000#define USER_RESERVED_MEM    0x00000000	/* user reserved memory size *//* Hard Reset Configuration Words *//* See MPC8349E hardware specification for supported clock freq *//* More information in target.ref *//* spmf 1:4 ie 4*66Mhz == 266Mhz CSB*/#define HRCW_LOW_BYTE0	0x04/* corepll ratio 1:2 533Mhz  */#define HRCW_LOW_BYTE1  0x04 #define HRCW_LOW_BYTE2  0x00#define HRCW_LOW_BYTE3  (HRCW_LOW_CEPMF_6)  /* QuiccEngine 66 * 6 == 333MHz */#define HRCW_HIGH_BYTE0 (HRCW_HIGH_PCI_HOST |  HRCW_HIGH_PCI1_ARB | \			 HRCW_HIGH_PCI_CLK_OUT) /* PCI HOST/ARB/CLK_OUT */#define HRCW_HIGH_BYTE1 ( ROMLOC_GPCM_16BIT )#define HRCW_HIGH_BYTE2 0x00#define HRCW_HIGH_BYTE3 0x00/* * Default power management mode - selected via vxPowerModeSet() in * sysHwInit(). */#define DEFAULT_POWER_MGT_MODE  VX_POWER_MODE_DISABLE#include "mds8360.h"			/* include the ads834x 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 + -