/Linux-v4.19/arch/arm/mach-omap2/ |
D | voltage.c | 55 unsigned long voltdm_get_voltage(struct voltagedomain *voltdm) in voltdm_get_voltage() argument 57 if (!voltdm || IS_ERR(voltdm)) { in voltdm_get_voltage() 62 return voltdm->nominal_volt; in voltdm_get_voltage() 73 int voltdm_scale(struct voltagedomain *voltdm, in voltdm_scale() argument 79 if (!voltdm || IS_ERR(voltdm)) { in voltdm_scale() 84 if (!voltdm->scale) { in voltdm_scale() 86 __func__, voltdm->name); in voltdm_scale() 90 if (!voltdm->volt_data) { in voltdm_scale() 92 __func__, voltdm->name); in voltdm_scale() 97 for (i = 0; voltdm->volt_data[i].volt_nominal != 0; i++) { in voltdm_scale() [all …]
|
D | vp.c | 13 static u32 _vp_set_init_voltage(struct voltagedomain *voltdm, u32 volt) in _vp_set_init_voltage() argument 15 struct omap_vp_instance *vp = voltdm->vp; in _vp_set_init_voltage() 19 vsel = voltdm->pmic->uv_to_vsel(volt); in _vp_set_init_voltage() 21 vpconfig = voltdm->read(vp->vpconfig); in _vp_set_init_voltage() 26 voltdm->write(vpconfig, vp->vpconfig); in _vp_set_init_voltage() 29 voltdm->write((vpconfig | vp->common->vpconfig_initvdd), in _vp_set_init_voltage() 33 voltdm->write(vpconfig, vp->vpconfig); in _vp_set_init_voltage() 39 void __init omap_vp_init(struct voltagedomain *voltdm) in omap_vp_init() argument 41 struct omap_vp_instance *vp = voltdm->vp; in omap_vp_init() 45 if (!voltdm->pmic || !voltdm->pmic->uv_to_vsel) { in omap_vp_init() [all …]
|
D | vc.c | 94 static int omap_vc_config_channel(struct voltagedomain *voltdm) in omap_vc_config_channel() argument 96 struct omap_vc_channel *vc = voltdm->vc; in omap_vc_config_channel() 105 voltdm->rmw(CFG_CHANNEL_MASK << vc->cfg_channel_sa_shift, in omap_vc_config_channel() 113 int omap_vc_pre_scale(struct voltagedomain *voltdm, in omap_vc_pre_scale() argument 117 struct omap_vc_channel *vc = voltdm->vc; in omap_vc_pre_scale() 121 if (!voltdm->pmic) { in omap_vc_pre_scale() 123 __func__, voltdm->name); in omap_vc_pre_scale() 127 if (!voltdm->pmic->uv_to_vsel) { in omap_vc_pre_scale() 129 __func__, voltdm->name); in omap_vc_pre_scale() 133 if (!voltdm->read || !voltdm->write) { in omap_vc_pre_scale() [all …]
|
D | powerdomains3xxx_data.c | 53 .voltdm = { .name = "mpu_iva" }, 69 .voltdm = { .name = "mpu_iva" }, 85 .voltdm = { .name = "mpu_iva" }, 112 .voltdm = { .name = "core" }, 134 .voltdm = { .name = "core" }, 151 .voltdm = { .name = "core" }, 166 .voltdm = { .name = "core" }, 181 .voltdm = { .name = "core" }, 202 .voltdm = { .name = "core" }, 217 .voltdm = { .name = "core" }, [all …]
|
D | powerdomains44xx_data.c | 36 .voltdm = { .name = "core" }, 62 .voltdm = { .name = "core" }, 79 .voltdm = { .name = "iva" }, 99 .voltdm = { .name = "core" }, 117 .voltdm = { .name = "iva" }, 139 .voltdm = { .name = "wakeup" }, 155 .voltdm = { .name = "mpu" }, 172 .voltdm = { .name = "mpu" }, 189 .voltdm = { .name = "wakeup" }, 205 .voltdm = { .name = "mpu" }, [all …]
|
D | powerdomains54xx_data.c | 34 .voltdm = { .name = "core" }, 60 .voltdm = { .name = "core" }, 80 .voltdm = { .name = "core" }, 89 .voltdm = { .name = "core" }, 107 .voltdm = { .name = "mpu" }, 124 .voltdm = { .name = "mpu" }, 141 .voltdm = { .name = "wkup" }, 157 .voltdm = { .name = "mpu" }, 176 .voltdm = { .name = "core" }, 186 .voltdm = { .name = "mm" }, [all …]
|
D | omap_twl.c | 223 struct voltagedomain *voltdm; in omap4_twl_init() local 228 voltdm = voltdm_lookup("mpu"); in omap4_twl_init() 229 omap_voltage_register_pmic(voltdm, &omap4_mpu_pmic); in omap4_twl_init() 231 voltdm = voltdm_lookup("iva"); in omap4_twl_init() 232 omap_voltage_register_pmic(voltdm, &omap4_iva_pmic); in omap4_twl_init() 234 voltdm = voltdm_lookup("core"); in omap4_twl_init() 235 omap_voltage_register_pmic(voltdm, &omap4_core_pmic); in omap4_twl_init() 242 struct voltagedomain *voltdm; in omap3_twl_init() local 247 voltdm = voltdm_lookup("mpu_iva"); in omap3_twl_init() 248 omap_voltage_register_pmic(voltdm, &omap3_mpu_pmic); in omap3_twl_init() [all …]
|
D | voltage.h | 86 int (*scale) (struct voltagedomain *voltdm, 154 void omap_voltage_get_volttable(struct voltagedomain *voltdm, 156 struct omap_volt_data *omap_voltage_get_voltdata(struct voltagedomain *voltdm, 158 int omap_voltage_register_pmic(struct voltagedomain *voltdm, 169 int voltdm_add_pwrdm(struct voltagedomain *voltdm, struct powerdomain *pwrdm); 170 int voltdm_scale(struct voltagedomain *voltdm, unsigned long target_volt); 171 void voltdm_reset(struct voltagedomain *voltdm); 172 unsigned long voltdm_get_voltage(struct voltagedomain *voltdm);
|
D | powerdomains43xx_data.c | 22 .voltdm = { .name = "core" }, 35 .voltdm = { .name = "mpu" }, 56 .voltdm = { .name = "rtc" }, 64 .voltdm = { .name = "core" }, 76 .voltdm = { .name = "tamper" }, 84 .voltdm = { .name = "core" }, 93 .voltdm = { .name = "core" },
|
D | vp.h | 118 void omap_vp_init(struct voltagedomain *voltdm); 119 void omap_vp_enable(struct voltagedomain *voltdm); 120 void omap_vp_disable(struct voltagedomain *voltdm); 121 int omap_vp_forceupdate_scale(struct voltagedomain *voltdm, 123 int omap_vp_update_errorgain(struct voltagedomain *voltdm,
|
D | powerdomains33xx_data.c | 26 .voltdm = { .name = "core" }, 57 .voltdm = { .name = "rtc" }, 67 .voltdm = { .name = "core" }, 77 .voltdm = { .name = "core" }, 120 .voltdm = { .name = "mpu" }, 163 .voltdm = { .name = "core" },
|
D | smartreflex-class3.c | 20 unsigned long volt = voltdm_get_voltage(sr->voltdm); in sr_class3_enable() 28 omap_vp_enable(sr->voltdm); in sr_class3_enable() 35 omap_vp_disable(sr->voltdm); in sr_class3_disable() 38 voltdm_reset(sr->voltdm); in sr_class3_disable()
|
D | voltagedomains54xx_data.c | 85 struct voltagedomain *voltdm; in omap54xx_voltagedomains_init() local 88 for (i = 0; voltdm = voltagedomains_omap5[i], voltdm; i++) in omap54xx_voltagedomains_init() 89 voltdm->sys_clk.name = sys_clk_name; in omap54xx_voltagedomains_init()
|
D | powerdomains2xxx_data.c | 41 .voltdm = { .name = "core" }, 56 .voltdm = { .name = "core" }, 75 .voltdm = { .name = "core" }, 97 .voltdm = { .name = "core" },
|
D | vc.h | 125 void omap_vc_init_channel(struct voltagedomain *voltdm); 126 int omap_vc_pre_scale(struct voltagedomain *voltdm, 129 void omap_vc_post_scale(struct voltagedomain *voltdm, 132 int omap_vc_bypass_scale(struct voltagedomain *voltdm,
|
D | voltagedomains3xxx_data.c | 102 struct voltagedomain *voltdm; in omap3xxx_voltagedomains_init() local 130 for (i = 0; voltdm = voltdms[i], voltdm; i++) in omap3xxx_voltagedomains_init() 131 voltdm->sys_clk.name = sys_clk_name; in omap3xxx_voltagedomains_init()
|
D | voltagedomains44xx_data.c | 99 struct voltagedomain *voltdm; in omap44xx_voltagedomains_init() local 126 for (i = 0; voltdm = voltagedomains_omap4[i], voltdm; i++) in omap44xx_voltagedomains_init() 127 voltdm->sys_clk.name = sys_clk_name; in omap44xx_voltagedomains_init()
|
D | pm.c | 91 struct voltagedomain *voltdm; in omap2_set_init_voltage() local 117 voltdm = voltdm_lookup(vdd_name); in omap2_set_init_voltage() 118 if (!voltdm) { in omap2_set_init_voltage() 149 voltdm_scale(voltdm, bootup_volt); in omap2_set_init_voltage()
|
D | powerdomains2xxx_3xxx_data.c | 57 .voltdm = { .name = "core" }, 64 .voltdm = { .name = "wakeup" },
|
D | sr_device.c | 139 sr_data->voltdm = voltdm_lookup(sr_dev_attr->sensor_voltdm_name); in sr_dev_init() 140 if (!sr_data->voltdm) { in sr_dev_init() 146 omap_voltage_get_volttable(sr_data->voltdm, &volt_data); in sr_dev_init()
|
D | powerdomain.c | 95 struct voltagedomain *voltdm; in _pwrdm_register() local 114 voltdm = voltdm_lookup(pwrdm->voltdm.name); in _pwrdm_register() 115 if (!voltdm) { in _pwrdm_register() 117 pwrdm->name, pwrdm->voltdm.name); in _pwrdm_register() 120 pwrdm->voltdm.ptr = voltdm; in _pwrdm_register()
|
D | powerdomain.h | 117 } voltdm; member
|
/Linux-v4.19/include/linux/power/ |
D | smartreflex.h | 158 struct voltagedomain *voltdm; member 296 struct voltagedomain *voltdm; member 302 void omap_sr_enable(struct voltagedomain *voltdm); 303 void omap_sr_disable(struct voltagedomain *voltdm); 304 void omap_sr_disable_reset_volt(struct voltagedomain *voltdm); 319 static inline void omap_sr_enable(struct voltagedomain *voltdm) {} in omap_sr_enable() argument 320 static inline void omap_sr_disable(struct voltagedomain *voltdm) {} in omap_sr_disable() argument 322 struct voltagedomain *voltdm) {} in omap_sr_disable_reset_volt() argument
|
/Linux-v4.19/include/linux/platform_data/ |
D | voltage-omap.h | 35 int voltdm_scale(struct voltagedomain *voltdm, unsigned long target_volt); 36 unsigned long voltdm_get_voltage(struct voltagedomain *voltdm); 37 struct omap_volt_data *omap_voltage_get_voltdata(struct voltagedomain *voltdm,
|
/Linux-v4.19/drivers/power/avs/ |
D | smartreflex.c | 82 static struct omap_sr *_sr_lookup(struct voltagedomain *voltdm) in _sr_lookup() argument 86 if (!voltdm) { in _sr_lookup() 92 if (voltdm == sr_info->voltdm) in _sr_lookup() 575 volt_data = omap_voltage_get_voltdata(sr->voltdm, volt); in sr_enable() 698 void omap_sr_enable(struct voltagedomain *voltdm) in omap_sr_enable() argument 700 struct omap_sr *sr = _sr_lookup(voltdm); in omap_sr_enable() 730 void omap_sr_disable(struct voltagedomain *voltdm) in omap_sr_disable() argument 732 struct omap_sr *sr = _sr_lookup(voltdm); in omap_sr_disable() 762 void omap_sr_disable_reset_volt(struct voltagedomain *voltdm) in omap_sr_disable_reset_volt() argument 764 struct omap_sr *sr = _sr_lookup(voltdm); in omap_sr_disable_reset_volt() [all …]
|