Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
dcr.h File Reference

Go to the source code of this file.

Macros

#define mfdcr(rn)
 
#define mtdcr(rn, val)   asm volatile("mtdcr %0,%1" : : "i"(rn), "r"(val))
 
#define mfdcrx(rn)
 
#define DCRN_SDRAM0_CFGADDR   0x010
 
#define DCRN_SDRAM0_CFGDATA   0x011
 
#define SDRAM0_READ(offset)
 
#define SDRAM0_WRITE(offset, data)
 
#define SDRAM0_B0CR   0x40
 
#define SDRAM0_B1CR   0x44
 
#define SDRAM0_B2CR   0x48
 
#define SDRAM0_B3CR   0x4c
 
#define SDRAM_CONFIG_BANK_ENABLE   0x00000001
 
#define SDRAM_CONFIG_SIZE_MASK   0x000e0000
 
#define SDRAM_CONFIG_BANK_SIZE(reg)   (0x00400000 << ((reg & SDRAM_CONFIG_SIZE_MASK) >> 17))
 
#define DCRN_EBC0_CFGADDR   0x012
 
#define DCRN_EBC0_CFGDATA   0x013
 
#define EBC_NUM_BANKS   8
 
#define EBC_B0CR   0x00
 
#define EBC_B1CR   0x01
 
#define EBC_B2CR   0x02
 
#define EBC_B3CR   0x03
 
#define EBC_B4CR   0x04
 
#define EBC_B5CR   0x05
 
#define EBC_B6CR   0x06
 
#define EBC_B7CR   0x07
 
#define EBC_BXCR(n)   (n)
 
#define EBC_BXCR_BAS   0xfff00000
 
#define EBC_BXCR_BS   0x000e0000
 
#define EBC_BXCR_BANK_SIZE(reg)   (0x100000 << (((reg) & EBC_BXCR_BS) >> 17))
 
#define EBC_BXCR_BU   0x00018000
 
#define EBC_BXCR_BU_OFF   0x00000000
 
#define EBC_BXCR_BU_RO   0x00008000
 
#define EBC_BXCR_BU_WO   0x00010000
 
#define EBC_BXCR_BU_RW   0x00018000
 
#define EBC_BXCR_BW   0x00006000
 
#define EBC_B0AP   0x10
 
#define EBC_B1AP   0x11
 
#define EBC_B2AP   0x12
 
#define EBC_B3AP   0x13
 
#define EBC_B4AP   0x14
 
#define EBC_B5AP   0x15
 
#define EBC_B6AP   0x16
 
#define EBC_B7AP   0x17
 
#define EBC_BXAP(n)   (0x10+(n))
 
#define EBC_BEAR   0x20
 
#define EBC_BESR   0x21
 
#define EBC_CFG   0x23
 
#define EBC_CID   0x24
 
#define DCRN_CPC0_SR   0x0b0
 
#define DCRN_CPC0_ER   0x0b1
 
#define DCRN_CPC0_FR   0x0b2
 
#define DCRN_CPC0_SYS0   0x0e0
 
#define CPC0_SYS0_TUNE   0xffc00000
 
#define CPC0_SYS0_FBDV_MASK   0x003c0000
 
#define CPC0_SYS0_FWDVA_MASK   0x00038000
 
#define CPC0_SYS0_FWDVB_MASK   0x00007000
 
#define CPC0_SYS0_OPDV_MASK   0x00000c00
 
#define CPC0_SYS0_EPDV_MASK   0x00000300
 
#define CPC0_SYS0_FBDV(reg)   ((((((reg) & CPC0_SYS0_FBDV_MASK) >> 18) - 1) & 0xf) + 1)
 
#define CPC0_SYS0_FWDVA(reg)   (8 - (((reg) & CPC0_SYS0_FWDVA_MASK) >> 15))
 
#define CPC0_SYS0_FWDVB(reg)   (8 - (((reg) & CPC0_SYS0_FWDVB_MASK) >> 12))
 
#define CPC0_SYS0_OPDV(reg)   ((((reg) & CPC0_SYS0_OPDV_MASK) >> 10) + 1)
 
#define CPC0_SYS0_EPDV(reg)   ((((reg) & CPC0_SYS0_EPDV_MASK) >> 8) + 1)
 
#define CPC0_SYS0_EXTSL   0x00000080
 
#define CPC0_SYS0_RW_MASK   0x00000060
 
#define CPC0_SYS0_RL   0x00000010
 
#define CPC0_SYS0_ZMIISL_MASK   0x0000000c
 
#define CPC0_SYS0_BYPASS   0x00000002
 
#define CPC0_SYS0_NTO1   0x00000001
 
#define DCRN_CPC0_SYS1   0x0e1
 
#define DCRN_CPC0_CUST0   0x0e2
 
#define DCRN_CPC0_CUST1   0x0e3
 
#define DCRN_CPC0_STRP0   0x0e4
 
#define DCRN_CPC0_STRP1   0x0e5
 
#define DCRN_CPC0_STRP2   0x0e6
 
#define DCRN_CPC0_STRP3   0x0e7
 
#define DCRN_CPC0_GPIO   0x0e8
 
#define DCRN_CPC0_PLB   0x0e9
 
#define DCRN_CPC0_CR1   0x0ea
 
#define DCRN_CPC0_CR0   0x0eb
 
#define CPC0_CR0_SWE   0x80000000
 
#define CPC0_CR0_CETE   0x40000000
 
#define CPC0_CR0_U1FCS   0x20000000
 
#define CPC0_CR0_U0DTE   0x10000000
 
#define CPC0_CR0_U0DRE   0x08000000
 
#define CPC0_CR0_U0DC   0x04000000
 
#define CPC0_CR0_U1DTE   0x02000000
 
#define CPC0_CR0_U1DRE   0x01000000
 
#define CPC0_CR0_U1DC   0x00800000
 
#define CPC0_CR0_U0EC   0x00400000
 
#define CPC0_CR0_U1EC   0x00200000
 
#define CPC0_CR0_UDIV_MASK   0x001f0000
 
#define CPC0_CR0_UDIV(reg)   ((((reg) & CPC0_CR0_UDIV_MASK) >> 16) + 1)
 
#define DCRN_CPC0_MIRQ0   0x0ec
 
#define DCRN_CPC0_MIRQ1   0x0ed
 
#define DCRN_CPC0_JTAGID   0x0ef
 
#define DCRN_MAL0_CFG   0x180
 
#define MAL_RESET   0x80000000
 
#define DCRN_CPR0_ADDR   0xc
 
#define DCRN_CPR0_DATA   0xd
 
#define CPR0_PLLD0   0x60
 
#define CPR0_OPBD0   0xc0
 
#define CPR0_PERD0   0xe0
 
#define CPR0_PRIMBD0   0xa0
 
#define CPR0_SCPID   0x120
 
#define CPR0_PLLC0   0x40
 
#define DCRN_CPC0_PLLMR   0xb0
 
#define DCRN_405_CPC0_CR0   0xb1
 
#define DCRN_405_CPC0_CR1   0xb2
 
#define DCRN_405_CPC0_PSR   0xb4
 
#define DCRN_CPC0_PLLMR0   0xf0
 
#define DCRN_CPC0_PLLMR1   0xf4
 
#define DCRN_CPC0_UCR   0xf5
 
#define DCRN_CPR0_CLKUPD   0x020
 
#define DCRN_CPR0_PLLC   0x040
 
#define DCRN_CPR0_PLLD   0x060
 
#define DCRN_CPR0_PRIMAD   0x080
 
#define DCRN_CPR0_PRIMBD   0x0a0
 
#define DCRN_CPR0_OPBD   0x0c0
 
#define DCRN_CPR0_PERD   0x0e0
 
#define DCRN_CPR0_MALD   0x100
 
#define DCRN_SDR0_CONFIG_ADDR   0xe
 
#define DCRN_SDR0_CONFIG_DATA   0xf
 
#define SDR0_READ(offset)
 
#define SDR0_WRITE(offset, data)
 
#define DCRN_SDR0_UART0   0x0120
 
#define DCRN_SDR0_UART1   0x0121
 
#define DCRN_SDR0_UART2   0x0122
 
#define DCRN_SDR0_UART3   0x0123
 
#define DCRN_CPR0_CFGADDR   0xc
 
#define DCRN_CPR0_CFGDATA   0xd
 
#define CPR0_READ(offset)
 
#define CPR0_WRITE(offset, data)
 

Macro Definition Documentation

#define CPC0_CR0_CETE   0x40000000

Definition at line 121 of file dcr.h.

#define CPC0_CR0_SWE   0x80000000

Definition at line 120 of file dcr.h.

#define CPC0_CR0_U0DC   0x04000000

Definition at line 125 of file dcr.h.

#define CPC0_CR0_U0DRE   0x08000000

Definition at line 124 of file dcr.h.

#define CPC0_CR0_U0DTE   0x10000000

Definition at line 123 of file dcr.h.

#define CPC0_CR0_U0EC   0x00400000

Definition at line 129 of file dcr.h.

#define CPC0_CR0_U1DC   0x00800000

Definition at line 128 of file dcr.h.

#define CPC0_CR0_U1DRE   0x01000000

Definition at line 127 of file dcr.h.

#define CPC0_CR0_U1DTE   0x02000000

Definition at line 126 of file dcr.h.

#define CPC0_CR0_U1EC   0x00200000

Definition at line 130 of file dcr.h.

#define CPC0_CR0_U1FCS   0x20000000

Definition at line 122 of file dcr.h.

#define CPC0_CR0_UDIV (   reg)    ((((reg) & CPC0_CR0_UDIV_MASK) >> 16) + 1)

Definition at line 132 of file dcr.h.

#define CPC0_CR0_UDIV_MASK   0x001f0000

Definition at line 131 of file dcr.h.

#define CPC0_SYS0_BYPASS   0x00000002

Definition at line 107 of file dcr.h.

#define CPC0_SYS0_EPDV (   reg)    ((((reg) & CPC0_SYS0_EPDV_MASK) >> 8) + 1)

Definition at line 101 of file dcr.h.

#define CPC0_SYS0_EPDV_MASK   0x00000300

Definition at line 90 of file dcr.h.

#define CPC0_SYS0_EXTSL   0x00000080

Definition at line 103 of file dcr.h.

#define CPC0_SYS0_FBDV (   reg)    ((((((reg) & CPC0_SYS0_FBDV_MASK) >> 18) - 1) & 0xf) + 1)

Definition at line 93 of file dcr.h.

#define CPC0_SYS0_FBDV_MASK   0x003c0000

Definition at line 86 of file dcr.h.

#define CPC0_SYS0_FWDVA (   reg)    (8 - (((reg) & CPC0_SYS0_FWDVA_MASK) >> 15))

Definition at line 95 of file dcr.h.

#define CPC0_SYS0_FWDVA_MASK   0x00038000

Definition at line 87 of file dcr.h.

#define CPC0_SYS0_FWDVB (   reg)    (8 - (((reg) & CPC0_SYS0_FWDVB_MASK) >> 12))

Definition at line 97 of file dcr.h.

#define CPC0_SYS0_FWDVB_MASK   0x00007000

Definition at line 88 of file dcr.h.

#define CPC0_SYS0_NTO1   0x00000001

Definition at line 108 of file dcr.h.

#define CPC0_SYS0_OPDV (   reg)    ((((reg) & CPC0_SYS0_OPDV_MASK) >> 10) + 1)

Definition at line 99 of file dcr.h.

#define CPC0_SYS0_OPDV_MASK   0x00000c00

Definition at line 89 of file dcr.h.

#define CPC0_SYS0_RL   0x00000010

Definition at line 105 of file dcr.h.

#define CPC0_SYS0_RW_MASK   0x00000060

Definition at line 104 of file dcr.h.

#define CPC0_SYS0_TUNE   0xffc00000

Definition at line 85 of file dcr.h.

#define CPC0_SYS0_ZMIISL_MASK   0x0000000c

Definition at line 106 of file dcr.h.

#define CPR0_OPBD0   0xc0

Definition at line 145 of file dcr.h.

#define CPR0_PERD0   0xe0

Definition at line 146 of file dcr.h.

#define CPR0_PLLC0   0x40

Definition at line 149 of file dcr.h.

#define CPR0_PLLD0   0x60

Definition at line 144 of file dcr.h.

#define CPR0_PRIMBD0   0xa0

Definition at line 147 of file dcr.h.

#define CPR0_READ (   offset)
Value:
({\
mfdcr(DCRN_CPR0_CFGDATA); })

Definition at line 194 of file dcr.h.

#define CPR0_SCPID   0x120

Definition at line 148 of file dcr.h.

#define CPR0_WRITE (   offset,
  data 
)
Value:
({\
mtdcr(DCRN_CPR0_CFGDATA, data); })

Definition at line 197 of file dcr.h.

#define DCRN_405_CPC0_CR0   0xb1

Definition at line 153 of file dcr.h.

#define DCRN_405_CPC0_CR1   0xb2

Definition at line 154 of file dcr.h.

#define DCRN_405_CPC0_PSR   0xb4

Definition at line 155 of file dcr.h.

#define DCRN_CPC0_CR0   0x0eb

Definition at line 119 of file dcr.h.

#define DCRN_CPC0_CR1   0x0ea

Definition at line 118 of file dcr.h.

#define DCRN_CPC0_CUST0   0x0e2

Definition at line 110 of file dcr.h.

#define DCRN_CPC0_CUST1   0x0e3

Definition at line 111 of file dcr.h.

#define DCRN_CPC0_ER   0x0b1

Definition at line 82 of file dcr.h.

#define DCRN_CPC0_FR   0x0b2

Definition at line 83 of file dcr.h.

#define DCRN_CPC0_GPIO   0x0e8

Definition at line 116 of file dcr.h.

#define DCRN_CPC0_JTAGID   0x0ef

Definition at line 136 of file dcr.h.

#define DCRN_CPC0_MIRQ0   0x0ec

Definition at line 134 of file dcr.h.

#define DCRN_CPC0_MIRQ1   0x0ed

Definition at line 135 of file dcr.h.

#define DCRN_CPC0_PLB   0x0e9

Definition at line 117 of file dcr.h.

#define DCRN_CPC0_PLLMR   0xb0

Definition at line 152 of file dcr.h.

#define DCRN_CPC0_PLLMR0   0xf0

Definition at line 158 of file dcr.h.

#define DCRN_CPC0_PLLMR1   0xf4

Definition at line 159 of file dcr.h.

#define DCRN_CPC0_SR   0x0b0

Definition at line 81 of file dcr.h.

#define DCRN_CPC0_STRP0   0x0e4

Definition at line 112 of file dcr.h.

#define DCRN_CPC0_STRP1   0x0e5

Definition at line 113 of file dcr.h.

#define DCRN_CPC0_STRP2   0x0e6

Definition at line 114 of file dcr.h.

#define DCRN_CPC0_STRP3   0x0e7

Definition at line 115 of file dcr.h.

#define DCRN_CPC0_SYS0   0x0e0

Definition at line 84 of file dcr.h.

#define DCRN_CPC0_SYS1   0x0e1

Definition at line 109 of file dcr.h.

#define DCRN_CPC0_UCR   0xf5

Definition at line 160 of file dcr.h.

#define DCRN_CPR0_ADDR   0xc

Definition at line 142 of file dcr.h.

#define DCRN_CPR0_CFGADDR   0xc

Definition at line 191 of file dcr.h.

#define DCRN_CPR0_CFGDATA   0xd

Definition at line 192 of file dcr.h.

#define DCRN_CPR0_CLKUPD   0x020

Definition at line 163 of file dcr.h.

#define DCRN_CPR0_DATA   0xd

Definition at line 143 of file dcr.h.

#define DCRN_CPR0_MALD   0x100

Definition at line 170 of file dcr.h.

#define DCRN_CPR0_OPBD   0x0c0

Definition at line 168 of file dcr.h.

#define DCRN_CPR0_PERD   0x0e0

Definition at line 169 of file dcr.h.

#define DCRN_CPR0_PLLC   0x040

Definition at line 164 of file dcr.h.

#define DCRN_CPR0_PLLD   0x060

Definition at line 165 of file dcr.h.

#define DCRN_CPR0_PRIMAD   0x080

Definition at line 166 of file dcr.h.

#define DCRN_CPR0_PRIMBD   0x0a0

Definition at line 167 of file dcr.h.

#define DCRN_EBC0_CFGADDR   0x012

Definition at line 44 of file dcr.h.

#define DCRN_EBC0_CFGDATA   0x013

Definition at line 45 of file dcr.h.

#define DCRN_MAL0_CFG   0x180

Definition at line 138 of file dcr.h.

#define DCRN_SDR0_CONFIG_ADDR   0xe

Definition at line 172 of file dcr.h.

#define DCRN_SDR0_CONFIG_DATA   0xf

Definition at line 173 of file dcr.h.

#define DCRN_SDR0_UART0   0x0120

Definition at line 183 of file dcr.h.

#define DCRN_SDR0_UART1   0x0121

Definition at line 184 of file dcr.h.

#define DCRN_SDR0_UART2   0x0122

Definition at line 185 of file dcr.h.

#define DCRN_SDR0_UART3   0x0123

Definition at line 186 of file dcr.h.

#define DCRN_SDRAM0_CFGADDR   0x010

Definition at line 20 of file dcr.h.

#define DCRN_SDRAM0_CFGDATA   0x011

Definition at line 21 of file dcr.h.

#define EBC_B0AP   0x10

Definition at line 66 of file dcr.h.

#define EBC_B0CR   0x00

Definition at line 47 of file dcr.h.

#define EBC_B1AP   0x11

Definition at line 67 of file dcr.h.

#define EBC_B1CR   0x01

Definition at line 48 of file dcr.h.

#define EBC_B2AP   0x12

Definition at line 68 of file dcr.h.

#define EBC_B2CR   0x02

Definition at line 49 of file dcr.h.

#define EBC_B3AP   0x13

Definition at line 69 of file dcr.h.

#define EBC_B3CR   0x03

Definition at line 50 of file dcr.h.

#define EBC_B4AP   0x14

Definition at line 70 of file dcr.h.

#define EBC_B4CR   0x04

Definition at line 51 of file dcr.h.

#define EBC_B5AP   0x15

Definition at line 71 of file dcr.h.

#define EBC_B5CR   0x05

Definition at line 52 of file dcr.h.

#define EBC_B6AP   0x16

Definition at line 72 of file dcr.h.

#define EBC_B6CR   0x06

Definition at line 53 of file dcr.h.

#define EBC_B7AP   0x17

Definition at line 73 of file dcr.h.

#define EBC_B7CR   0x07

Definition at line 54 of file dcr.h.

#define EBC_BEAR   0x20

Definition at line 75 of file dcr.h.

#define EBC_BESR   0x21

Definition at line 76 of file dcr.h.

#define EBC_BXAP (   n)    (0x10+(n))

Definition at line 74 of file dcr.h.

#define EBC_BXCR (   n)    (n)

Definition at line 55 of file dcr.h.

#define EBC_BXCR_BANK_SIZE (   reg)    (0x100000 << (((reg) & EBC_BXCR_BS) >> 17))

Definition at line 58 of file dcr.h.

#define EBC_BXCR_BAS   0xfff00000

Definition at line 56 of file dcr.h.

#define EBC_BXCR_BS   0x000e0000

Definition at line 57 of file dcr.h.

#define EBC_BXCR_BU   0x00018000

Definition at line 60 of file dcr.h.

#define EBC_BXCR_BU_OFF   0x00000000

Definition at line 61 of file dcr.h.

#define EBC_BXCR_BU_RO   0x00008000

Definition at line 62 of file dcr.h.

#define EBC_BXCR_BU_RW   0x00018000

Definition at line 64 of file dcr.h.

#define EBC_BXCR_BU_WO   0x00010000

Definition at line 63 of file dcr.h.

#define EBC_BXCR_BW   0x00006000

Definition at line 65 of file dcr.h.

#define EBC_CFG   0x23

Definition at line 77 of file dcr.h.

#define EBC_CID   0x24

Definition at line 78 of file dcr.h.

#define EBC_NUM_BANKS   8

Definition at line 46 of file dcr.h.

#define MAL_RESET   0x80000000

Definition at line 139 of file dcr.h.

#define mfdcr (   rn)
Value:
({ \
unsigned long rval; \
asm volatile("mfdcr %0,%1" : "=r"(rval) : "i"(rn)); \
rval; \
})

Definition at line 4 of file dcr.h.

#define mfdcrx (   rn)
Value:
({ \
unsigned long rval; \
asm volatile("mfdcrx %0,%1" : "=r"(rval) : "r"(rn)); \
rval; \
})

Definition at line 12 of file dcr.h.

#define mtdcr (   rn,
  val 
)    asm volatile("mtdcr %0,%1" : : "i"(rn), "r"(val))

Definition at line 10 of file dcr.h.

#define SDR0_READ (   offset)
Value:

Definition at line 176 of file dcr.h.

#define SDR0_WRITE (   offset,
  data 
)
Value:

Definition at line 179 of file dcr.h.

#define SDRAM0_B0CR   0x40

Definition at line 30 of file dcr.h.

#define SDRAM0_B1CR   0x44

Definition at line 31 of file dcr.h.

#define SDRAM0_B2CR   0x48

Definition at line 32 of file dcr.h.

#define SDRAM0_B3CR   0x4c

Definition at line 33 of file dcr.h.

#define SDRAM0_READ (   offset)
Value:

Definition at line 23 of file dcr.h.

#define SDRAM0_WRITE (   offset,
  data 
)
Value:

Definition at line 26 of file dcr.h.

#define SDRAM_CONFIG_BANK_ENABLE   0x00000001

Definition at line 38 of file dcr.h.

#define SDRAM_CONFIG_BANK_SIZE (   reg)    (0x00400000 << ((reg & SDRAM_CONFIG_SIZE_MASK) >> 17))

Definition at line 40 of file dcr.h.

#define SDRAM_CONFIG_SIZE_MASK   0x000e0000

Definition at line 39 of file dcr.h.