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

📄 ppc440.h

📁 u-boot-1.1.6 源码包
💻 H
📖 第 1 页 / 共 5 页
字号:
#define DDR0_44	0x2C#endif /*CONFIG_440EPX*//*----------------------------------------------------------------------------- | SDRAM Controller +----------------------------------------------------------------------------*/#define SDRAM_DCR_BASE 0x10#define memcfga	 (SDRAM_DCR_BASE+0x0)	/* Memory configuration address reg */#define memcfgd	 (SDRAM_DCR_BASE+0x1)	/* Memory configuration data reg    *//* values for memcfga register - indirect addressing of these regs	    */#define mem_besr0_clr	0x0000	/* bus error status reg 0 (clr)		    */#define mem_besr0_set	0x0004	/* bus error status reg 0 (set)		    */#define mem_besr1_clr	0x0008	/* bus error status reg 1 (clr)		    */#define mem_besr1_set	0x000c	/* bus error status reg 1 (set)		    */#define mem_bear	0x0010	/* bus error address reg		    */#define mem_mirq_clr	0x0011	/* bus master interrupt (clr)		    */#define mem_mirq_set	0x0012	/* bus master interrupt (set)		    */#define mem_slio	0x0018	/* ddr sdram slave interface options	    */#define mem_cfg0	0x0020	/* ddr sdram options 0			    */#define mem_cfg1	0x0021	/* ddr sdram options 1			    */#define mem_devopt	0x0022	/* ddr sdram device options		    */#define mem_mcsts	0x0024	/* memory controller status		    */#define mem_rtr		0x0030	/* refresh timer register		    */#define mem_pmit	0x0034	/* power management idle timer		    */#define mem_uabba	0x0038	/* plb UABus base address		    */#define mem_b0cr	0x0040	/* ddr sdram bank 0 configuration	    */#define mem_b1cr	0x0044	/* ddr sdram bank 1 configuration	    */#define mem_b2cr	0x0048	/* ddr sdram bank 2 configuration	    */#define mem_b3cr	0x004c	/* ddr sdram bank 3 configuration	    */#define mem_tr0		0x0080	/* sdram timing register 0		    */#define mem_tr1		0x0081	/* sdram timing register 1		    */#define mem_clktr	0x0082	/* ddr clock timing register		    */#define mem_wddctr	0x0083	/* write data/dm/dqs clock timing reg	    */#define mem_dlycal	0x0084	/* delay line calibration register	    */#define mem_eccesr	0x0098	/* ECC error status			    */#ifdef CONFIG_440GX#define sdr_amp		0x0240#define sdr_xpllc	0x01c1#define sdr_xplld	0x01c2#define sdr_xcr		0x01c0#define sdr_sdstp2	0x4001#define sdr_sdstp3	0x4003#endif	/* CONFIG_440GX */#ifdef CONFIG_440SPE#undef sdr_sdstp2#define sdr_sdstp2	0x0022#undef sdr_sdstp3#define sdr_sdstp3	0x0023#define sdr_ddr0	0x00E1#define sdr_uart2	0x0122#define sdr_xcr0	0x01c0/* #define sdr_xcr1	0x01c3	only one PCIX - SG *//* #define sdr_xcr2	0x01c6	only one PCIX - SG */#define sdr_xpllc0	0x01c1#define sdr_xplld0	0x01c2#define sdr_xpllc1	0x01c4	/*notRCW  - SG */#define sdr_xplld1	0x01c5	/*notRCW  - SG */#define sdr_xpllc2	0x01c7	/*notRCW  - SG */#define sdr_xplld2	0x01c8	/*notRCW  - SG */#define sdr_amp0	0x0240#define sdr_amp1	0x0241#define sdr_cust2	0x4004#define sdr_cust3	0x4006#define sdr_sdstp4	0x4001#define sdr_sdstp5	0x4003#define sdr_sdstp6	0x4005#define sdr_sdstp7	0x4007/*----------------------------------------------------------------------------+| Core Configuration/MMU configuration for 440 (CCR1 for 440x5 only).+----------------------------------------------------------------------------*/#define CCR0_PRE		0x40000000#define CCR0_CRPE		0x08000000#define CCR0_DSTG		0x00200000#define CCR0_DAPUIB		0x00100000#define CCR0_DTB		0x00008000#define CCR0_GICBT		0x00004000#define CCR0_GDCBT		0x00002000#define CCR0_FLSTA		0x00000100#define CCR0_ICSLC_MASK		0x0000000C#define CCR0_ICSLT_MASK		0x00000003#define CCR1_TCS_MASK		0x00000080#define CCR1_TCS_INTCLK		0x00000000#define CCR1_TCS_EXTCLK		0x00000080#define MMUCR_SEOA		0x01000000#define MMUCR_U1TE		0x00400000#define MMUCR_U2SWOAE		0x00200000#define MMUCR_DULXE		0x00800000#define MMUCR_IULXE		0x00400000#define MMUCR_STS		0x00100000#define MMUCR_STID_MASK		0x000000FF#define SDR0_CFGADDR		0x00E#define SDR0_CFGDATA		0x00F/****************************************************************************** * PCI express defines ******************************************************************************/#define SDR0_PE0UTLSET1		0x00000300	/* PE0 Upper transaction layer conf setting */#define SDR0_PE0UTLSET2		0x00000301	/* PE0 Upper transaction layer conf setting 2 */#define SDR0_PE0DLPSET		0x00000302	/* PE0 Data link & logical physical configuration */#define SDR0_PE0LOOP		0x00000303	/* PE0 Loopback interface status */#define SDR0_PE0RCSSET		0x00000304	/* PE0 Reset, clock & shutdown setting */#define SDR0_PE0RCSSTS		0x00000305	/* PE0 Reset, clock & shutdown status */#define SDR0_PE0HSSSET1L0	0x00000306	/* PE0 HSS Control Setting 1: Lane 0 */#define SDR0_PE0HSSSET2L0	0x00000307	/* PE0 HSS Control Setting 2: Lane 0 */#define SDR0_PE0HSSSTSL0	0x00000308	/* PE0 HSS Control Status : Lane 0 */#define SDR0_PE0HSSSET1L1	0x00000309	/* PE0 HSS Control Setting 1: Lane 1 */#define SDR0_PE0HSSSET2L1	0x0000030A	/* PE0 HSS Control Setting 2: Lane 1 */#define SDR0_PE0HSSSTSL1	0x0000030B	/* PE0 HSS Control Status : Lane 1 */#define SDR0_PE0HSSSET1L2	0x0000030C	/* PE0 HSS Control Setting 1: Lane 2 */#define SDR0_PE0HSSSET2L2	0x0000030D	/* PE0 HSS Control Setting 2: Lane 2 */#define SDR0_PE0HSSSTSL2	0x0000030E	/* PE0 HSS Control Status : Lane 2 */#define SDR0_PE0HSSSET1L3	0x0000030F	/* PE0 HSS Control Setting 1: Lane 3 */#define SDR0_PE0HSSSET2L3	0x00000310	/* PE0 HSS Control Setting 2: Lane 3 */#define SDR0_PE0HSSSTSL3	0x00000311	/* PE0 HSS Control Status : Lane 3 */#define SDR0_PE0HSSSET1L4	0x00000312	/* PE0 HSS Control Setting 1: Lane 4 */#define SDR0_PE0HSSSET2L4	0x00000313	/* PE0 HSS Control Setting 2: Lane 4 */#define SDR0_PE0HSSSTSL4	0x00000314	/* PE0 HSS Control Status : Lane 4 */#define SDR0_PE0HSSSET1L5	0x00000315	/* PE0 HSS Control Setting 1: Lane 5 */#define SDR0_PE0HSSSET2L5	0x00000316	/* PE0 HSS Control Setting 2: Lane 5 */#define SDR0_PE0HSSSTSL5	0x00000317	/* PE0 HSS Control Status : Lane 5 */#define SDR0_PE0HSSSET1L6	0x00000318	/* PE0 HSS Control Setting 1: Lane 6 */#define SDR0_PE0HSSSET2L6	0x00000319	/* PE0 HSS Control Setting 2: Lane 6 */#define SDR0_PE0HSSSTSL6	0x0000031A	/* PE0 HSS Control Status : Lane 6 */#define SDR0_PE0HSSSET1L7	0x0000031B	/* PE0 HSS Control Setting 1: Lane 7 */#define SDR0_PE0HSSSET2L7	0x0000031C	/* PE0 HSS Control Setting 2: Lane 7 */#define SDR0_PE0HSSSTSL7	0x0000031D	/* PE0 HSS Control Status : Lane 7 */#define SDR0_PE0HSSSEREN	0x0000031E	/* PE0 Serdes Transmitter Enable */#define SDR0_PE0LANEABCD	0x0000031F	/* PE0 Lanes ABCD affectation */#define SDR0_PE0LANEEFGH	0x00000320	/* PE0 Lanes EFGH affectation */#define SDR0_PE1UTLSET1		0x00000340	/* PE1 Upper transaction layer conf setting */#define SDR0_PE1UTLSET2		0x00000341	/* PE1 Upper transaction layer conf setting 2 */#define SDR0_PE1DLPSET		0x00000342	/* PE1 Data link & logical physical configuration */#define SDR0_PE1LOOP		0x00000343	/* PE1 Loopback interface status */#define SDR0_PE1RCSSET		0x00000344	/* PE1 Reset, clock & shutdown setting */#define SDR0_PE1RCSSTS		0x00000345	/* PE1 Reset, clock & shutdown status */#define SDR0_PE1HSSSET1L0	0x00000346	/* PE1 HSS Control Setting 1: Lane 0 */#define SDR0_PE1HSSSET2L0	0x00000347	/* PE1 HSS Control Setting 2: Lane 0 */#define SDR0_PE1HSSSTSL0	0x00000348	/* PE1 HSS Control Status : Lane 0 */#define SDR0_PE1HSSSET1L1	0x00000349	/* PE1 HSS Control Setting 1: Lane 1 */#define SDR0_PE1HSSSET2L1	0x0000034A	/* PE1 HSS Control Setting 2: Lane 1 */#define SDR0_PE1HSSSTSL1	0x0000034B	/* PE1 HSS Control Status : Lane 1 */#define SDR0_PE1HSSSET1L2	0x0000034C	/* PE1 HSS Control Setting 1: Lane 2 */#define SDR0_PE1HSSSET2L2	0x0000034D	/* PE1 HSS Control Setting 2: Lane 2 */#define SDR0_PE1HSSSTSL2	0x0000034E	/* PE1 HSS Control Status : Lane 2 */#define SDR0_PE1HSSSET1L3	0x0000034F	/* PE1 HSS Control Setting 1: Lane 3 */#define SDR0_PE1HSSSET2L3	0x00000350	/* PE1 HSS Control Setting 2: Lane 3 */#define SDR0_PE1HSSSTSL3	0x00000351	/* PE1 HSS Control Status : Lane 3 */#define SDR0_PE1HSSSEREN	0x00000352	/* PE1 Serdes Transmitter Enable */#define SDR0_PE1LANEABCD	0x00000353	/* PE1 Lanes ABCD affectation */#define SDR0_PE2UTLSET1		0x00000370	/* PE2 Upper transaction layer conf setting */#define SDR0_PE2UTLSET2		0x00000371	/* PE2 Upper transaction layer conf setting 2 */#define SDR0_PE2DLPSET		0x00000372	/* PE2 Data link & logical physical configuration */#define SDR0_PE2LOOP		0x00000373	/* PE2 Loopback interface status */#define SDR0_PE2RCSSET		0x00000374	/* PE2 Reset, clock & shutdown setting */#define SDR0_PE2RCSSTS		0x00000375	/* PE2 Reset, clock & shutdown status */#define SDR0_PE2HSSSET1L0	0x00000376	/* PE2 HSS Control Setting 1: Lane 0 */#define SDR0_PE2HSSSET2L0	0x00000377	/* PE2 HSS Control Setting 2: Lane 0 */#define SDR0_PE2HSSSTSL0	0x00000378	/* PE2 HSS Control Status : Lane 0 */#define SDR0_PE2HSSSET1L1	0x00000379	/* PE2 HSS Control Setting 1: Lane 1 */#define SDR0_PE2HSSSET2L1	0x0000037A	/* PE2 HSS Control Setting 2: Lane 1 */#define SDR0_PE2HSSSTSL1	0x0000037B	/* PE2 HSS Control Status : Lane 1 */#define SDR0_PE2HSSSET1L2	0x0000037C	/* PE2 HSS Control Setting 1: Lane 2 */#define SDR0_PE2HSSSET2L2	0x0000037D	/* PE2 HSS Control Setting 2: Lane 2 */#define SDR0_PE2HSSSTSL2	0x0000037E	/* PE2 HSS Control Status : Lane 2 */#define SDR0_PE2HSSSET1L3	0x0000037F	/* PE2 HSS Control Setting 1: Lane 3 */#define SDR0_PE2HSSSET2L3	0x00000380	/* PE2 HSS Control Setting 2: Lane 3 */#define SDR0_PE2HSSSTSL3	0x00000381	/* PE2 HSS Control Status : Lane 3 */#define SDR0_PE2HSSSEREN	0x00000382	/* PE2 Serdes Transmitter Enable */#define SDR0_PE2LANEABCD	0x00000383	/* PE2 Lanes ABCD affectation */#define SDR0_PEGPLLSET1		0x000003A0	/* PE Pll LC Tank Setting1 */#define SDR0_PEGPLLSET2		0x000003A1	/* PE Pll LC Tank Setting2 */#define SDR0_PEGPLLSTS		0x000003A2	/* PE Pll LC Tank Status *//*----------------------------------------------------------------------------+| SDRAM Controller+----------------------------------------------------------------------------*//*-----------------------------------------------------------------------------+| SDRAM DLYCAL Options+-----------------------------------------------------------------------------*/#define SDRAM_DLYCAL_DLCV_MASK		0x000003FC#define SDRAM_DLYCAL_DLCV_ENCODE(x)	(((x)<<2) & SDRAM_DLYCAL_DLCV_MASK)#define SDRAM_DLYCAL_DLCV_DECODE(x)	(((x) & SDRAM_DLYCAL_DLCV_MASK)>>2)/*----------------------------------------------------------------------------+| Memory queue defines+----------------------------------------------------------------------------*//* A REVOIR versus RWC  - SG*/#define SDRAMQ_DCR_BASE	0x040#define SDRAM_R0BAS	(SDRAMQ_DCR_BASE+0x0)	/* rank 0 base address & size  */#define SDRAM_R1BAS	(SDRAMQ_DCR_BASE+0x1)	/* rank 1 base address & size  */#define SDRAM_R2BAS	(SDRAMQ_DCR_BASE+0x2)	/* rank 2 base address & size  */#define SDRAM_R3BAS	(SDRAMQ_DCR_BASE+0x3)	/* rank 3 base address & size  */#define SDRAM_CONF1HB	(SDRAMQ_DCR_BASE+0x5)	/* configuration 1 HB          */#define SDRAM_ERRSTATHB	(SDRAMQ_DCR_BASE+0x7)	/* error status HB             */#define SDRAM_ERRADDUHB	(SDRAMQ_DCR_BASE+0x8)	/* error address upper 32 HB   */#define SDRAM_ERRADDLHB	(SDRAMQ_DCR_BASE+0x9)	/* error address lower 32 HB   */#define SDRAM_PLBADDULL	(SDRAMQ_DCR_BASE+0xA)	/* PLB base address upper 32 LL */#define SDRAM_CONF1LL	(SDRAMQ_DCR_BASE+0xB)	/* configuration 1 LL          */#define SDRAM_ERRSTATLL	(SDRAMQ_DCR_BASE+0xC)	/* error status LL             */#define SDRAM_ERRADDULL	(SDRAMQ_DCR_BASE+0xD)	/* error address upper 32 LL   */#define SDRAM_ERRADDLLL	(SDRAMQ_DCR_BASE+0xE)	/* error address lower 32 LL   */#define SDRAM_CONFPATHB	(SDRAMQ_DCR_BASE+0xF)	/* configuration between paths */#define SDRAM_PLBADDUHB	(SDRAMQ_DCR_BASE+0x10)	/* PLB base address upper 32 LL *//*-----------------------------------------------------------------------------+|  Memory Bank 0-7 configuration+-----------------------------------------------------------------------------*/#define SDRAM_RXBAS_SDBA_MASK		0xFF800000	/* Base address	*/#define SDRAM_RXBAS_SDBA_ENCODE(n)	((((unsigned long)(n))&0xFFE00000)>>2)#define SDRAM_RXBAS_SDBA_DECODE(n)	((((unsigned long)(n))&0xFFE00000)<<2)#define SDRAM_RXBAS_SDSZ_MASK		0x0000FFC0	/* Size		*/#define SDRAM_RXBAS_SDSZ_ENCODE(n)	((((unsigned long)(n))&0x3FF)<<6)#define SDRAM_RXBAS_SDSZ_DECODE(n)	((((unsigned long)(n))>>6)&0x3FF)#define SDRAM_RXBAS_SDSZ_0		0x00000000	/*   0M		*/#define SDRAM_RXBAS_SDSZ_8		0x0000FFC0	/*   8M		*/#define SDRAM_RXBAS_SDSZ_16		0x0000FF80	/*  16M		*/#define SDRAM_RXBAS_SDSZ_32		0x0000FF00	/*  32M		*/#define SDRAM_RXBAS_SDSZ_64		0x0000FE00	/*  64M		*/#define SDRAM_RXBAS_SDSZ_128		0x0000FC00	/* 128M		*/#define SDRAM_RXBAS_SDSZ_256		0x0000F800	/* 256M		*/#define SDRAM_RXBAS_SDSZ_512		0x0000F000	/* 512M		*/#define SDRAM_RXBAS_SDSZ_1024		0x0000E000	/* 1024M	*/#define SDRAM_RXBAS_SDSZ_2048		0x0000C000	/* 2048M	*/#define SDRAM_RXBAS_SDSZ_4096		0x00008000	/* 4096M	*//*----------------------------------------------------------------------------+| Memory controller defines+----------------------------------------------------------------------------*/#define SDRAMC_DCR_BASE	0x010#define SDRAMC_CFGADDR	(SDRAMC_DCR_BASE+0x0)   /* Memory configuration add  */#define SDRAMC_CFGDATA	(SDRAMC_DCR_BASE+0x1)   /* Memory configuration data *//* A REVOIR versus specs 4 bank  - SG*/#define SDRAM_MCSTAT	0x14	/* memory controller status                  */

⌨️ 快捷键说明

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