blob: f0e9939a72175fc0d3cc5ffd5f809e551d254ea5 [file] [log] [blame]
Nishanth Menonf5a64222010-12-09 09:13:47 -06001/*
2 * OMAP4 OPP table definitions.
3 *
4 * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
5 * Nishanth Menon
6 * Kevin Hilman
7 * Thara Gopinath
8 * Copyright (C) 2010 Nokia Corporation.
9 * Eduardo Valentin
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
14 *
15 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
16 * kind, whether express or implied; without even the implied warranty
17 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 */
20#include <linux/module.h>
21
22#include <plat/cpu.h>
23
24#include "omap_opp_data.h"
Menon, Nishantheb05ead2011-01-05 20:49:35 +000025#include "pm.h"
Nishanth Menonf5a64222010-12-09 09:13:47 -060026
27static struct omap_opp_def __initdata omap44xx_opp_def_list[] = {
28 /* MPU OPP1 - OPP50 */
29 OPP_INITIALIZER("mpu", true, 300000000, 1100000),
30 /* MPU OPP2 - OPP100 */
31 OPP_INITIALIZER("mpu", true, 600000000, 1200000),
32 /* MPU OPP3 - OPP-Turbo */
33 OPP_INITIALIZER("mpu", false, 800000000, 1260000),
34 /* MPU OPP4 - OPP-SB */
35 OPP_INITIALIZER("mpu", false, 1008000000, 1350000),
36 /* L3 OPP1 - OPP50 */
37 OPP_INITIALIZER("l3_main_1", true, 100000000, 930000),
38 /* L3 OPP2 - OPP100, OPP-Turbo, OPP-SB */
39 OPP_INITIALIZER("l3_main_1", true, 200000000, 1100000),
40 /* TODO: add IVA, DSP, aess, fdif, gpu */
41};
42
43/**
44 * omap4_opp_init() - initialize omap4 opp table
45 */
Menon, Nishantheb05ead2011-01-05 20:49:35 +000046int __init omap4_opp_init(void)
Nishanth Menonf5a64222010-12-09 09:13:47 -060047{
48 int r = -ENODEV;
49
50 if (!cpu_is_omap44xx())
51 return r;
52
53 r = omap_init_opp_table(omap44xx_opp_def_list,
54 ARRAY_SIZE(omap44xx_opp_def_list));
55
56 return r;
57}
58device_initcall(omap4_opp_init);