Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
ddr.h File Reference
#include <asm/mach-rc32434/rb.h>

Go to the source code of this file.

Data Structures

struct  ddr_ram
 

Macros

#define DDR0_PHYS_ADDR   0x18018000
 
#define DDR_MASK   0xffff0000
 
#define DDR0_BASE_MSK   DDR_MASK
 
#define DDR1_BASE_MSK   DDR_MASK
 
#define RC32434_DDR0_ATA_BIT   5
 
#define RC32434_DDR0_ATA_MSK   0x000000E0
 
#define RC32434_DDR0_DBW_BIT   8
 
#define RC32434_DDR0_DBW_MSK   0x00000100
 
#define RC32434_DDR0_WR_BIT   9
 
#define RC32434_DDR0_WR_MSK   0x00000600
 
#define RC32434_DDR0_PS_BIT   11
 
#define RC32434_DDR0_PS_MSK   0x00001800
 
#define RC32434_DDR0_DTYPE_BIT   13
 
#define RC32434_DDR0_DTYPE_MSK   0x0000e000
 
#define RC32434_DDR0_RFC_BIT   16
 
#define RC32434_DDR0_RFC_MSK   0x000f0000
 
#define RC32434_DDR0_RP_BIT   20
 
#define RC32434_DDR0_RP_MSK   0x00300000
 
#define RC32434_DDR0_AP_BIT   22
 
#define RC32434_DDR0_AP_MSK   0x00400000
 
#define RC32434_DDR0_RCD_BIT   23
 
#define RC32434_DDR0_RCD_MSK   0x01800000
 
#define RC32434_DDR0_CL_BIT   25
 
#define RC32434_DDR0_CL_MSK   0x06000000
 
#define RC32434_DDR0_DBM_BIT   27
 
#define RC32434_DDR0_DBM_MSK   0x08000000
 
#define RC32434_DDR0_SDS_BIT   28
 
#define RC32434_DDR0_SDS_MSK   0x10000000
 
#define RC32434_DDR0_ATP_BIT   29
 
#define RC32434_DDR0_ATP_MSK   0x60000000
 
#define RC32434_DDR0_RE_BIT   31
 
#define RC32434_DDR0_RE_MSK   0x80000000
 
#define RC32434_DDRC_MSK(x)   BIT_TO_MASK(x)
 
#define RC32434_DDRC_CES_BIT   0
 
#define RC32434_DDRC_ACE_BIT   1
 
#define RC32434_DCST_MSK(x)   BIT_TO_MASK(x)
 
#define RC32434_DCST_CS_BIT   0
 
#define RC32434_DCST_CS_MSK   0x00000003
 
#define RC32434_DCST_WE_BIT   2
 
#define RC32434_DCST_RAS_BIT   3
 
#define RC32434_DCST_CAS_BIT   4
 
#define RC32434_DSCT_CKE_BIT   5
 
#define RC32434_DSCT_BA_BIT   6
 
#define RC32434_DSCT_BA_MSK   0x000000c0
 
#define RC32434_QSC_DM_BIT   0
 
#define RC32434_QSC_DM_MSK   0x00000003
 
#define RC32434_QSC_DQSBS_BIT   2
 
#define RC32434_QSC_DQSBS_MSK   0x000000fc
 
#define RC32434_QSC_DB_BIT   8
 
#define RC32434_QSC_DB_MSK   0x00000100
 
#define RC32434_QSC_DBSP_BIT   9
 
#define RC32434_QSC_DBSP_MSK   0x01fffe00
 
#define RC32434_QSC_BDP_BIT   25
 
#define RC32434_QSC_BDP_MSK   0x7e000000
 
#define RC32434_LLC_EAO_BIT   0
 
#define RC32434_LLC_EAO_MSK   0x00000001
 
#define RC32434_LLC_EO_BIT   1
 
#define RC32434_LLC_EO_MSK   0x0000003e
 
#define RC32434_LLC_FS_BIT   6
 
#define RC32434_LLC_FS_MSK   0x000000c0
 
#define RC32434_LLC_AS_BIT   8
 
#define RC32434_LLC_AS_MSK   0x00000700
 
#define RC32434_LLC_SP_BIT   11
 
#define RC32434_LLC_SP_MSK   0x001ff800
 
#define RC32434_LLFC_MSK(x)   BIT_TO_MASK(x)
 
#define RC32434_LLFC_MEN_BIT   0
 
#define RC32434_LLFC_EAN_BIT   1
 
#define RC32434_LLFC_FF_BIT   2
 
#define RC32434_DLLTA_ADDR_BIT   2
 
#define RC32434_DLLTA_ADDR_MSK   0xfffffffc
 
#define RC32434_DLLED_MSK(x)   BIT_TO_MASK(x)
 
#define RC32434_DLLED_DBE_BIT   0
 
#define RC32434_DLLED_DTE_BIT   1
 

Macro Definition Documentation

#define DDR0_BASE_MSK   DDR_MASK

Definition at line 53 of file ddr.h.

#define DDR0_PHYS_ADDR   0x18018000

Definition at line 49 of file ddr.h.

#define DDR1_BASE_MSK   DDR_MASK

Definition at line 54 of file ddr.h.

#define DDR_MASK   0xffff0000

Definition at line 52 of file ddr.h.

#define RC32434_DCST_CAS_BIT   4

Definition at line 97 of file ddr.h.

#define RC32434_DCST_CS_BIT   0

Definition at line 93 of file ddr.h.

#define RC32434_DCST_CS_MSK   0x00000003

Definition at line 94 of file ddr.h.

#define RC32434_DCST_MSK (   x)    BIT_TO_MASK(x)

Definition at line 92 of file ddr.h.

#define RC32434_DCST_RAS_BIT   3

Definition at line 96 of file ddr.h.

#define RC32434_DCST_WE_BIT   2

Definition at line 95 of file ddr.h.

#define RC32434_DDR0_AP_BIT   22

Definition at line 71 of file ddr.h.

#define RC32434_DDR0_AP_MSK   0x00400000

Definition at line 72 of file ddr.h.

#define RC32434_DDR0_ATA_BIT   5

Definition at line 57 of file ddr.h.

#define RC32434_DDR0_ATA_MSK   0x000000E0

Definition at line 58 of file ddr.h.

#define RC32434_DDR0_ATP_BIT   29

Definition at line 81 of file ddr.h.

#define RC32434_DDR0_ATP_MSK   0x60000000

Definition at line 82 of file ddr.h.

#define RC32434_DDR0_CL_BIT   25

Definition at line 75 of file ddr.h.

#define RC32434_DDR0_CL_MSK   0x06000000

Definition at line 76 of file ddr.h.

#define RC32434_DDR0_DBM_BIT   27

Definition at line 77 of file ddr.h.

#define RC32434_DDR0_DBM_MSK   0x08000000

Definition at line 78 of file ddr.h.

#define RC32434_DDR0_DBW_BIT   8

Definition at line 59 of file ddr.h.

#define RC32434_DDR0_DBW_MSK   0x00000100

Definition at line 60 of file ddr.h.

#define RC32434_DDR0_DTYPE_BIT   13

Definition at line 65 of file ddr.h.

#define RC32434_DDR0_DTYPE_MSK   0x0000e000

Definition at line 66 of file ddr.h.

#define RC32434_DDR0_PS_BIT   11

Definition at line 63 of file ddr.h.

#define RC32434_DDR0_PS_MSK   0x00001800

Definition at line 64 of file ddr.h.

#define RC32434_DDR0_RCD_BIT   23

Definition at line 73 of file ddr.h.

#define RC32434_DDR0_RCD_MSK   0x01800000

Definition at line 74 of file ddr.h.

#define RC32434_DDR0_RE_BIT   31

Definition at line 83 of file ddr.h.

#define RC32434_DDR0_RE_MSK   0x80000000

Definition at line 84 of file ddr.h.

#define RC32434_DDR0_RFC_BIT   16

Definition at line 67 of file ddr.h.

#define RC32434_DDR0_RFC_MSK   0x000f0000

Definition at line 68 of file ddr.h.

#define RC32434_DDR0_RP_BIT   20

Definition at line 69 of file ddr.h.

#define RC32434_DDR0_RP_MSK   0x00300000

Definition at line 70 of file ddr.h.

#define RC32434_DDR0_SDS_BIT   28

Definition at line 79 of file ddr.h.

#define RC32434_DDR0_SDS_MSK   0x10000000

Definition at line 80 of file ddr.h.

#define RC32434_DDR0_WR_BIT   9

Definition at line 61 of file ddr.h.

#define RC32434_DDR0_WR_MSK   0x00000600

Definition at line 62 of file ddr.h.

#define RC32434_DDRC_ACE_BIT   1

Definition at line 89 of file ddr.h.

#define RC32434_DDRC_CES_BIT   0

Definition at line 88 of file ddr.h.

#define RC32434_DDRC_MSK (   x)    BIT_TO_MASK(x)

Definition at line 87 of file ddr.h.

#define RC32434_DLLED_DBE_BIT   0

Definition at line 138 of file ddr.h.

#define RC32434_DLLED_DTE_BIT   1

Definition at line 139 of file ddr.h.

#define RC32434_DLLED_MSK (   x)    BIT_TO_MASK(x)

Definition at line 137 of file ddr.h.

#define RC32434_DLLTA_ADDR_BIT   2

Definition at line 133 of file ddr.h.

#define RC32434_DLLTA_ADDR_MSK   0xfffffffc

Definition at line 134 of file ddr.h.

#define RC32434_DSCT_BA_BIT   6

Definition at line 99 of file ddr.h.

#define RC32434_DSCT_BA_MSK   0x000000c0

Definition at line 100 of file ddr.h.

#define RC32434_DSCT_CKE_BIT   5

Definition at line 98 of file ddr.h.

#define RC32434_LLC_AS_BIT   8

Definition at line 121 of file ddr.h.

#define RC32434_LLC_AS_MSK   0x00000700

Definition at line 122 of file ddr.h.

#define RC32434_LLC_EAO_BIT   0

Definition at line 115 of file ddr.h.

#define RC32434_LLC_EAO_MSK   0x00000001

Definition at line 116 of file ddr.h.

#define RC32434_LLC_EO_BIT   1

Definition at line 117 of file ddr.h.

#define RC32434_LLC_EO_MSK   0x0000003e

Definition at line 118 of file ddr.h.

#define RC32434_LLC_FS_BIT   6

Definition at line 119 of file ddr.h.

#define RC32434_LLC_FS_MSK   0x000000c0

Definition at line 120 of file ddr.h.

#define RC32434_LLC_SP_BIT   11

Definition at line 123 of file ddr.h.

#define RC32434_LLC_SP_MSK   0x001ff800

Definition at line 124 of file ddr.h.

#define RC32434_LLFC_EAN_BIT   1

Definition at line 129 of file ddr.h.

#define RC32434_LLFC_FF_BIT   2

Definition at line 130 of file ddr.h.

#define RC32434_LLFC_MEN_BIT   0

Definition at line 128 of file ddr.h.

#define RC32434_LLFC_MSK (   x)    BIT_TO_MASK(x)

Definition at line 127 of file ddr.h.

#define RC32434_QSC_BDP_BIT   25

Definition at line 111 of file ddr.h.

#define RC32434_QSC_BDP_MSK   0x7e000000

Definition at line 112 of file ddr.h.

#define RC32434_QSC_DB_BIT   8

Definition at line 107 of file ddr.h.

#define RC32434_QSC_DB_MSK   0x00000100

Definition at line 108 of file ddr.h.

#define RC32434_QSC_DBSP_BIT   9

Definition at line 109 of file ddr.h.

#define RC32434_QSC_DBSP_MSK   0x01fffe00

Definition at line 110 of file ddr.h.

#define RC32434_QSC_DM_BIT   0

Definition at line 103 of file ddr.h.

#define RC32434_QSC_DM_MSK   0x00000003

Definition at line 104 of file ddr.h.

#define RC32434_QSC_DQSBS_BIT   2

Definition at line 105 of file ddr.h.

#define RC32434_QSC_DQSBS_MSK   0x000000fc

Definition at line 106 of file ddr.h.