📄 mem.h
字号:
#endif#if defined(L3_100MHZ)# define MICRON_SDRC_ACTIM_CTRLA_0 MICRON_V_ACTIMA_100# define MICRON_SDRC_ACTIM_CTRLB_0 MICRON_V_ACTIMB_100#elif defined(L3_133MHZ)# define MICRON_SDRC_ACTIM_CTRLA_0 MICRON_V_ACTIMA_133# define MICRON_SDRC_ACTIM_CTRLB_0 MICRON_V_ACTIMB_133#elif defined(L3_165MHZ)# define MICRON_SDRC_ACTIM_CTRLA_0 MICRON_V_ACTIMA_165# define MICRON_SDRC_ACTIM_CTRLB_0 MICRON_V_ACTIMB_165#endif#if defined(L3_100MHZ)# define INFINEON_SDRC_ACTIM_CTRLA_0 INFINEON_V_ACTIMA_100# define INFINEON_SDRC_ACTIM_CTRLB_0 INFINEON_V_ACTIMB_100#elif defined(L3_133MHZ)# define INFINEON_SDRC_ACTIM_CTRLA_0 INFINEON_V_ACTIMA_133# define INFINEON_SDRC_ACTIM_CTRLB_0 INFINEON_V_ACTIMB_133#elif defined(L3_165MHZ)# define INFINEON_SDRC_ACTIM_CTRLA_0 INFINEON_V_ACTIMA_165# define INFINEON_SDRC_ACTIM_CTRLB_0 INFINEON_V_ACTIMB_165#endif#if defined(L3_100MHZ)# define SDP_SDRC_RFR_CTRL SDP_3430_SDRC_RFR_CTRL_100MHz#elif defined(L3_133MHZ)# define SDP_SDRC_RFR_CTRL SDP_3430_SDRC_RFR_CTRL_133MHz#elif defined(L3_165MHZ)# define SDP_SDRC_RFR_CTRL SDP_3430_SDRC_RFR_CTRL_165MHz#endif/* * GPMC settings - * Definitions is as per the following format * # define <PART>_GPMC_CONFIG<x> <value> * Where: * PART is the part name e.g. STNOR - Intel Strata Flash * x is GPMC config registers from 1 to 6 (there will be 6 macros) * Value is corresponding value * * For every valid PRCM configuration there should be only one definition of * the same. if values are independent of the board, this definition will be * present in this file if values are dependent on the board, then this should * go into corresponding mem-boardName.h file * * Currently valid part Names are (PART): * STNOR - Intel Strata Flash * SMNAND - Samsung NAND * M_NAND - Micron Large page x16 NAND * MPDB - H4 MPDB board * SBNOR - Sibley NOR * ONNAND - Samsung One NAND * * include/configs/file.h contains the defn - for all CS we are interested * #define OMAP34XX_GPMC_CSx PART * #define OMAP34XX_GPMC_CSx_SIZE Size * #define OMAP34XX_GPMC_CSx_MAP Map * Where: * x - CS number * PART - Part Name as defined above * SIZE - how big is the mapping to be * GPMC_SIZE_128M - 0x8 * GPMC_SIZE_64M - 0xC * GPMC_SIZE_32M - 0xE * GPMC_SIZE_16M - 0xF * MAP - Map this CS to which address(GPMC address space)- Absolute address * >>24 before being used. */#define GPMC_SIZE_128M 0x8#define GPMC_SIZE_64M 0xC#define GPMC_SIZE_32M 0xE#define GPMC_SIZE_16M 0xF#if defined(L3_100MHZ)# define SMNAND_GPMC_CONFIG1 0x0# define SMNAND_GPMC_CONFIG2 0x00141400# define SMNAND_GPMC_CONFIG3 0x00141400# define SMNAND_GPMC_CONFIG4 0x0F010F01# define SMNAND_GPMC_CONFIG5 0x010C1414# define SMNAND_GPMC_CONFIG6 0x00000A80# define M_NAND_GPMC_CONFIG1 0x00001800# define M_NAND_GPMC_CONFIG2 SMNAND_GPMC_CONFIG2# define M_NAND_GPMC_CONFIG3 SMNAND_GPMC_CONFIG3# define M_NAND_GPMC_CONFIG4 SMNAND_GPMC_CONFIG4# define M_NAND_GPMC_CONFIG5 SMNAND_GPMC_CONFIG5# define M_NAND_GPMC_CONFIG6 SMNAND_GPMC_CONFIG6# define STNOR_GPMC_CONFIG1 0x3# define STNOR_GPMC_CONFIG2 0x000f0f01# define STNOR_GPMC_CONFIG3 0x00050502# define STNOR_GPMC_CONFIG4 0x0C060C06# define STNOR_GPMC_CONFIG5 0x01131F1F# define STNOR_GPMC_CONFIG6 0x0 /* 0? */# define MPDB_GPMC_CONFIG1 0x00011000# define MPDB_GPMC_CONFIG2 0x001F1F00# define MPDB_GPMC_CONFIG3 0x00080802# define MPDB_GPMC_CONFIG4 0x1C091C09# define MPDB_GPMC_CONFIG5 0x031A1F1F# define MPDB_GPMC_CONFIG6 0x000003C2#endif#if defined(L3_133MHZ)# define SMNAND_GPMC_CONFIG1 0x00000800# define SMNAND_GPMC_CONFIG2 0x00141400# define SMNAND_GPMC_CONFIG3 0x00141400# define SMNAND_GPMC_CONFIG4 0x0F010F01# define SMNAND_GPMC_CONFIG5 0x010C1414# define SMNAND_GPMC_CONFIG6 0x00000A80# define SMNAND_GPMC_CONFIG7 0x00000C44# define M_NAND_GPMC_CONFIG1 0x00001800# define M_NAND_GPMC_CONFIG2 SMNAND_GPMC_CONFIG2# define M_NAND_GPMC_CONFIG3 SMNAND_GPMC_CONFIG3# define M_NAND_GPMC_CONFIG4 SMNAND_GPMC_CONFIG4# define M_NAND_GPMC_CONFIG5 SMNAND_GPMC_CONFIG5# define M_NAND_GPMC_CONFIG6 SMNAND_GPMC_CONFIG6# define M_NAND_GPMC_CONFIG7 SMNAND_GPMC_CONFIG7# define STNOR_GPMC_CONFIG1 0x1203# define STNOR_GPMC_CONFIG2 0x00151501# define STNOR_GPMC_CONFIG3 0x00060602# define STNOR_GPMC_CONFIG4 0x10081008# define STNOR_GPMC_CONFIG5 0x01131F1F# define STNOR_GPMC_CONFIG6 0x000004c4# define SIBNOR_GPMC_CONFIG1 0x1200# define SIBNOR_GPMC_CONFIG2 0x001f1f00# define SIBNOR_GPMC_CONFIG3 0x00080802# define SIBNOR_GPMC_CONFIG4 0x1C091C09# define SIBNOR_GPMC_CONFIG5 0x01131F1F# define SIBNOR_GPMC_CONFIG6 0x000003C2# define MPDB_GPMC_CONFIG1 0x00011000# define MPDB_GPMC_CONFIG2 0x001f1f01# define MPDB_GPMC_CONFIG3 0x00080803# define MPDB_GPMC_CONFIG4 0x1C091C09# define MPDB_GPMC_CONFIG5 0x041f1F1F# define MPDB_GPMC_CONFIG6 0x000004C4# define P2_GPMC_CONFIG1 0x0# define P2_GPMC_CONFIG2 0x0# define P2_GPMC_CONFIG3 0x0# define P2_GPMC_CONFIG4 0x0# define P2_GPMC_CONFIG5 0x0# define P2_GPMC_CONFIG6 0x0# define ONENAND_GPMC_CONFIG1 0x00001200# define ONENAND_GPMC_CONFIG2 0x000c0c01# define ONENAND_GPMC_CONFIG3 0x00030301# define ONENAND_GPMC_CONFIG4 0x0c040c04# define ONENAND_GPMC_CONFIG5 0x010C1010# define ONENAND_GPMC_CONFIG6 0x00000000#endif /* endif L3_133MHZ */#if defined (L3_165MHZ)# define SMNAND_GPMC_CONFIG1 0x00000800# define SMNAND_GPMC_CONFIG2 0x00141400# define SMNAND_GPMC_CONFIG3 0x00141400# define SMNAND_GPMC_CONFIG4 0x0F010F01# define SMNAND_GPMC_CONFIG5 0x010C1414# define SMNAND_GPMC_CONFIG6 0x1F0F0A80# define SMNAND_GPMC_CONFIG7 0x00000C44# define M_NAND_GPMC_CONFIG1 0x00001800# define M_NAND_GPMC_CONFIG2 SMNAND_GPMC_CONFIG2# define M_NAND_GPMC_CONFIG3 SMNAND_GPMC_CONFIG3# define M_NAND_GPMC_CONFIG4 SMNAND_GPMC_CONFIG4# define M_NAND_GPMC_CONFIG5 SMNAND_GPMC_CONFIG5# define M_NAND_GPMC_CONFIG6 SMNAND_GPMC_CONFIG6# define M_NAND_GPMC_CONFIG7 SMNAND_GPMC_CONFIG7# define STNOR_GPMC_CONFIG1 0x3# define STNOR_GPMC_CONFIG2 0x00151501# define STNOR_GPMC_CONFIG3 0x00060602# define STNOR_GPMC_CONFIG4 0x11091109# define STNOR_GPMC_CONFIG5 0x01141F1F# define STNOR_GPMC_CONFIG6 0x000004c4# define SIBNOR_GPMC_CONFIG1 0x1200# define SIBNOR_GPMC_CONFIG2 0x001f1f00# define SIBNOR_GPMC_CONFIG3 0x00080802# define SIBNOR_GPMC_CONFIG4 0x1C091C09# define SIBNOR_GPMC_CONFIG5 0x01131F1F# define SIBNOR_GPMC_CONFIG6 0x1F0F03C2# define SDPV2_MPDB_GPMC_CONFIG1 0x00611200# define SDPV2_MPDB_GPMC_CONFIG2 0x001F1F01# define SDPV2_MPDB_GPMC_CONFIG3 0x00080803# define SDPV2_MPDB_GPMC_CONFIG4 0x1D091D09# define SDPV2_MPDB_GPMC_CONFIG5 0x041D1F1F# define SDPV2_MPDB_GPMC_CONFIG6 0x1D0904C4# define MPDB_GPMC_CONFIG1 0x00011000# define MPDB_GPMC_CONFIG2 0x001f1f01# define MPDB_GPMC_CONFIG3 0x00080803# define MPDB_GPMC_CONFIG4 0x1c0b1c0a# define MPDB_GPMC_CONFIG5 0x041f1F1F# define MPDB_GPMC_CONFIG6 0x1F0F04C4# define P2_GPMC_CONFIG1 0x0# define P2_GPMC_CONFIG2 0x0# define P2_GPMC_CONFIG3 0x0# define P2_GPMC_CONFIG4 0x0# define P2_GPMC_CONFIG5 0x0# define P2_GPMC_CONFIG6 0x0# define ONENAND_GPMC_CONFIG1 0x00001200# define ONENAND_GPMC_CONFIG2 0x000F0F01# define ONENAND_GPMC_CONFIG3 0x00030301# define ONENAND_GPMC_CONFIG4 0x0F040F04# define ONENAND_GPMC_CONFIG5 0x010F1010# define ONENAND_GPMC_CONFIG6 0x1F060000#endif/* max number of GPMC Chip Selects */#define GPMC_MAX_CS 8/* max number of GPMC regs */#define GPMC_MAX_REG 7#define PISMO1_NOR 1#define PISMO1_NAND 2#define PISMO2_CS0 3#define PISMO2_CS1 4#define PISMO1_ONENAND 5#define POP_ONENAND 5#define DBG_MPDB 6#define PISMO2_NAND_CS0 7#define PISMO2_NAND_CS1 8/* make it readable for the gpmc_init */#define PISMO1_NOR_BASE FLASH_BASE#define PISMO1_NAND_BASE NAND_BASE#define PISMO2_CS0_BASE PISMO2_MAP1#define PISMO1_ONEN_BASE ONENAND_MAP#define POP_ONEN_BASE ONENAND_MAP#define DBG_MPDB_BASE DEBUG_BASE#endif /* endif _OMAP34XX_MEM_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -