OMAP3+: voltage: add scalable flag to voltagedomain
Add a 'bool scalable' flag to the struct powerdomain and set it for the scalable domains on OMAP3 and OMAP4. Signed-off-by: Kevin Hilman <khilman@ti.com>
This commit is contained in:
Родитель
ace19ffa9a
Коммит
37efca7e9d
|
@ -1054,6 +1054,9 @@ int __init omap_voltage_late_init(void)
|
||||||
pr_err("%s: Unable to create voltage debugfs main dir\n",
|
pr_err("%s: Unable to create voltage debugfs main dir\n",
|
||||||
__func__);
|
__func__);
|
||||||
list_for_each_entry(voltdm, &voltdm_list, node) {
|
list_for_each_entry(voltdm, &voltdm_list, node) {
|
||||||
|
if (!voltdm->scalable)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (voltdm->vdd) {
|
if (voltdm->vdd) {
|
||||||
if (omap_vdd_data_configure(voltdm))
|
if (omap_vdd_data_configure(voltdm))
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -53,11 +53,13 @@ struct omap_vfsm_instance_data {
|
||||||
/**
|
/**
|
||||||
* struct voltagedomain - omap voltage domain global structure.
|
* struct voltagedomain - omap voltage domain global structure.
|
||||||
* @name: Name of the voltage domain which can be used as a unique identifier.
|
* @name: Name of the voltage domain which can be used as a unique identifier.
|
||||||
|
* @scalable: Whether or not this voltage domain is scalable
|
||||||
* @node: list_head linking all voltage domains
|
* @node: list_head linking all voltage domains
|
||||||
* @vdd: to be removed
|
* @vdd: to be removed
|
||||||
*/
|
*/
|
||||||
struct voltagedomain {
|
struct voltagedomain {
|
||||||
char *name;
|
char *name;
|
||||||
|
bool scalable;
|
||||||
struct list_head node;
|
struct list_head node;
|
||||||
struct omap_vdd_info *vdd;
|
struct omap_vdd_info *vdd;
|
||||||
};
|
};
|
||||||
|
|
|
@ -61,11 +61,13 @@ static struct omap_vdd_info omap3_vdd2_info = {
|
||||||
|
|
||||||
static struct voltagedomain omap3_voltdm_mpu = {
|
static struct voltagedomain omap3_voltdm_mpu = {
|
||||||
.name = "mpu_iva",
|
.name = "mpu_iva",
|
||||||
|
.scalable = true,
|
||||||
.vdd = &omap3_vdd1_info,
|
.vdd = &omap3_vdd1_info,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct voltagedomain omap3_voltdm_core = {
|
static struct voltagedomain omap3_voltdm_core = {
|
||||||
.name = "core",
|
.name = "core",
|
||||||
|
.scalable = true,
|
||||||
.vdd = &omap3_vdd2_info,
|
.vdd = &omap3_vdd2_info,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -70,16 +70,19 @@ static struct omap_vdd_info omap4_vdd_core_info = {
|
||||||
|
|
||||||
static struct voltagedomain omap4_voltdm_mpu = {
|
static struct voltagedomain omap4_voltdm_mpu = {
|
||||||
.name = "mpu",
|
.name = "mpu",
|
||||||
|
.scalable = true,
|
||||||
.vdd = &omap4_vdd_mpu_info,
|
.vdd = &omap4_vdd_mpu_info,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct voltagedomain omap4_voltdm_iva = {
|
static struct voltagedomain omap4_voltdm_iva = {
|
||||||
.name = "iva",
|
.name = "iva",
|
||||||
|
.scalable = true,
|
||||||
.vdd = &omap4_vdd_iva_info,
|
.vdd = &omap4_vdd_iva_info,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct voltagedomain omap4_voltdm_core = {
|
static struct voltagedomain omap4_voltdm_core = {
|
||||||
.name = "core",
|
.name = "core",
|
||||||
|
.scalable = true,
|
||||||
.vdd = &omap4_vdd_core_info,
|
.vdd = &omap4_vdd_core_info,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче