mpc83xx.h
来自「uboot详细解读可用启动引导LINUX2.6内核」· C头文件 代码 · 共 1,251 行 · 第 1/3 页
H
1,251 行
#define HRCWL_CE_PLL_VCO_DIV_4 0x00000000#define HRCWL_CE_PLL_VCO_DIV_8 0x00000040#define HRCWL_CE_PLL_VCO_DIV_2 0x00000080#define HRCWL_CEPDF 0x00000020#define HRCWL_CEPDF_SHIFT 5#define HRCWL_CE_PLL_DIV_1X1 0x00000000#define HRCWL_CE_PLL_DIV_2X1 0x00000020#define HRCWL_CEPMF 0x0000001F#define HRCWL_CEPMF_SHIFT 0#define HRCWL_CE_TO_PLL_1X16_ 0x00000000#define HRCWL_CE_TO_PLL_1X2 0x00000002#define HRCWL_CE_TO_PLL_1X3 0x00000003#define HRCWL_CE_TO_PLL_1X4 0x00000004#define HRCWL_CE_TO_PLL_1X5 0x00000005#define HRCWL_CE_TO_PLL_1X6 0x00000006#define HRCWL_CE_TO_PLL_1X7 0x00000007#define HRCWL_CE_TO_PLL_1X8 0x00000008#define HRCWL_CE_TO_PLL_1X9 0x00000009#define HRCWL_CE_TO_PLL_1X10 0x0000000A#define HRCWL_CE_TO_PLL_1X11 0x0000000B#define HRCWL_CE_TO_PLL_1X12 0x0000000C#define HRCWL_CE_TO_PLL_1X13 0x0000000D#define HRCWL_CE_TO_PLL_1X14 0x0000000E#define HRCWL_CE_TO_PLL_1X15 0x0000000F#define HRCWL_CE_TO_PLL_1X16 0x00000010#define HRCWL_CE_TO_PLL_1X17 0x00000011#define HRCWL_CE_TO_PLL_1X18 0x00000012#define HRCWL_CE_TO_PLL_1X19 0x00000013#define HRCWL_CE_TO_PLL_1X20 0x00000014#define HRCWL_CE_TO_PLL_1X21 0x00000015#define HRCWL_CE_TO_PLL_1X22 0x00000016#define HRCWL_CE_TO_PLL_1X23 0x00000017#define HRCWL_CE_TO_PLL_1X24 0x00000018#define HRCWL_CE_TO_PLL_1X25 0x00000019#define HRCWL_CE_TO_PLL_1X26 0x0000001A#define HRCWL_CE_TO_PLL_1X27 0x0000001B#define HRCWL_CE_TO_PLL_1X28 0x0000001C#define HRCWL_CE_TO_PLL_1X29 0x0000001D#define HRCWL_CE_TO_PLL_1X30 0x0000001E#define HRCWL_CE_TO_PLL_1X31 0x0000001F#elif defined(CONFIG_MPC8315)#define HRCWL_SVCOD 0x30000000#define HRCWL_SVCOD_SHIFT 28#define HRCWL_SVCOD_DIV_2 0x00000000#define HRCWL_SVCOD_DIV_4 0x10000000#define HRCWL_SVCOD_DIV_8 0x20000000#define HRCWL_SVCOD_DIV_1 0x30000000#elif defined(CONFIG_MPC837X)#define HRCWL_SVCOD 0x30000000#define HRCWL_SVCOD_SHIFT 28#define HRCWL_SVCOD_DIV_4 0x00000000#define HRCWL_SVCOD_DIV_8 0x10000000#define HRCWL_SVCOD_DIV_2 0x20000000#define HRCWL_SVCOD_DIV_1 0x30000000#endif/* HRCWH - Hardware Reset Configuration Word High */#define HRCWH_PCI_HOST 0x80000000#define HRCWH_PCI_HOST_SHIFT 31#define HRCWH_PCI_AGENT 0x00000000#if defined(CONFIG_MPC834X)#define HRCWH_32_BIT_PCI 0x00000000#define HRCWH_64_BIT_PCI 0x40000000#endif#define HRCWH_PCI1_ARBITER_DISABLE 0x00000000#define HRCWH_PCI1_ARBITER_ENABLE 0x20000000#define HRCWH_PCI_ARBITER_DISABLE 0x00000000#define HRCWH_PCI_ARBITER_ENABLE 0x20000000#if defined(CONFIG_MPC834X)#define HRCWH_PCI2_ARBITER_DISABLE 0x00000000#define HRCWH_PCI2_ARBITER_ENABLE 0x10000000#elif defined(CONFIG_MPC8360)#define HRCWH_PCICKDRV_DISABLE 0x00000000#define HRCWH_PCICKDRV_ENABLE 0x10000000#endif#define HRCWH_CORE_DISABLE 0x08000000#define HRCWH_CORE_ENABLE 0x00000000#define HRCWH_FROM_0X00000100 0x00000000#define HRCWH_FROM_0XFFF00100 0x04000000#define HRCWH_BOOTSEQ_DISABLE 0x00000000#define HRCWH_BOOTSEQ_NORMAL 0x01000000#define HRCWH_BOOTSEQ_EXTENDED 0x02000000#define HRCWH_SW_WATCHDOG_DISABLE 0x00000000#define HRCWH_SW_WATCHDOG_ENABLE 0x00800000#define HRCWH_ROM_LOC_DDR_SDRAM 0x00000000#define HRCWH_ROM_LOC_PCI1 0x00100000#if defined(CONFIG_MPC834X)#define HRCWH_ROM_LOC_PCI2 0x00200000#endif#if defined(CONIFG_MPC837X)#define HRCWH_ROM_LOC_ON_CHIP_ROM 0x00300000#endif#define HRCWH_ROM_LOC_LOCAL_8BIT 0x00500000#define HRCWH_ROM_LOC_LOCAL_16BIT 0x00600000#define HRCWH_ROM_LOC_LOCAL_32BIT 0x00700000#if defined(CONFIG_MPC831X) || defined(CONFIG_MPC837X)#define HRCWH_ROM_LOC_NAND_SP_8BIT 0x00100000#define HRCWH_ROM_LOC_NAND_SP_16BIT 0x00200000#define HRCWH_ROM_LOC_NAND_LP_8BIT 0x00500000#define HRCWH_ROM_LOC_NAND_LP_16BIT 0x00600000#define HRCWH_RL_EXT_LEGACY 0x00000000#define HRCWH_RL_EXT_NAND 0x00040000#define HRCWH_TSEC1M_IN_MII 0x00000000#define HRCWH_TSEC1M_IN_RMII 0x00002000#define HRCWH_TSEC1M_IN_RGMII 0x00006000#define HRCWH_TSEC1M_IN_RTBI 0x0000A000#define HRCWH_TSEC1M_IN_SGMII 0x0000C000#define HRCWH_TSEC2M_IN_MII 0x00000000#define HRCWH_TSEC2M_IN_RMII 0x00000400#define HRCWH_TSEC2M_IN_RGMII 0x00000C00#define HRCWH_TSEC2M_IN_RTBI 0x00001400#define HRCWH_TSEC2M_IN_SGMII 0x00001800#endif#if defined(CONFIG_MPC834X)#define HRCWH_TSEC1M_IN_RGMII 0x00000000#define HRCWH_TSEC1M_IN_RTBI 0x00004000#define HRCWH_TSEC1M_IN_GMII 0x00008000#define HRCWH_TSEC1M_IN_TBI 0x0000C000#define HRCWH_TSEC2M_IN_RGMII 0x00000000#define HRCWH_TSEC2M_IN_RTBI 0x00001000#define HRCWH_TSEC2M_IN_GMII 0x00002000#define HRCWH_TSEC2M_IN_TBI 0x00003000#endif#if defined(CONFIG_MPC8360)#define HRCWH_SECONDARY_DDR_DISABLE 0x00000000#define HRCWH_SECONDARY_DDR_ENABLE 0x00000010#endif#define HRCWH_BIG_ENDIAN 0x00000000#define HRCWH_LITTLE_ENDIAN 0x00000008#define HRCWH_LALE_NORMAL 0x00000000#define HRCWH_LALE_EARLY 0x00000004#define HRCWH_LDP_SET 0x00000000#define HRCWH_LDP_CLEAR 0x00000002/* RSR - Reset Status Register */#if defined(CONFIG_MPC831X) || defined(CONFIG_MPC837X)#define RSR_RSTSRC 0xF0000000 /* Reset source */#define RSR_RSTSRC_SHIFT 28#else#define RSR_RSTSRC 0xE0000000 /* Reset source */#define RSR_RSTSRC_SHIFT 29#endif#define RSR_BSF 0x00010000 /* Boot seq. fail */#define RSR_BSF_SHIFT 16#define RSR_SWSR 0x00002000 /* software soft reset */#define RSR_SWSR_SHIFT 13#define RSR_SWHR 0x00001000 /* software hard reset */#define RSR_SWHR_SHIFT 12#define RSR_JHRS 0x00000200 /* jtag hreset */#define RSR_JHRS_SHIFT 9#define RSR_JSRS 0x00000100 /* jtag sreset status */#define RSR_JSRS_SHIFT 8#define RSR_CSHR 0x00000010 /* checkstop reset status */#define RSR_CSHR_SHIFT 4#define RSR_SWRS 0x00000008 /* software watchdog reset status */#define RSR_SWRS_SHIFT 3#define RSR_BMRS 0x00000004 /* bus monitop reset status */#define RSR_BMRS_SHIFT 2#define RSR_SRS 0x00000002 /* soft reset status */#define RSR_SRS_SHIFT 1#define RSR_HRS 0x00000001 /* hard reset status */#define RSR_HRS_SHIFT 0#define RSR_RES ~(RSR_RSTSRC | RSR_BSF | RSR_SWSR | RSR_SWHR |\ RSR_JHRS | RSR_JSRS | RSR_CSHR | RSR_SWRS |\ RSR_BMRS | RSR_SRS | RSR_HRS)/* RMR - Reset Mode Register */#define RMR_CSRE 0x00000001 /* checkstop reset enable */#define RMR_CSRE_SHIFT 0#define RMR_RES ~(RMR_CSRE)/* RCR - Reset Control Register */#define RCR_SWHR 0x00000002 /* software hard reset */#define RCR_SWSR 0x00000001 /* software soft reset */#define RCR_RES ~(RCR_SWHR | RCR_SWSR)/* RCER - Reset Control Enable Register */#define RCER_CRE 0x00000001 /* software hard reset */#define RCER_RES ~(RCER_CRE)/* SPMR - System PLL Mode Register */#define SPMR_LBIUCM 0x80000000#define SPMR_DDRCM 0x40000000#define SPMR_SPMF 0x0F000000#define SPMR_CKID 0x00800000#define SPMR_CKID_SHIFT 23#define SPMR_COREPLL 0x007F0000#define SPMR_CEVCOD 0x000000C0#define SPMR_CEPDF 0x00000020#define SPMR_CEPMF 0x0000001F/* OCCR - Output Clock Control Register */#define OCCR_PCICOE0 0x80000000#define OCCR_PCICOE1 0x40000000#define OCCR_PCICOE2 0x20000000#define OCCR_PCICOE3 0x10000000#define OCCR_PCICOE4 0x08000000#define OCCR_PCICOE5 0x04000000#define OCCR_PCICOE6 0x02000000#define OCCR_PCICOE7 0x01000000#define OCCR_PCICD0 0x00800000#define OCCR_PCICD1 0x00400000#define OCCR_PCICD2 0x00200000#define OCCR_PCICD3 0x00100000#define OCCR_PCICD4 0x00080000#define OCCR_PCICD5 0x00040000#define OCCR_PCICD6 0x00020000#define OCCR_PCICD7 0x00010000#define OCCR_PCI1CR 0x00000002#define OCCR_PCI2CR 0x00000001#define OCCR_PCICR OCCR_PCI1CR/* SCCR - System Clock Control Register */#define SCCR_ENCCM 0x03000000#define SCCR_ENCCM_SHIFT 24#define SCCR_ENCCM_0 0x00000000#define SCCR_ENCCM_1 0x01000000#define SCCR_ENCCM_2 0x02000000#define SCCR_ENCCM_3 0x03000000#define SCCR_PCICM 0x00010000#define SCCR_PCICM_SHIFT 16#if defined(CONFIG_MPC834X)/* SCCR bits - MPC834x specific */#define SCCR_TSEC1CM 0xc0000000#define SCCR_TSEC1CM_SHIFT 30#define SCCR_TSEC1CM_0 0x00000000#define SCCR_TSEC1CM_1 0x40000000#define SCCR_TSEC1CM_2 0x80000000#define SCCR_TSEC1CM_3 0xC0000000#define SCCR_TSEC2CM 0x30000000#define SCCR_TSEC2CM_SHIFT 28#define SCCR_TSEC2CM_0 0x00000000#define SCCR_TSEC2CM_1 0x10000000#define SCCR_TSEC2CM_2 0x20000000#define SCCR_TSEC2CM_3 0x30000000/* The MPH must have the same clock ratio as DR, unless its clock disabled */#define SCCR_USBMPHCM 0x00c00000#define SCCR_USBMPHCM_SHIFT 22#define SCCR_USBDRCM 0x00300000#define SCCR_USBDRCM_SHIFT 20#define SCCR_USBCM 0x00f00000#define SCCR_USBCM_SHIFT 20#define SCCR_USBCM_0 0x00000000#define SCCR_USBCM_1 0x00500000#define SCCR_USBCM_2 0x00A00000#define SCCR_USBCM_3 0x00F00000#elif defined(CONFIG_MPC8313)/* TSEC1 bits are for TSEC2 as well */#define SCCR_TSEC1CM 0xc0000000#define SCCR_TSEC1CM_SHIFT 30#define SCCR_TSEC1CM_0 0x00000000#define SCCR_TSEC1CM_1 0x40000000#define SCCR_TSEC1CM_2 0x80000000#define SCCR_TSEC1CM_3 0xC0000000#define SCCR_TSEC1ON 0x20000000#define SCCR_TSEC1ON_SHIFT 29#define SCCR_TSEC2ON 0x10000000#define SCCR_TSEC2ON_SHIFT 28#define SCCR_USBDRCM 0x00300000#define SCCR_USBDRCM_SHIFT 20#define SCCR_USBDRCM_0 0x00000000#define SCCR_USBDRCM_1 0x00100000#define SCCR_USBDRCM_2 0x00200000#define SCCR_USBDRCM_3 0x00300000#elif defined(CONFIG_MPC8315)/* SCCR bits - MPC8315 specific */#define SCCR_TSEC1CM 0xc0000000#define SCCR_TSEC1CM_SHIFT 30#define SCCR_TSEC1CM_0 0x00000000#define SCCR_TSEC1CM_1 0x40000000#define SCCR_TSEC1CM_2 0x80000000#define SCCR_TSEC1CM_3 0xC0000000#define SCCR_TSEC2CM 0x30000000#define SCCR_TSEC2CM_SHIFT 28#define SCCR_TSEC2CM_0 0x00000000#define SCCR_TSEC2CM_1 0x10000000#define SCCR_TSEC2CM_2 0x20000000#define SCCR_TSEC2CM_3 0x30000000#define SCCR_USBDRCM 0x00c00000#define SCCR_USBDRCM_SHIFT 22#define SCCR_USBDRCM_0 0x00000000#define SCCR_USBDRCM_1 0x00400000#define SCCR_USBDRCM_2 0x00800000#define SCCR_USBDRCM_3 0x00c00000#define SCCR_PCIEXP1CM 0x00300000#define SCCR_PCIEXP2CM 0x000c0000#define SCCR_SATA1CM 0x00003000#define SCCR_SATA1CM_SHIFT 12#define SCCR_SATACM 0x00003c00#define SCCR_SATACM_SHIFT 10#define SCCR_SATACM_0 0x00000000#define SCCR_SATACM_1 0x00001400#define SCCR_SATACM_2 0x00002800#define SCCR_SATACM_3 0x00003c00#define SCCR_TDMCM 0x00000030#define SCCR_TDMCM_SHIFT 4#define SCCR_TDMCM_0 0x00000000#define SCCR_TDMCM_1 0x00000010#define SCCR_TDMCM_2 0x00000020#define SCCR_TDMCM_3 0x00000030#elif defined(CONFIG_MPC837X)/* SCCR bits - MPC837x specific */#define SCCR_TSEC1CM 0xc0000000#define SCCR_TSEC1CM_SHIFT 30#define SCCR_TSEC1CM_0 0x00000000#define SCCR_TSEC1CM_1 0x40000000#define SCCR_TSEC1CM_2 0x80000000#define SCCR_TSEC1CM_3 0xC0000000#define SCCR_TSEC2CM 0x30000000#define SCCR_TSEC2CM_SHIFT 28#define SCCR_TSEC2CM_0 0x00000000#define SCCR_TSEC2CM_1 0x10000000#define SCCR_TSEC2CM_2 0x20000000#define SCCR_TSEC2CM_3 0x30000000#define SCCR_SDHCCM 0x0c000000#define SCCR_SDHCCM_SHIFT 26#define SCCR_SDHCCM_0 0x00000000#define SCCR_SDHCCM_1 0x04000000#define SCCR_SDHCCM_2 0x08000000#define SCCR_SDHCCM_3 0x0c000000#define SCCR_USBDRCM 0x00c00000#define SCCR_USBDRCM_SHIFT 22#define SCCR_USBDRCM_0 0x00000000#define SCCR_USBDRCM_1 0x00400000#define SCCR_USBDRCM_2 0x00800000#define SCCR_USBDRCM_3 0x00c00000#define SCCR_PCIEXP1CM 0x00300000#define SCCR_PCIEXP1CM_SHIFT 20#define SCCR_PCIEXP1CM_0 0x00000000#define SCCR_PCIEXP1CM_1 0x00100000#define SCCR_PCIEXP1CM_2 0x00200000#define SCCR_PCIEXP1CM_3 0x00300000#define SCCR_PCIEXP2CM 0x000c0000#define SCCR_PCIEXP2CM_SHIFT 18#define SCCR_PCIEXP2CM_0 0x00000000#define SCCR_PCIEXP2CM_1 0x00040000#define SCCR_PCIEXP2CM_2 0x00080000#define SCCR_PCIEXP2CM_3 0x000c0000/* All of the four SATA controllers must have the same clock ratio */#define SCCR_SATA1CM 0x000000c0#define SCCR_SATA1CM_SHIFT 6#define SCCR_SATACM 0x000000ff#define SCCR_SATACM_SHIFT 0#define SCCR_SATACM_0 0x00000000#define SCCR_SATACM_1 0x00000055#define SCCR_SATACM_2 0x000000aa#define SCCR_SATACM_3 0x000000ff#endif/* CSn_BDNS - Chip Select memory Bounds Register */#define CSBNDS_SA 0x00FF0000#define CSBNDS_SA_SHIFT 8#define CSBNDS_EA 0x000000FF#define CSBNDS_EA_SHIFT 24/* CSn_CONFIG - Chip Select Configuration Register */#define CSCONFIG_EN 0x80000000#define CSCONFIG_AP 0x00800000#define CSCONFIG_ODT_WR_ACS 0x00010000#define CSCONFIG_BANK_BIT_3 0x00004000#define CSCONFIG_ROW_BIT 0x00000700#define CSCONFIG_ROW_BIT_12 0x00000000#define CSCONFIG_ROW_BIT_13 0x00000100#define CSCONFIG_ROW_BIT_14 0x00000200#define CSCONFIG_COL_BIT 0x00000007
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?