OMAP3: PM: add common OPP definitions and use them on Beagle
[linux-ginger.git] / arch / arm / mach-omap2 / omap3-opp.h
bloba6428668a713225be8289f283ae6ffcbcf385fe2
1 #ifndef __OMAP3_OPP_H_
2 #define __OMAP3_OPP_H_
4 #include <plat/omap-pm.h>
6 /* MPU speeds */
7 #define S600M 600000000
8 #define S550M 550000000
9 #define S500M 500000000
10 #define S250M 250000000
11 #define S125M 125000000
13 /* DSP speeds */
14 #define S430M 430000000
15 #define S400M 400000000
16 #define S360M 360000000
17 #define S180M 180000000
18 #define S90M 90000000
20 /* L3 speeds */
21 #define S83M 83000000
22 #define S166M 166000000
24 static struct omap_opp omap3_mpu_rate_table[] = {
25 {0, 0, 0},
26 /*OPP1*/
27 {S125M, VDD1_OPP1, 0x18},
28 /*OPP2*/
29 {S250M, VDD1_OPP2, 0x20},
30 /*OPP3*/
31 {S500M, VDD1_OPP3, 0x30},
32 /*OPP4*/
33 {S550M, VDD1_OPP4, 0x36},
34 /*OPP5*/
35 {S600M, VDD1_OPP5, 0x3C},
38 static struct omap_opp omap3_l3_rate_table[] = {
39 {0, 0, 0},
40 /*OPP1*/
41 {0, VDD2_OPP1, 0x18},
42 /*OPP2*/
43 {S83M, VDD2_OPP2, 0x20},
44 /*OPP3*/
45 {S166M, VDD2_OPP3, 0x2C},
48 static struct omap_opp omap3_dsp_rate_table[] = {
49 {0, 0, 0},
50 /*OPP1*/
51 {S90M, VDD1_OPP1, 0x18},
52 /*OPP2*/
53 {S180M, VDD1_OPP2, 0x20},
54 /*OPP3*/
55 {S360M, VDD1_OPP3, 0x30},
56 /*OPP4*/
57 {S400M, VDD1_OPP4, 0x36},
58 /*OPP5*/
59 {S430M, VDD1_OPP5, 0x3C},
62 #endif