4 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
5 * Mike Turquette <mturquette@ti.com>
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.
15 #include "prm2xxx_3xxx.h"
16 #include "prm-regbits-34xx.h"
18 static struct omap_ldo_abb_ops omap3630_ldo_abb_ops
= {
19 .check_txdone
= omap36xx_prm_abb_check_txdone
,
20 .clear_txdone
= omap36xx_prm_abb_clear_txdone
,
23 /* WARNING: OMAP3630 as per TRM rev J, has the register names inverted */
25 static struct omap_ldo_abb_setup_bits omap3630_ldo_abb_setup_bits
= {
26 .enable_mask
= OMAP_LDO_ABB_SETUP_SR2EN_MASK
,
27 .active_fbb_mask
= OMAP_LDO_ABB_SETUP_ACTIVE_FBB_SEL_MASK
,
28 .wait_count_mask
= OMAP_LDO_ABB_SETUP_SR2_WTCNT_VALUE_MASK
,
31 static struct omap_ldo_abb_ctrl_bits omap3630_ldo_abb_ctrl_bits
= {
32 .in_tansition_mask
= OMAP_LDO_ABB_CTRL_SR2_IN_TRANSITION_MASK
,
33 .status_mask
= OMAP_LDO_ABB_CTRL_SR2_STATUS_MASK
,
34 .opp_change_mask
= OMAP_LDO_ABB_CTRL_OPP_CHANGE_MASK
,
35 .opp_sel_mask
= OMAP_LDO_ABB_CTRL_OPP_SEL_MASK
,
38 struct omap_ldo_abb_instance omap3630_ldo_abb_mpu_instance
= {
39 .prm_irq_id
= OMAP3_PRM_IRQ_VDD_MPU_ID
,
40 .ctrl_reg
= OMAP3_PRM_LDO_ABB_CTRL_OFFSET
,
41 .setup_reg
= OMAP3_PRM_LDO_ABB_SETUP_OFFSET
,
42 .ctrl_bits
= &omap3630_ldo_abb_ctrl_bits
,
43 .setup_bits
= &omap3630_ldo_abb_setup_bits
,
44 .ops
= &omap3630_ldo_abb_ops
,
48 .tranx_timeout
= OMAP_ABB_TRANXDONE_TIMEOUT_US
,