Blame | Last modification | View Log | Download | RSS feed
ifndef __52xxdraminc ; avoid multiple inclusion__52xxdraminc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File 52XXDRAM.INC *;* *;* Contains SFR and Bit Definitions for ColdFire MCF52xx DRAM Controller *;* *;****************************************************************************SDMR equ MBAR_SDRAM+0 ; Mode/Extended Mode Register (32b)BK cffield SDMR,30,2 ; Bank AddressAD cffield SDMR,18,12 ; AddressCMD cfbit SDMR,16 ; CommandSDCR equ MBAR_SDRAM+4 ; Control Register (32b)MODE_EN cfbit SDCR,31 ; SDRAM Mode Register Programming EnableCKE cfbit SDCR,30 ; Clock EnableDDR_MODE cfbit SDCR,29 ; DDR Mode SelectREF_EN cfbit SDCR,28 ; Refresh EnableADDR_MUX cffield SDCR,24,2 ; Use of Internal Address Bits A[27:24]OE_RULE cfbit SDCR,22 ; Drive Rule SelectionREF_CNT cffield SDCR,16,6 ; Refresh RateMEM_PS cfbit SDCR,13 ; Memory Data Port SizeDQS_OE cffield SDCR,10,2 ; DQS Output EnableIREF cfbit SDCR,2 ; Initiate Refresh CommandIPALL cfbit SDCR,1 ; Initiate Precharge All CommandSDCFG1 equ MBAR_SDRAM+8 ; Configuration Register 1 (32b)SRD2RWP cffield SDCFG1,28,4 ; Single Read to Read/Write/Precharge DelaySWT2RWP cffield SDCFG1,24,3 ; Single Write to Read/Write/Precharge DelayRD_LAT cffield SDCFG1,20,4 ; Read CAS LatencyACT2RW cffield SDCFG1,16,3 ; Active to Read/Write DelayPRE2ACT cffield SDCFG1,12,3 ; Precharge to Active DelayREF2ACT cffield SDCFG1,8,4 ; Refresh to Active DelayWT_LAT cffield SDCFG1,4,3 ; Write LatencySDCFG2 equ MBAR_SDRAM+12 ; Configuration Register 2 (32b)BRD2RP cffield SDCFG2,28,4 ; Burst Read to Read/Precharge DelayBWT2RWP cffield SDCFG2,24,4 ; Burst Write to Read/Write/Precharge DelayBRD2W cffield SDCFG2,20,4 ; Burst Read to Write DelayBL cffield SDCFG2,16,4 ; Burst Length__defsdcs macro N,AddrSDCS{N} equ Addr ; Chip Select Configuration (32b)CSBA cffield SDCS{N},20,12 ; Chip-Select Base AddressCSSZ cffield SDCS{N},0,4 ; Chip Select Sizeendm__defsdcs "0",MBAR_SDRAM+16__defsdcs "1",MBAR_SDRAM+20restore ; re-enable listingendif ; __52xxdraminc