ARM: OMAP4: voltage: add support for VOLTSETUP_x_OFF register
OMAP4 has two VOLTSETUP registers. One is controlling retention and sleep voltage setup times, the other one off mode setup times. Both of these need to be setup for stable behavior of the device. The code setting up the new register will be added in the next patch. Signed-off-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
This commit is contained in:
parent
c589eb3869
commit
27c16b7026
2 changed files with 5 additions and 0 deletions
|
@ -40,12 +40,14 @@ struct powerdomain;
|
||||||
* data
|
* data
|
||||||
* @voltsetup_mask: SETUP_TIME* bitmask in the PRM_VOLTSETUP* register
|
* @voltsetup_mask: SETUP_TIME* bitmask in the PRM_VOLTSETUP* register
|
||||||
* @voltsetup_reg: register offset of PRM_VOLTSETUP from PRM base
|
* @voltsetup_reg: register offset of PRM_VOLTSETUP from PRM base
|
||||||
|
* @voltsetup_off_reg: register offset of PRM_VOLTSETUP_OFF from PRM base
|
||||||
*
|
*
|
||||||
* XXX What about VOLTOFFSET/VOLTCTRL?
|
* XXX What about VOLTOFFSET/VOLTCTRL?
|
||||||
*/
|
*/
|
||||||
struct omap_vfsm_instance {
|
struct omap_vfsm_instance {
|
||||||
u32 voltsetup_mask;
|
u32 voltsetup_mask;
|
||||||
u8 voltsetup_reg;
|
u8 voltsetup_reg;
|
||||||
|
u8 voltsetup_off_reg;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -34,14 +34,17 @@
|
||||||
|
|
||||||
static const struct omap_vfsm_instance omap4_vdd_mpu_vfsm = {
|
static const struct omap_vfsm_instance omap4_vdd_mpu_vfsm = {
|
||||||
.voltsetup_reg = OMAP4_PRM_VOLTSETUP_MPU_RET_SLEEP_OFFSET,
|
.voltsetup_reg = OMAP4_PRM_VOLTSETUP_MPU_RET_SLEEP_OFFSET,
|
||||||
|
.voltsetup_off_reg = OMAP4_PRM_VOLTSETUP_MPU_OFF_OFFSET,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct omap_vfsm_instance omap4_vdd_iva_vfsm = {
|
static const struct omap_vfsm_instance omap4_vdd_iva_vfsm = {
|
||||||
.voltsetup_reg = OMAP4_PRM_VOLTSETUP_IVA_RET_SLEEP_OFFSET,
|
.voltsetup_reg = OMAP4_PRM_VOLTSETUP_IVA_RET_SLEEP_OFFSET,
|
||||||
|
.voltsetup_off_reg = OMAP4_PRM_VOLTSETUP_IVA_OFF_OFFSET,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct omap_vfsm_instance omap4_vdd_core_vfsm = {
|
static const struct omap_vfsm_instance omap4_vdd_core_vfsm = {
|
||||||
.voltsetup_reg = OMAP4_PRM_VOLTSETUP_CORE_RET_SLEEP_OFFSET,
|
.voltsetup_reg = OMAP4_PRM_VOLTSETUP_CORE_RET_SLEEP_OFFSET,
|
||||||
|
.voltsetup_off_reg = OMAP4_PRM_VOLTSETUP_CORE_OFF_OFFSET,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct voltagedomain omap4_voltdm_mpu = {
|
static struct voltagedomain omap4_voltdm_mpu = {
|
||||||
|
|
Loading…
Reference in a new issue