2 * OMAP3 voltage domain data
4 * Copyright (C) 2007, 2010 Texas Instruments, Inc.
5 * Rajendra Nayak <rnayak@ti.com>
6 * Lesly A M <x0080970@ti.com>
7 * Thara Gopinath <thara@ti.com>
9 * Copyright (C) 2008, 2011 Nokia Corporation
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License version 2 as
15 * published by the Free Software Foundation.
17 #include <linux/kernel.h>
18 #include <linux/err.h>
19 #include <linux/init.h>
21 #include <plat/common.h>
24 #include "prm-regbits-34xx.h"
25 #include "omap_opp_data.h"
34 static const struct omap_vfsm_instance_data omap3_vdd1_vfsm_data = {
35 .voltsetup_reg = OMAP3_PRM_VOLTSETUP1_OFFSET,
36 .voltsetup_shift = OMAP3430_SETUP_TIME1_SHIFT,
37 .voltsetup_mask = OMAP3430_SETUP_TIME1_MASK,
40 static struct omap_vdd_info omap3_vdd1_info = {
41 .prm_irqst_mod = OCP_MOD,
42 .prm_irqst_reg = OMAP3_PRM_IRQSTATUS_MPU_OFFSET,
43 .vp_data = &omap3_vp1_data,
44 .vfsm = &omap3_vdd1_vfsm_data,
47 static const struct omap_vfsm_instance_data omap3_vdd2_vfsm_data = {
48 .voltsetup_reg = OMAP3_PRM_VOLTSETUP1_OFFSET,
49 .voltsetup_shift = OMAP3430_SETUP_TIME2_SHIFT,
50 .voltsetup_mask = OMAP3430_SETUP_TIME2_MASK,
53 static struct omap_vdd_info omap3_vdd2_info = {
54 .prm_irqst_mod = OCP_MOD,
55 .prm_irqst_reg = OMAP3_PRM_IRQSTATUS_MPU_OFFSET,
56 .vp_data = &omap3_vp2_data,
57 .vfsm = &omap3_vdd2_vfsm_data,
60 static struct voltagedomain omap3_voltdm_mpu = {
64 .vdd = &omap3_vdd1_info,
67 static struct voltagedomain omap3_voltdm_core = {
71 .vdd = &omap3_vdd2_info,
74 static struct voltagedomain omap3_voltdm_wkup = {
78 static struct voltagedomain *voltagedomains_omap3[] __initdata = {
85 void __init omap3xxx_voltagedomains_init(void)
88 * XXX Will depend on the process, validation, and binning
89 * for the currently-running IC
91 if (cpu_is_omap3630()) {
92 omap3_vdd1_info.volt_data = omap36xx_vddmpu_volt_data;
93 omap3_vdd2_info.volt_data = omap36xx_vddcore_volt_data;
95 omap3_vdd1_info.volt_data = omap34xx_vddmpu_volt_data;
96 omap3_vdd2_info.volt_data = omap34xx_vddcore_volt_data;
99 voltdm_init(voltagedomains_omap3);