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

Go to the source code of this file.

Macros

#define PXA2XX_SMEMC_BASE   0x48000000
 
#define PXA3XX_SMEMC_BASE   0x4a000000
 
#define SMEMC_VIRT   IOMEM(0xf6000000)
 
#define MDCNFG   (SMEMC_VIRT + 0x00) /* SDRAM Configuration Register 0 */
 
#define MDREFR   (SMEMC_VIRT + 0x04) /* SDRAM Refresh Control Register */
 
#define MSC0   (SMEMC_VIRT + 0x08) /* Static Memory Control Register 0 */
 
#define MSC1   (SMEMC_VIRT + 0x0C) /* Static Memory Control Register 1 */
 
#define MSC2   (SMEMC_VIRT + 0x10) /* Static Memory Control Register 2 */
 
#define MECR   (SMEMC_VIRT + 0x14) /* Expansion Memory (PCMCIA/Compact Flash) Bus Configuration */
 
#define SXLCR   (SMEMC_VIRT + 0x18) /* LCR value to be written to SDRAM-Timing Synchronous Flash */
 
#define SXCNFG   (SMEMC_VIRT + 0x1C) /* Synchronous Static Memory Control Register */
 
#define SXMRS   (SMEMC_VIRT + 0x24) /* MRS value to be written to Synchronous Flash or SMROM */
 
#define MCMEM0   (SMEMC_VIRT + 0x28) /* Card interface Common Memory Space Socket 0 Timing */
 
#define MCMEM1   (SMEMC_VIRT + 0x2C) /* Card interface Common Memory Space Socket 1 Timing */
 
#define MCATT0   (SMEMC_VIRT + 0x30) /* Card interface Attribute Space Socket 0 Timing Configuration */
 
#define MCATT1   (SMEMC_VIRT + 0x34) /* Card interface Attribute Space Socket 1 Timing Configuration */
 
#define MCIO0   (SMEMC_VIRT + 0x38) /* Card interface I/O Space Socket 0 Timing Configuration */
 
#define MCIO1   (SMEMC_VIRT + 0x3C) /* Card interface I/O Space Socket 1 Timing Configuration */
 
#define MDMRS   (SMEMC_VIRT + 0x40) /* MRS value to be written to SDRAM */
 
#define BOOT_DEF   (SMEMC_VIRT + 0x44) /* Read-Only Boot-Time Register. Contains BOOT_SEL and PKG_SEL */
 
#define MEMCLKCFG   (SMEMC_VIRT + 0x68) /* Clock Configuration */
 
#define CSADRCFG0   (SMEMC_VIRT + 0x80) /* Address Configuration Register for CS0 */
 
#define CSADRCFG1   (SMEMC_VIRT + 0x84) /* Address Configuration Register for CS1 */
 
#define CSADRCFG2   (SMEMC_VIRT + 0x88) /* Address Configuration Register for CS2 */
 
#define CSADRCFG3   (SMEMC_VIRT + 0x8C) /* Address Configuration Register for CS3 */
 
#define MCMEM(s)   (SMEMC_VIRT + 0x28 + ((s)<<2)) /* Card interface Common Memory Space Socket s Timing */
 
#define MCATT(s)   (SMEMC_VIRT + 0x30 + ((s)<<2)) /* Card interface Attribute Space Socket s Timing Configuration */
 
#define MCIO(s)   (SMEMC_VIRT + 0x38 + ((s)<<2)) /* Card interface I/O Space Socket s Timing Configuration */
 
#define MECR_NOS   (1 << 0) /* Number Of Sockets: 0 -> 1 sock, 1 -> 2 sock */
 
#define MECR_CIT   (1 << 1) /* Card Is There: 0 -> no card, 1 -> card inserted */
 
#define MDCNFG_DE0   (1 << 0) /* SDRAM Bank 0 Enable */
 
#define MDCNFG_DE1   (1 << 1) /* SDRAM Bank 1 Enable */
 
#define MDCNFG_DE2   (1 << 16) /* SDRAM Bank 2 Enable */
 
#define MDCNFG_DE3   (1 << 17) /* SDRAM Bank 3 Enable */
 
#define MDREFR_K0DB4   (1 << 29) /* SDCLK0 Divide by 4 Control/Status */
 
#define MDREFR_K2FREE   (1 << 25) /* SDRAM Free-Running Control */
 
#define MDREFR_K1FREE   (1 << 24) /* SDRAM Free-Running Control */
 
#define MDREFR_K0FREE   (1 << 23) /* SDRAM Free-Running Control */
 
#define MDREFR_SLFRSH   (1 << 22) /* SDRAM Self-Refresh Control/Status */
 
#define MDREFR_APD   (1 << 20) /* SDRAM/SSRAM Auto-Power-Down Enable */
 
#define MDREFR_K2DB2   (1 << 19) /* SDCLK2 Divide by 2 Control/Status */
 
#define MDREFR_K2RUN   (1 << 18) /* SDCLK2 Run Control/Status */
 
#define MDREFR_K1DB2   (1 << 17) /* SDCLK1 Divide by 2 Control/Status */
 
#define MDREFR_K1RUN   (1 << 16) /* SDCLK1 Run Control/Status */
 
#define MDREFR_E1PIN   (1 << 15) /* SDCKE1 Level Control/Status */
 
#define MDREFR_K0DB2   (1 << 14) /* SDCLK0 Divide by 2 Control/Status */
 
#define MDREFR_K0RUN   (1 << 13) /* SDCLK0 Run Control/Status */
 
#define MDREFR_E0PIN   (1 << 12) /* SDCKE0 Level Control/Status */
 

Macro Definition Documentation

#define BOOT_DEF   (SMEMC_VIRT + 0x44) /* Read-Only Boot-Time Register. Contains BOOT_SEL and PKG_SEL */

Definition at line 34 of file smemc.h.

#define CSADRCFG0   (SMEMC_VIRT + 0x80) /* Address Configuration Register for CS0 */

Definition at line 36 of file smemc.h.

#define CSADRCFG1   (SMEMC_VIRT + 0x84) /* Address Configuration Register for CS1 */

Definition at line 37 of file smemc.h.

#define CSADRCFG2   (SMEMC_VIRT + 0x88) /* Address Configuration Register for CS2 */

Definition at line 38 of file smemc.h.

#define CSADRCFG3   (SMEMC_VIRT + 0x8C) /* Address Configuration Register for CS3 */

Definition at line 39 of file smemc.h.

#define MCATT (   s)    (SMEMC_VIRT + 0x30 + ((s)<<2)) /* Card interface Attribute Space Socket s Timing Configuration */

Definition at line 47 of file smemc.h.

#define MCATT0   (SMEMC_VIRT + 0x30) /* Card interface Attribute Space Socket 0 Timing Configuration */

Definition at line 29 of file smemc.h.

#define MCATT1   (SMEMC_VIRT + 0x34) /* Card interface Attribute Space Socket 1 Timing Configuration */

Definition at line 30 of file smemc.h.

#define MCIO (   s)    (SMEMC_VIRT + 0x38 + ((s)<<2)) /* Card interface I/O Space Socket s Timing Configuration */

Definition at line 48 of file smemc.h.

#define MCIO0   (SMEMC_VIRT + 0x38) /* Card interface I/O Space Socket 0 Timing Configuration */

Definition at line 31 of file smemc.h.

#define MCIO1   (SMEMC_VIRT + 0x3C) /* Card interface I/O Space Socket 1 Timing Configuration */

Definition at line 32 of file smemc.h.

#define MCMEM (   s)    (SMEMC_VIRT + 0x28 + ((s)<<2)) /* Card interface Common Memory Space Socket s Timing */

Definition at line 46 of file smemc.h.

#define MCMEM0   (SMEMC_VIRT + 0x28) /* Card interface Common Memory Space Socket 0 Timing */

Definition at line 27 of file smemc.h.

#define MCMEM1   (SMEMC_VIRT + 0x2C) /* Card interface Common Memory Space Socket 1 Timing */

Definition at line 28 of file smemc.h.

#define MDCNFG   (SMEMC_VIRT + 0x00) /* SDRAM Configuration Register 0 */

Definition at line 18 of file smemc.h.

#define MDCNFG_DE0   (1 << 0) /* SDRAM Bank 0 Enable */

Definition at line 54 of file smemc.h.

#define MDCNFG_DE1   (1 << 1) /* SDRAM Bank 1 Enable */

Definition at line 55 of file smemc.h.

#define MDCNFG_DE2   (1 << 16) /* SDRAM Bank 2 Enable */

Definition at line 56 of file smemc.h.

#define MDCNFG_DE3   (1 << 17) /* SDRAM Bank 3 Enable */

Definition at line 57 of file smemc.h.

#define MDMRS   (SMEMC_VIRT + 0x40) /* MRS value to be written to SDRAM */

Definition at line 33 of file smemc.h.

#define MDREFR   (SMEMC_VIRT + 0x04) /* SDRAM Refresh Control Register */

Definition at line 19 of file smemc.h.

#define MDREFR_APD   (1 << 20) /* SDRAM/SSRAM Auto-Power-Down Enable */

Definition at line 64 of file smemc.h.

#define MDREFR_E0PIN   (1 << 12) /* SDCKE0 Level Control/Status */

Definition at line 72 of file smemc.h.

#define MDREFR_E1PIN   (1 << 15) /* SDCKE1 Level Control/Status */

Definition at line 69 of file smemc.h.

#define MDREFR_K0DB2   (1 << 14) /* SDCLK0 Divide by 2 Control/Status */

Definition at line 70 of file smemc.h.

#define MDREFR_K0DB4   (1 << 29) /* SDCLK0 Divide by 4 Control/Status */

Definition at line 59 of file smemc.h.

#define MDREFR_K0FREE   (1 << 23) /* SDRAM Free-Running Control */

Definition at line 62 of file smemc.h.

#define MDREFR_K0RUN   (1 << 13) /* SDCLK0 Run Control/Status */

Definition at line 71 of file smemc.h.

#define MDREFR_K1DB2   (1 << 17) /* SDCLK1 Divide by 2 Control/Status */

Definition at line 67 of file smemc.h.

#define MDREFR_K1FREE   (1 << 24) /* SDRAM Free-Running Control */

Definition at line 61 of file smemc.h.

#define MDREFR_K1RUN   (1 << 16) /* SDCLK1 Run Control/Status */

Definition at line 68 of file smemc.h.

#define MDREFR_K2DB2   (1 << 19) /* SDCLK2 Divide by 2 Control/Status */

Definition at line 65 of file smemc.h.

#define MDREFR_K2FREE   (1 << 25) /* SDRAM Free-Running Control */

Definition at line 60 of file smemc.h.

#define MDREFR_K2RUN   (1 << 18) /* SDCLK2 Run Control/Status */

Definition at line 66 of file smemc.h.

#define MDREFR_SLFRSH   (1 << 22) /* SDRAM Self-Refresh Control/Status */

Definition at line 63 of file smemc.h.

#define MECR   (SMEMC_VIRT + 0x14) /* Expansion Memory (PCMCIA/Compact Flash) Bus Configuration */

Definition at line 23 of file smemc.h.

#define MECR_CIT   (1 << 1) /* Card Is There: 0 -> no card, 1 -> card inserted */

Definition at line 52 of file smemc.h.

#define MECR_NOS   (1 << 0) /* Number Of Sockets: 0 -> 1 sock, 1 -> 2 sock */

Definition at line 51 of file smemc.h.

#define MEMCLKCFG   (SMEMC_VIRT + 0x68) /* Clock Configuration */

Definition at line 35 of file smemc.h.

#define MSC0   (SMEMC_VIRT + 0x08) /* Static Memory Control Register 0 */

Definition at line 20 of file smemc.h.

#define MSC1   (SMEMC_VIRT + 0x0C) /* Static Memory Control Register 1 */

Definition at line 21 of file smemc.h.

#define MSC2   (SMEMC_VIRT + 0x10) /* Static Memory Control Register 2 */

Definition at line 22 of file smemc.h.

#define PXA2XX_SMEMC_BASE   0x48000000

Definition at line 14 of file smemc.h.

#define PXA3XX_SMEMC_BASE   0x4a000000

Definition at line 15 of file smemc.h.

#define SMEMC_VIRT   IOMEM(0xf6000000)

Definition at line 16 of file smemc.h.

#define SXCNFG   (SMEMC_VIRT + 0x1C) /* Synchronous Static Memory Control Register */

Definition at line 25 of file smemc.h.

#define SXLCR   (SMEMC_VIRT + 0x18) /* LCR value to be written to SDRAM-Timing Synchronous Flash */

Definition at line 24 of file smemc.h.

#define SXMRS   (SMEMC_VIRT + 0x24) /* MRS value to be written to Synchronous Flash or SMROM */

Definition at line 26 of file smemc.h.