ARM: cpu topology: Add debugfs interface for cpu_power
[cmplus.git] / arch / arm / mach-omap2 / vp3xxx_data.c
blob6db26046130e8342a3cc39b42eb17c648740efe8
1 /*
2 * OMAP3 Voltage Processor (VP) 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
10 * Kalle Jokiniemi
11 * Paul Walmsley
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.
18 #include <linux/io.h>
19 #include <linux/err.h>
20 #include <linux/init.h>
22 #include <plat/common.h>
24 #include "prm-regbits-34xx.h"
25 #include "voltage.h"
27 #include "vp.h"
28 #include "prm2xxx_3xxx.h"
30 static const struct omap_vp_ops omap3_vp_ops = {
31 .check_txdone = omap3_prm_vp_check_txdone,
32 .clear_txdone = omap3_prm_vp_clear_txdone,
36 * VP data common to 34xx/36xx chips
37 * XXX This stuff presumably belongs in the vp3xxx.c or vp.c file.
39 static const struct omap_vp_common omap3_vp_common = {
40 .vpconfig_erroroffset_mask = OMAP3430_ERROROFFSET_MASK,
41 .vpconfig_errorgain_mask = OMAP3430_ERRORGAIN_MASK,
42 .vpconfig_initvoltage_mask = OMAP3430_INITVOLTAGE_MASK,
43 .vpconfig_timeouten = OMAP3430_TIMEOUTEN_MASK,
44 .vpconfig_initvdd = OMAP3430_INITVDD_MASK,
45 .vpconfig_forceupdate = OMAP3430_FORCEUPDATE_MASK,
46 .vpconfig_vpenable = OMAP3430_VPENABLE_MASK,
47 .vstatus_vpidle = OMAP3430_VPINIDLE_MASK,
48 .vstepmin_smpswaittimemin_shift = OMAP3430_SMPSWAITTIMEMIN_SHIFT,
49 .vstepmax_smpswaittimemax_shift = OMAP3430_SMPSWAITTIMEMAX_SHIFT,
50 .vstepmin_stepmin_shift = OMAP3430_VSTEPMIN_SHIFT,
51 .vstepmax_stepmax_shift = OMAP3430_VSTEPMAX_SHIFT,
52 .vlimitto_vddmin_shift = OMAP3430_VDDMIN_SHIFT,
53 .vlimitto_vddmax_shift = OMAP3430_VDDMAX_SHIFT,
54 .vlimitto_timeout_shift = OMAP3430_TIMEOUT_SHIFT,
55 .vpvoltage_mask = OMAP3430_VPVOLTAGE_MASK,
57 .ops = &omap3_vp_ops,
60 struct omap_vp_instance omap3_vp_mpu = {
61 .id = OMAP3_PRM_IRQ_VDD_MPU_ID,
62 .common = &omap3_vp_common,
63 .vpconfig = OMAP3_PRM_VP1_CONFIG_OFFSET,
64 .vstepmin = OMAP3_PRM_VP1_VSTEPMIN_OFFSET,
65 .vstepmax = OMAP3_PRM_VP1_VSTEPMAX_OFFSET,
66 .vlimitto = OMAP3_PRM_VP1_VLIMITTO_OFFSET,
67 .vstatus = OMAP3_PRM_VP1_STATUS_OFFSET,
68 .voltage = OMAP3_PRM_VP1_VOLTAGE_OFFSET,
71 struct omap_vp_instance omap3_vp_core = {
72 .id = OMAP3_PRM_IRQ_VDD_CORE_ID,
73 .common = &omap3_vp_common,
74 .vpconfig = OMAP3_PRM_VP2_CONFIG_OFFSET,
75 .vstepmin = OMAP3_PRM_VP2_VSTEPMIN_OFFSET,
76 .vstepmax = OMAP3_PRM_VP2_VSTEPMAX_OFFSET,
77 .vlimitto = OMAP3_PRM_VP2_VLIMITTO_OFFSET,
78 .vstatus = OMAP3_PRM_VP2_STATUS_OFFSET,
79 .voltage = OMAP3_PRM_VP2_VOLTAGE_OFFSET,