ARM: cpu topology: Add debugfs interface for cpu_power
[cmplus.git] / arch / arm / mach-omap2 / ldo4xxx_data.c
blob161e9574d995ed4cfa6e252d4257edd739df72ae
1 /*
2 * OMAP4xxx LDO data
4 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
5 * Mike Turquette <mturquette@ti.com>
6 * Nishanth Menon
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #include "voltage.h"
14 #include "ldo.h"
15 #include "prm44xx.h"
16 #include "prm-regbits-44xx.h"
18 static struct omap_ldo_abb_ops omap4_ldo_abb_ops = {
19 .check_txdone = omap4_prm_abb_check_txdone,
20 .clear_txdone = omap4_prm_abb_clear_txdone,
23 static struct omap_ldo_abb_setup_bits omap4_ldo_abb_setup_bits = {
24 .enable_mask = OMAP_LDO_ABB_SETUP_SR2EN_MASK,
25 .active_fbb_mask = OMAP_LDO_ABB_SETUP_ACTIVE_FBB_SEL_MASK,
26 .wait_count_mask = OMAP_LDO_ABB_SETUP_SR2_WTCNT_VALUE_MASK,
29 static struct omap_ldo_abb_ctrl_bits omap4_ldo_abb_ctrl_bits = {
30 .in_tansition_mask = OMAP_LDO_ABB_CTRL_SR2_IN_TRANSITION_MASK,
31 .status_mask = OMAP_LDO_ABB_CTRL_SR2_STATUS_MASK,
32 .opp_change_mask = OMAP_LDO_ABB_CTRL_OPP_CHANGE_MASK,
33 .opp_sel_mask = OMAP_LDO_ABB_CTRL_OPP_SEL_MASK,
36 struct omap_ldo_abb_instance omap4_ldo_abb_mpu_instance = {
37 .prm_irq_id = OMAP4_PRM_IRQ_VDD_MPU_ID,
38 .ctrl_reg = OMAP4_PRM_LDO_ABB_MPU_CTRL_OFFSET,
39 .setup_reg = OMAP4_PRM_LDO_ABB_MPU_SETUP_OFFSET,
40 .ctrl_bits = &omap4_ldo_abb_ctrl_bits,
41 .setup_bits = &omap4_ldo_abb_setup_bits,
42 .ops = &omap4_ldo_abb_ops,
44 .settling_time = 50,
45 .cycle_rate = 16,
46 .tranx_timeout = OMAP_ABB_TRANXDONE_TIMEOUT_US,
49 struct omap_ldo_abb_instance omap4_ldo_abb_iva_instance = {
50 .prm_irq_id = OMAP4_PRM_IRQ_VDD_IVA_ID,
51 .ctrl_reg = OMAP4_PRM_LDO_ABB_IVA_CTRL_OFFSET,
52 .setup_reg = OMAP4_PRM_LDO_ABB_IVA_SETUP_OFFSET,
53 .ctrl_bits = &omap4_ldo_abb_ctrl_bits,
54 .setup_bits = &omap4_ldo_abb_setup_bits,
55 .ops = &omap4_ldo_abb_ops,
57 .settling_time = 50,
58 .cycle_rate = 16,
59 .tranx_timeout = OMAP_ABB_TRANXDONE_TIMEOUT_US,