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

📄 config.h

📁 Freescale MPC85xx BSP (8555/8541)。绝对可用的。
💻 H
📖 第 1 页 / 共 2 页
字号:
CPU_PCI_IO_ADRS2 (PCI2)  -                        - PCI_IO_ADRS2                         -                        -CPU_PCI_IO_ADRS  (PCI1)+ -------------------------- PCI_IO_ADRS +CPU_PCI_IO_ADRS2 (PCI2)                             PCI_IO_ADRS2CPU_PCI_IO_SIZE          -                        - PCI_IO_SIZE                         -                        -*************************************************//* PCI based addresses */#define PCI_LAW_BASE             0x50000000       /* PCI LAW window */#define PCI_LAW_SIZE             0x10000000       /* PCI LAW size   */#define PCI_MEM_SIZE             0x04000000        /* 64 MB */#define PCI_MEMIO_SIZE           0x04000000        /* 64 MB */#define PCI_IO_SIZE              0x04000000        /* 64 MB */#define PCI_MEM_ADRS             (PCI_LAW_BASE)                     #define PCI_MEMIO_ADRS           (PCI_MEM_ADRS   + PCI_MEM_SIZE)    #define PCI_IO_ADRS              (PCI_MEMIO_ADRS + PCI_MEMIO_SIZE)  #ifdef INCLUDE_CDS85XX_SECONDARY_PCI#define PCI2_LAW_BASE            0x60000000       /* PCI LAW window */#define PCI2_LAW_SIZE            0x10000000       /* PCI LAW size   */#define PCI_MEM_ADRS2            (PCI2_LAW_BASE)                     #define PCI_MEMIO_ADRS2          (PCI_MEM_ADRS2   + PCI_MEM_SIZE)    #define PCI_IO_ADRS2             (PCI_MEMIO_ADRS2 + PCI_MEMIO_SIZE)  #endif /* INCLUDE_CDS85XX_SECONDARY_PCI */#if (PCI_LAW_SIZE == 0x10000000)#define  PCI_LAW_WIN_SZ          LAWAR_SIZE_256MB#endif#if (PCI2_LAW_SIZE == 0x10000000)#define  PCI2_LAW_WIN_SZ         LAWAR_SIZE_256MB#endif#define PCI_MMU_TLB_SZ           _MMU_TLB_SZ_256M#if (PCI_MEM_SIZE == 0x04000000)#define PCI_MEM_SIZE_MASK        PCI_ATTR_WS_64M#endif #if (PCI_MEMIO_SIZE == 0x04000000)#define PCI_MEMIO_SIZE_MASK      PCI_ATTR_WS_64M#endif#if (PCI_IO_SIZE == 0x04000000)#define PCI_IO_SIZE_MASK         PCI_ATTR_WS_64M#endif#define PCI_BRIDGE_PIMMR_BASE_ADRS  0x40000000/* just 1:1 mapping */ /* PCI 1 */#define CPU_PCI_MEM_ADRS          PCI_MEM_ADRS#define CPU_PCI_MEMIO_ADRS        PCI_MEMIO_ADRS#define CPU_PCI_IO_ADRS           PCI_IO_ADRS/* PCI 2 */#define CPU_PCI_MEM_ADRS2         PCI_MEM_ADRS2#define CPU_PCI_MEMIO_ADRS2       PCI_MEMIO_ADRS2#define CPU_PCI_IO_ADRS2          PCI_IO_ADRS2#define CPU_PCI_MEM_SIZE          PCI_MEM_SIZE #define CPU_PCI_MEMIO_SIZE        PCI_MEMIO_SIZE #define CPU_PCI_IO_SIZE           PCI_IO_SIZE/* CPU from PCI bus */#define PCI_MSTR_MEM_BUS           0x00000000#define PCI_MSTR_MEM_SIZE          0x40000000 /* 1G *//* CPU Address that is visible from PCI */#define PCI_LOCAL_MEM_BUS         0x00000000#define PCI_LOCAL_MEM_SIZE        PCI_MSTR_MEM_SIZE#define PCI_LOCAL_MEM_SIZE_MASK   PCI_ATTR_WS_1G#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 */#ifdef INCLUDE_PCI/* Intel 8254x support */#undef INCLUDE_GEI8254X_END#ifdef INCLUDE_GEI8254X_END #define INCLUDE_PRIMARY_GEI_END #undef INCLUDE_SECONDARY_GEI_END  #ifndef INCLUDE_END     #define INCLUDE_END  #endif  /* INCLUDE_END */                  #endif /* INCLUDE_GEI8254X_END */#endif /* INCLUDE_PCI *//* * Set the Carrier Card's SW2[12]=00 for the following configuration, * the bootrom would be in the last 1 MB of flash0, and UBOOT would still  * be in the flash 1. */  #define FLASH_WINDOW_SIZE               0x00800000 #define CDS85XX_FLASH_RESERVED_SIZE     0x00100000#ifdef INCLUDE_TFFS/* Second flash for TFFS support */#undef  INCLUDE_CDS85XX_SECOND_TFFS_FLASH#endif /* INCLUDE_TFFS *//* LBC CS0 - flash 0 - default for bootrom */ #define FLASH_BASE_ADRS                 0xff800000#define FLASH_ADRS_MASK                 0xff800000/* LBC CS1 - flash 1 - default for UBOOT */ #define FLASH1_BASE_ADRS                0xff000000#define FLASH1_ADRS_MASK                0xff800000/* LBC CS2 - SDRAM */#undef INCLUDE_LBC_SDRAM/* 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      0xf8000000     /* 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/* LBC CS3 - nvram, cadmus, ATM phy */#define INCLUDE_LBC_CS3#ifdef INCLUDE_LBC_CS3#define INCLUDE_NV_RAM#define LBC_CS3_LOCAL_ADRS       0xf7000000#define LBC_CS3_LOCAL_SIZE_MASK  0xff000000#endif/* NVRAM configuration */#ifdef  INCLUDE_NV_RAM#   define NV_RAM_ADRS          LBC_CS3_LOCAL_ADRS #   undef  NV_RAM_SIZE#   define NV_RAM_SIZE          (0x2000 - 0x10)  /* 8KB - 16 */#   define NV_RAM_INTRVL        1#   undef  NV_BOOT_OFFSET#   define NV_BOOT_OFFSET       0#   define NV_MAC_ADRS_OFFSET   0x200#endif  /* INCLUDE_NV_RAM *//* Memory addresses */#define INCLUDE_DDR_SDRAM/* NOTE this should match the LAWAR SIZE in romInit for the chosen SDRAM */#define LOCAL_MEM_SIZE          0x10000000      /* 256/512 Mbyte memory available */#define LOCAL_MEM_LOCAL_ADRS    0x00000000      /* Base of RAM */#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)#ifdef INCLUDE_MMU_BASIC#define INCLUDE_AIM_MMU_CONFIG#define INCLUDE_MMU_OPTIMIZE #define INCLUDE_AIM_MMU_SHOW#define INCLUDE_AIM_MMU_MEM_POOL_CONFIG/*  * The following parameters are to configure initial memory usage for  * page table and region tables and in event of running out the increment  * of memory allocation and is specified as a number of MMU pages (4KByte * blocks).  */#define AIM_MMU_INIT_PT_NUM 0x40#define AIM_MMU_INIT_PT_INCR 0x20#define AIM_MMU_INIT_RT_NUM 0x10#define AIM_MMU_INIT_RT_INCR 0x10/* This write protects the page tables */#define INCLUDE_AIM_MMU_PT_PROTECTION/*  * INCLUDE_LOCK_TEXT_SECTION Requires use of CAM entries which can  * possibly be already used in sysStaticTlbDesc. Also the larger the  * page size that can be used the less CAM entries required so aligning  * RAM_LOW_ADRS on a large page size boundary is usually necessary. * Locking the text section should increase performance because no  * Instruction TLB misses are taken within the text section. */#define INCLUDE_LOCK_TEXT_SECTION     #undef INCLUDE_PAGE_SIZE_OPTIMIZATION /* Not available for 85XX */#endif /* INCLUDE_MMU_BASIC *//* * Default power management mode - selected via vxPowerModeSet() in * sysHwInit(). */#define DEFAULT_POWER_MGT_MODE  VX_POWER_MODE_DISABLE#define INCLUDE_CTORS_DTORS/* Using software FP support. Athough task based 32 bit HW_FP is allowed  * no optimised libraries are available. The kernel doesn't execute any hw  * fp instructions */#undef  INCLUDE_HW_FP#undef  INCLUDE_PPC_FPU#define INCLUDE_SW_FP/* * The constants ROM_XXX_ADRS, ROM_SIZE, and RAM_XXX_ADRS are defined * in both config.h and Makefile.  All definitions for these constants * must be identical. */ #ifndef RAM_LOW_ADRS#define	RAM_LOW_ADRS		0x00100000#endif  /* RAM_LOW_ADRS */#ifndef RAM_HIGH_ADRS#define	RAM_HIGH_ADRS		0x00e00000#endif  /* RAM_HIGH_ADRS */#define ROM_TEXT_ADRS 0xFFF00100#define ROM_BASE_ADRS 0xFFF00000#define ROM_SIZE      0x00100000#define USER_RESERVED_MEM 0x000000#ifdef __cplusplus    }#endif /* __cplusplus */#endif  /* INCconfigh */#if defined(PRJ_BUILD)    #include "prjParams.h"#endif /* PRJ_BUILD */

⌨️ 快捷键说明

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