1 #ifndef ____ASM_ARCH_SDRC_H
2 #define ____ASM_ARCH_SDRC_H
22 #define SDRC_SYSCONFIG 0x010
23 #define SDRC_CS_CFG 0x040
24 #define SDRC_SHARING 0x044
25 #define SDRC_ERR_TYPE 0x04C
26 #define SDRC_DLLA_CTRL 0x060
27 #define SDRC_DLLA_STATUS 0x064
28 #define SDRC_DLLB_CTRL 0x068
29 #define SDRC_DLLB_STATUS 0x06C
30 #define SDRC_POWER 0x070
31 #define SDRC_MCFG_0 0x080
32 #define SDRC_MR_0 0x084
33 #define SDRC_EMR2_0 0x08c
34 #define SDRC_ACTIM_CTRL_A_0 0x09c
35 #define SDRC_ACTIM_CTRL_B_0 0x0a0
36 #define SDRC_RFR_CTRL_0 0x0a4
37 #define SDRC_MANUAL_0 0x0a8
38 #define SDRC_MCFG_1 0x0B0
39 #define SDRC_MR_1 0x0B4
40 #define SDRC_EMR2_1 0x0BC
41 #define SDRC_ACTIM_CTRL_A_1 0x0C4
42 #define SDRC_ACTIM_CTRL_B_1 0x0C8
43 #define SDRC_RFR_CTRL_1 0x0D4
44 #define SDRC_MANUAL_1 0x0D8
46 #define SDRC_POWER_AUTOCOUNT_SHIFT 8
47 #define SDRC_POWER_AUTOCOUNT_MASK (0xffff << SDRC_POWER_AUTOCOUNT_SHIFT)
48 #define SDRC_POWER_CLKCTRL_SHIFT 4
49 #define SDRC_POWER_CLKCTRL_MASK (0x3 << SDRC_POWER_CLKCTRL_SHIFT)
50 #define SDRC_SELF_REFRESH_ON_AUTOCOUNT (0x2 << SDRC_POWER_CLKCTRL_SHIFT)
76 #define SDRC_RFR_CTRL_165MHz (0x00044c00 | 1)
77 #define SDRC_RFR_CTRL_133MHz (0x0003de00 | 1)
78 #define SDRC_RFR_CTRL_100MHz (0x0002da01 | 1)
79 #define SDRC_RFR_CTRL_110MHz (0x0002da01 | 1)
80 #define SDRC_RFR_CTRL_BYPASS (0x00005000 | 1)
87 #define OMAP242X_SMS_REGADDR(reg) \
88 (void __iomem *)OMAP2_L3_IO_ADDRESS(OMAP2420_SMS_BASE + reg)
89 #define OMAP243X_SMS_REGADDR(reg) \
90 (void __iomem *)OMAP2_L3_IO_ADDRESS(OMAP243X_SMS_BASE + reg)
91 #define OMAP343X_SMS_REGADDR(reg) \
92 (void __iomem *)OMAP2_L3_IO_ADDRESS(OMAP343X_SMS_BASE + reg)
96 #define SMS_SYSCONFIG 0x010
97 #define SMS_ROT_CONTROL(context) (0x180 + 0x10 * context)
98 #define SMS_ROT_SIZE(context) (0x184 + 0x10 * context)
99 #define SMS_ROT_PHYSICAL_BA(context) (0x188 + 0x10 * context)
103 #ifndef __ASSEMBLER__
126 #ifdef CONFIG_SOC_HAS_OMAP2_SDRC
144 #ifdef CONFIG_ARCH_OMAP2
146 struct memory_timings {