1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 #include <linux/kernel.h>
33
34 #include "opp2xxx.h"
35 #include "sdrc.h"
36 #include "clock.h"
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56 const struct prcm_config omap2420_rate_table[] = {
57
58 {S12M, S660M, S330M, RI_CM_CLKSEL_MPU_VAL,
59 RI_CM_CLKSEL_DSP_VAL, RI_CM_CLKSEL_GFX_VAL,
60 RI_CM_CLKSEL1_CORE_VAL, MI_CM_CLKSEL1_PLL_12_VAL,
61 MX_CLKSEL2_PLL_2x_VAL, 0, SDRC_RFR_CTRL_165MHz,
62 RATE_IN_242X},
63
64
65 {S12M, S600M, S300M, RII_CM_CLKSEL_MPU_VAL,
66 RII_CM_CLKSEL_DSP_VAL, RII_CM_CLKSEL_GFX_VAL,
67 RII_CM_CLKSEL1_CORE_VAL, MII_CM_CLKSEL1_PLL_12_VAL,
68 MX_CLKSEL2_PLL_2x_VAL, 0, SDRC_RFR_CTRL_100MHz,
69 RATE_IN_242X},
70
71 {S13M, S600M, S300M, RII_CM_CLKSEL_MPU_VAL,
72 RII_CM_CLKSEL_DSP_VAL, RII_CM_CLKSEL_GFX_VAL,
73 RII_CM_CLKSEL1_CORE_VAL, MII_CM_CLKSEL1_PLL_13_VAL,
74 MX_CLKSEL2_PLL_2x_VAL, 0, SDRC_RFR_CTRL_100MHz,
75 RATE_IN_242X},
76
77
78 {S12M, S532M, S266M, RIII_CM_CLKSEL_MPU_VAL,
79 RIII_CM_CLKSEL_DSP_VAL, RIII_CM_CLKSEL_GFX_VAL,
80 RIII_CM_CLKSEL1_CORE_VAL, MIII_CM_CLKSEL1_PLL_12_VAL,
81 MX_CLKSEL2_PLL_2x_VAL, 0, SDRC_RFR_CTRL_133MHz,
82 RATE_IN_242X},
83
84 {S13M, S532M, S266M, RIII_CM_CLKSEL_MPU_VAL,
85 RIII_CM_CLKSEL_DSP_VAL, RIII_CM_CLKSEL_GFX_VAL,
86 RIII_CM_CLKSEL1_CORE_VAL, MIII_CM_CLKSEL1_PLL_13_VAL,
87 MX_CLKSEL2_PLL_2x_VAL, 0, SDRC_RFR_CTRL_133MHz,
88 RATE_IN_242X},
89
90
91 {S12M, S300M, S150M, RII_CM_CLKSEL_MPU_VAL,
92 RII_CM_CLKSEL_DSP_VAL, RII_CM_CLKSEL_GFX_VAL,
93 RII_CM_CLKSEL1_CORE_VAL, MII_CM_CLKSEL1_PLL_12_VAL,
94 MX_CLKSEL2_PLL_2x_VAL, 0, SDRC_RFR_CTRL_100MHz,
95 RATE_IN_242X},
96
97 {S13M, S300M, S150M, RII_CM_CLKSEL_MPU_VAL,
98 RII_CM_CLKSEL_DSP_VAL, RII_CM_CLKSEL_GFX_VAL,
99 RII_CM_CLKSEL1_CORE_VAL, MII_CM_CLKSEL1_PLL_13_VAL,
100 MX_CLKSEL2_PLL_2x_VAL, 0, SDRC_RFR_CTRL_100MHz,
101 RATE_IN_242X},
102
103
104 {S12M, S266M, S133M, RIII_CM_CLKSEL_MPU_VAL,
105 RIII_CM_CLKSEL_DSP_VAL, RIII_CM_CLKSEL_GFX_VAL,
106 RIII_CM_CLKSEL1_CORE_VAL, MIII_CM_CLKSEL1_PLL_12_VAL,
107 MX_CLKSEL2_PLL_2x_VAL, 0, SDRC_RFR_CTRL_133MHz,
108 RATE_IN_242X},
109
110 {S13M, S266M, S133M, RIII_CM_CLKSEL_MPU_VAL,
111 RIII_CM_CLKSEL_DSP_VAL, RIII_CM_CLKSEL_GFX_VAL,
112 RIII_CM_CLKSEL1_CORE_VAL, MIII_CM_CLKSEL1_PLL_13_VAL,
113 MX_CLKSEL2_PLL_2x_VAL, 0, SDRC_RFR_CTRL_133MHz,
114 RATE_IN_242X},
115
116
117 {S12M, S12M, S12M, RVII_CM_CLKSEL_MPU_VAL,
118 RVII_CM_CLKSEL_DSP_VAL, RVII_CM_CLKSEL_GFX_VAL,
119 RVII_CM_CLKSEL1_CORE_VAL, MVII_CM_CLKSEL1_PLL_12_VAL,
120 MX_CLKSEL2_PLL_2x_VAL, 0, SDRC_RFR_CTRL_BYPASS,
121 RATE_IN_242X},
122
123
124 {S13M, S13M, S13M, RVII_CM_CLKSEL_MPU_VAL,
125 RVII_CM_CLKSEL_DSP_VAL, RVII_CM_CLKSEL_GFX_VAL,
126 RVII_CM_CLKSEL1_CORE_VAL, MVII_CM_CLKSEL1_PLL_13_VAL,
127 MX_CLKSEL2_PLL_2x_VAL, 0, SDRC_RFR_CTRL_BYPASS,
128 RATE_IN_242X},
129
130 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
131 };