Home
last modified time | relevance | path

Searched refs:voltdm (Results 1 - 25 of 50) sorted by relevance

12

/kernel/linux/linux-5.10/arch/arm/mach-omap2/
H A Dvoltage.c47 * @voltdm: pointer to the voltdm for which current voltage info is needed
52 unsigned long voltdm_get_voltage(struct voltagedomain *voltdm) in voltdm_get_voltage() argument
54 if (!voltdm || IS_ERR(voltdm)) { in voltdm_get_voltage()
59 return voltdm->nominal_volt; in voltdm_get_voltage()
64 * @voltdm: pointer to the voltage domain which is to be scaled.
70 int voltdm_scale(struct voltagedomain *voltdm, in voltdm_scale() argument
76 if (!voltdm || IS_ERR(voltdm)) { in voltdm_scale()
123 voltdm_reset(struct voltagedomain *voltdm) voltdm_reset() argument
154 omap_voltage_get_volttable(struct voltagedomain *voltdm, struct omap_volt_data **volt_data) omap_voltage_get_volttable() argument
180 omap_voltage_get_voltdata(struct voltagedomain *voltdm, unsigned long volt) omap_voltage_get_voltdata() argument
216 omap_voltage_register_pmic(struct voltagedomain *voltdm, struct omap_voltdm_pmic *pmic) omap_voltage_register_pmic() argument
238 struct voltagedomain *voltdm; omap_voltage_late_init() local
277 struct voltagedomain *voltdm, *temp_voltdm; _voltdm_lookup() local
291 _voltdm_register(struct voltagedomain *voltdm) _voltdm_register() argument
312 struct voltagedomain *voltdm ; voltdm_lookup() local
[all...]
H A Dvp.c13 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 in omap_vp_init()
98 omap_vp_update_errorgain(struct voltagedomain *voltdm, unsigned long target_volt) omap_vp_update_errorgain() argument
121 omap_vp_forceupdate_scale(struct voltagedomain *voltdm, unsigned long target_volt) omap_vp_forceupdate_scale() argument
197 omap_vp_enable(struct voltagedomain *voltdm) omap_vp_enable() argument
241 omap_vp_disable(struct voltagedomain *voltdm) omap_vp_disable() argument
[all...]
H A Dvc.c65 * OMAP5 register: PRM_VC_SMPS_<voltdm>_CONFIG
105 * @voltdm: pointer to voltagdomain defining the desired VC channel
119 static int omap_vc_config_channel(struct voltagedomain *voltdm) in omap_vc_config_channel() argument
121 struct omap_vc_channel *vc = voltdm->vc; in omap_vc_config_channel()
130 voltdm->rmw(CFG_CHANNEL_MASK << vc->cfg_channel_sa_shift, in omap_vc_config_channel()
138 int omap_vc_pre_scale(struct voltagedomain *voltdm, in omap_vc_pre_scale() argument
142 struct omap_vc_channel *vc = voltdm->vc; in omap_vc_pre_scale()
146 if (!voltdm->pmic) { in omap_vc_pre_scale()
148 __func__, voltdm->name); in omap_vc_pre_scale()
152 if (!voltdm in omap_vc_pre_scale()
180 omap_vc_post_scale(struct voltagedomain *voltdm, unsigned long target_volt, u8 target_vsel, u8 current_vsel) omap_vc_post_scale() argument
194 omap_vc_bypass_scale(struct voltagedomain *voltdm, unsigned long target_volt) omap_vc_bypass_scale() argument
333 omap3_vc_init_pmic_signaling(struct voltagedomain *voltdm) omap3_vc_init_pmic_signaling() argument
375 omap3_init_voltsetup1(struct voltagedomain *voltdm, struct omap3_vc_timings *c, u32 idle) omap3_init_voltsetup1() argument
403 omap3_set_i2c_timings(struct voltagedomain *voltdm) omap3_set_i2c_timings() argument
429 omap3_set_off_timings(struct voltagedomain *voltdm) omap3_set_off_timings() argument
458 omap3_vc_init_channel(struct voltagedomain *voltdm) omap3_vc_init_channel() argument
475 omap4_calc_volt_ramp(struct voltagedomain *voltdm, u32 voltage_diff) omap4_calc_volt_ramp() argument
552 omap4_set_timings(struct voltagedomain *voltdm, bool off_mode) omap4_set_timings() argument
590 omap4_vc_init_pmic_signaling(struct voltagedomain *voltdm) omap4_vc_init_pmic_signaling() argument
600 omap4_vc_init_channel(struct voltagedomain *voltdm) omap4_vc_init_channel() argument
665 omap4_vc_i2c_timing_init(struct voltagedomain *voltdm) omap4_vc_i2c_timing_init() argument
745 omap_vc_i2c_init(struct voltagedomain *voltdm) omap_vc_i2c_init() argument
794 omap_vc_calc_vsel(struct voltagedomain *voltdm, u32 uvolt) omap_vc_calc_vsel() argument
823 omap_vc_init_channel(struct voltagedomain *voltdm) omap_vc_init_channel() argument
[all...]
H A Dpowerdomains3xxx_data.c50 .voltdm = { .name = "mpu_iva" },
66 .voltdm = { .name = "mpu_iva" },
82 .voltdm = { .name = "mpu_iva" },
109 .voltdm = { .name = "core" },
131 .voltdm = { .name = "core" },
148 .voltdm = { .name = "core" },
163 .voltdm = { .name = "core" },
178 .voltdm = { .name = "core" },
199 .voltdm = { .name = "core" },
214 .voltdm
[all...]
H A Dpowerdomains54xx_data.c31 .voltdm = { .name = "core" },
57 .voltdm = { .name = "core" },
77 .voltdm = { .name = "core" },
86 .voltdm = { .name = "core" },
104 .voltdm = { .name = "mpu" },
121 .voltdm = { .name = "mpu" },
138 .voltdm = { .name = "wkup" },
154 .voltdm = { .name = "mpu" },
173 .voltdm = { .name = "core" },
183 .voltdm
[all...]
H A Dpowerdomains44xx_data.c33 .voltdm = { .name = "core" },
59 .voltdm = { .name = "core" },
76 .voltdm = { .name = "iva" },
96 .voltdm = { .name = "core" },
114 .voltdm = { .name = "iva" },
136 .voltdm = { .name = "wakeup" },
152 .voltdm = { .name = "mpu" },
169 .voltdm = { .name = "mpu" },
186 .voltdm = { .name = "wakeup" },
202 .voltdm
[all...]
H A Dpmic-cpcap.c240 struct voltagedomain *voltdm; in omap4_cpcap_init() local
245 voltdm = voltdm_lookup("mpu"); in omap4_cpcap_init()
246 omap_voltage_register_pmic(voltdm, &omap443x_max8952_mpu); in omap4_cpcap_init()
249 voltdm = voltdm_lookup("core"); in omap4_cpcap_init()
250 omap_voltage_register_pmic(voltdm, &omap_cpcap_core); in omap4_cpcap_init()
252 voltdm = voltdm_lookup("iva"); in omap4_cpcap_init()
253 omap_voltage_register_pmic(voltdm, &omap_cpcap_iva); in omap4_cpcap_init()
255 voltdm = voltdm_lookup("core"); in omap4_cpcap_init()
256 omap_voltage_register_pmic(voltdm, &omap4_fan_core); in omap4_cpcap_init()
258 voltdm in omap4_cpcap_init()
[all...]
H A Domap_twl.c215 struct voltagedomain *voltdm; in omap4_twl_init() local
221 voltdm = voltdm_lookup("mpu"); in omap4_twl_init()
222 omap_voltage_register_pmic(voltdm, &omap4_mpu_pmic); in omap4_twl_init()
224 voltdm = voltdm_lookup("iva"); in omap4_twl_init()
225 omap_voltage_register_pmic(voltdm, &omap4_iva_pmic); in omap4_twl_init()
227 voltdm = voltdm_lookup("core"); in omap4_twl_init()
228 omap_voltage_register_pmic(voltdm, &omap4_core_pmic); in omap4_twl_init()
235 struct voltagedomain *voltdm; in omap3_twl_init() local
240 voltdm = voltdm_lookup("mpu_iva"); in omap3_twl_init()
241 omap_voltage_register_pmic(voltdm, in omap3_twl_init()
[all...]
H A Dpowerdomains43xx_data.c19 .voltdm = { .name = "core" },
32 .voltdm = { .name = "mpu" },
53 .voltdm = { .name = "rtc" },
61 .voltdm = { .name = "core" },
73 .voltdm = { .name = "tamper" },
81 .voltdm = { .name = "core" },
90 .voltdm = { .name = "core" },
H A Dvoltage.h83 int (*scale) (struct voltagedomain *voltdm,
151 void omap_voltage_get_volttable(struct voltagedomain *voltdm,
153 struct omap_volt_data *omap_voltage_get_voltdata(struct voltagedomain *voltdm,
155 int omap_voltage_register_pmic(struct voltagedomain *voltdm,
166 int voltdm_add_pwrdm(struct voltagedomain *voltdm, struct powerdomain *pwrdm);
167 int voltdm_scale(struct voltagedomain *voltdm, unsigned long target_volt);
168 void voltdm_reset(struct voltagedomain *voltdm);
169 unsigned long voltdm_get_voltage(struct voltagedomain *voltdm);
H A Dsr_device.c91 static int __init sr_init_by_name(const char *name, const char *voltdm) in sr_init_by_name() argument
131 sr_data->voltdm = voltdm_lookup(voltdm); in sr_init_by_name()
132 if (!sr_data->voltdm) { in sr_init_by_name()
134 __func__, voltdm); in sr_init_by_name()
138 omap_voltage_get_volttable(sr_data->voltdm, &volt_data); in sr_init_by_name()
204 const char *name, *voltdm; in omap_devinit_smartreflex() local
208 voltdm = sr_inst[i]; in omap_devinit_smartreflex()
209 sr_init_by_name(name, voltdm); in omap_devinit_smartreflex()
H A Dvp.h115 void omap_vp_init(struct voltagedomain *voltdm);
116 void omap_vp_enable(struct voltagedomain *voltdm);
117 void omap_vp_disable(struct voltagedomain *voltdm);
118 int omap_vp_forceupdate_scale(struct voltagedomain *voltdm,
120 int omap_vp_update_errorgain(struct voltagedomain *voltdm,
/kernel/linux/linux-6.6/arch/arm/mach-omap2/
H A Dvoltage.c47 * @voltdm: pointer to the voltdm for which current voltage info is needed
52 unsigned long voltdm_get_voltage(struct voltagedomain *voltdm) in voltdm_get_voltage() argument
54 if (!voltdm || IS_ERR(voltdm)) { in voltdm_get_voltage()
59 return voltdm->nominal_volt; in voltdm_get_voltage()
64 * @voltdm: pointer to the voltage domain which is to be scaled.
70 static int voltdm_scale(struct voltagedomain *voltdm, in voltdm_scale() argument
76 if (!voltdm || IS_ERR(voltdm)) { in voltdm_scale()
123 voltdm_reset(struct voltagedomain *voltdm) voltdm_reset() argument
154 omap_voltage_get_volttable(struct voltagedomain *voltdm, struct omap_volt_data **volt_data) omap_voltage_get_volttable() argument
180 omap_voltage_get_voltdata(struct voltagedomain *voltdm, unsigned long volt) omap_voltage_get_voltdata() argument
216 omap_voltage_register_pmic(struct voltagedomain *voltdm, struct omap_voltdm_pmic *pmic) omap_voltage_register_pmic() argument
238 struct voltagedomain *voltdm; omap_voltage_late_init() local
277 struct voltagedomain *voltdm, *temp_voltdm; _voltdm_lookup() local
291 _voltdm_register(struct voltagedomain *voltdm) _voltdm_register() argument
312 struct voltagedomain *voltdm ; voltdm_lookup() local
[all...]
H A Dvp.c13 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 in omap_vp_init()
98 omap_vp_update_errorgain(struct voltagedomain *voltdm, unsigned long target_volt) omap_vp_update_errorgain() argument
121 omap_vp_forceupdate_scale(struct voltagedomain *voltdm, unsigned long target_volt) omap_vp_forceupdate_scale() argument
197 omap_vp_enable(struct voltagedomain *voltdm) omap_vp_enable() argument
241 omap_vp_disable(struct voltagedomain *voltdm) omap_vp_disable() argument
[all...]
H A Dvc.c62 * OMAP5 register: PRM_VC_SMPS_<voltdm>_CONFIG
102 * @voltdm: pointer to voltagdomain defining the desired VC channel
116 static int omap_vc_config_channel(struct voltagedomain *voltdm) in omap_vc_config_channel() argument
118 struct omap_vc_channel *vc = voltdm->vc; in omap_vc_config_channel()
127 voltdm->rmw(CFG_CHANNEL_MASK << vc->cfg_channel_sa_shift, in omap_vc_config_channel()
135 int omap_vc_pre_scale(struct voltagedomain *voltdm, in omap_vc_pre_scale() argument
139 struct omap_vc_channel *vc = voltdm->vc; in omap_vc_pre_scale()
143 if (!voltdm->pmic) { in omap_vc_pre_scale()
145 __func__, voltdm->name); in omap_vc_pre_scale()
149 if (!voltdm in omap_vc_pre_scale()
177 omap_vc_post_scale(struct voltagedomain *voltdm, unsigned long target_volt, u8 target_vsel, u8 current_vsel) omap_vc_post_scale() argument
191 omap_vc_bypass_scale(struct voltagedomain *voltdm, unsigned long target_volt) omap_vc_bypass_scale() argument
330 omap3_vc_init_pmic_signaling(struct voltagedomain *voltdm) omap3_vc_init_pmic_signaling() argument
372 omap3_init_voltsetup1(struct voltagedomain *voltdm, struct omap3_vc_timings *c, u32 idle) omap3_init_voltsetup1() argument
400 omap3_set_i2c_timings(struct voltagedomain *voltdm) omap3_set_i2c_timings() argument
426 omap3_set_off_timings(struct voltagedomain *voltdm) omap3_set_off_timings() argument
455 omap3_vc_init_channel(struct voltagedomain *voltdm) omap3_vc_init_channel() argument
472 omap4_calc_volt_ramp(struct voltagedomain *voltdm, u32 voltage_diff) omap4_calc_volt_ramp() argument
549 omap4_set_timings(struct voltagedomain *voltdm, bool off_mode) omap4_set_timings() argument
587 omap4_vc_init_pmic_signaling(struct voltagedomain *voltdm) omap4_vc_init_pmic_signaling() argument
597 omap4_vc_init_channel(struct voltagedomain *voltdm) omap4_vc_init_channel() argument
662 omap4_vc_i2c_timing_init(struct voltagedomain *voltdm) omap4_vc_i2c_timing_init() argument
742 omap_vc_i2c_init(struct voltagedomain *voltdm) omap_vc_i2c_init() argument
791 omap_vc_calc_vsel(struct voltagedomain *voltdm, u32 uvolt) omap_vc_calc_vsel() argument
805 omap_vc_init_channel(struct voltagedomain *voltdm) omap_vc_init_channel() argument
[all...]
H A Dpowerdomains3xxx_data.c50 .voltdm = { .name = "mpu_iva" },
66 .voltdm = { .name = "mpu_iva" },
82 .voltdm = { .name = "mpu_iva" },
109 .voltdm = { .name = "core" },
131 .voltdm = { .name = "core" },
148 .voltdm = { .name = "core" },
163 .voltdm = { .name = "core" },
178 .voltdm = { .name = "core" },
199 .voltdm = { .name = "core" },
214 .voltdm
[all...]
H A Dpowerdomains54xx_data.c31 .voltdm = { .name = "core" },
57 .voltdm = { .name = "core" },
77 .voltdm = { .name = "core" },
86 .voltdm = { .name = "core" },
104 .voltdm = { .name = "mpu" },
121 .voltdm = { .name = "mpu" },
138 .voltdm = { .name = "wkup" },
154 .voltdm = { .name = "mpu" },
173 .voltdm = { .name = "core" },
183 .voltdm
[all...]
H A Dpowerdomains44xx_data.c33 .voltdm = { .name = "core" },
59 .voltdm = { .name = "core" },
76 .voltdm = { .name = "iva" },
96 .voltdm = { .name = "core" },
114 .voltdm = { .name = "iva" },
136 .voltdm = { .name = "wakeup" },
152 .voltdm = { .name = "mpu" },
169 .voltdm = { .name = "mpu" },
186 .voltdm = { .name = "wakeup" },
202 .voltdm
[all...]
H A Dpmic-cpcap.c240 struct voltagedomain *voltdm; in omap4_cpcap_init() local
245 voltdm = voltdm_lookup("mpu"); in omap4_cpcap_init()
246 omap_voltage_register_pmic(voltdm, &omap443x_max8952_mpu); in omap4_cpcap_init()
249 voltdm = voltdm_lookup("core"); in omap4_cpcap_init()
250 omap_voltage_register_pmic(voltdm, &omap_cpcap_core); in omap4_cpcap_init()
252 voltdm = voltdm_lookup("iva"); in omap4_cpcap_init()
253 omap_voltage_register_pmic(voltdm, &omap_cpcap_iva); in omap4_cpcap_init()
255 voltdm = voltdm_lookup("core"); in omap4_cpcap_init()
256 omap_voltage_register_pmic(voltdm, &omap4_fan_core); in omap4_cpcap_init()
258 voltdm in omap4_cpcap_init()
[all...]
H A Domap_twl.c215 struct voltagedomain *voltdm; in omap4_twl_init() local
221 voltdm = voltdm_lookup("mpu"); in omap4_twl_init()
222 omap_voltage_register_pmic(voltdm, &omap4_mpu_pmic); in omap4_twl_init()
224 voltdm = voltdm_lookup("iva"); in omap4_twl_init()
225 omap_voltage_register_pmic(voltdm, &omap4_iva_pmic); in omap4_twl_init()
227 voltdm = voltdm_lookup("core"); in omap4_twl_init()
228 omap_voltage_register_pmic(voltdm, &omap4_core_pmic); in omap4_twl_init()
235 struct voltagedomain *voltdm; in omap3_twl_init() local
240 voltdm = voltdm_lookup("mpu_iva"); in omap3_twl_init()
241 omap_voltage_register_pmic(voltdm, in omap3_twl_init()
[all...]
H A Dpowerdomains43xx_data.c19 .voltdm = { .name = "core" },
32 .voltdm = { .name = "mpu" },
53 .voltdm = { .name = "rtc" },
61 .voltdm = { .name = "core" },
73 .voltdm = { .name = "tamper" },
81 .voltdm = { .name = "core" },
90 .voltdm = { .name = "core" },
H A Dsr_device.c89 static int __init sr_init_by_name(const char *name, const char *voltdm) in sr_init_by_name() argument
129 sr_data->voltdm = voltdm_lookup(voltdm); in sr_init_by_name()
130 if (!sr_data->voltdm) { in sr_init_by_name()
132 __func__, voltdm); in sr_init_by_name()
136 omap_voltage_get_volttable(sr_data->voltdm, &volt_data); in sr_init_by_name()
198 const char *name, *voltdm; in omap_devinit_smartreflex() local
202 voltdm = sr_inst[i]; in omap_devinit_smartreflex()
203 sr_init_by_name(name, voltdm); in omap_devinit_smartreflex()
H A Dvoltage.h83 int (*scale) (struct voltagedomain *voltdm,
151 void omap_voltage_get_volttable(struct voltagedomain *voltdm,
153 struct omap_volt_data *omap_voltage_get_voltdata(struct voltagedomain *voltdm,
155 int omap_voltage_register_pmic(struct voltagedomain *voltdm,
166 void voltdm_reset(struct voltagedomain *voltdm);
167 unsigned long voltdm_get_voltage(struct voltagedomain *voltdm);
/kernel/linux/linux-5.10/include/linux/power/
H A Dsmartreflex.h155 struct voltagedomain *voltdm; member
278 * @voltdm: Pointer to the voltage domain associated with the SR
293 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);
316 static inline void omap_sr_enable(struct voltagedomain *voltdm) {} in omap_sr_enable() argument
317 static inline void omap_sr_disable(struct voltagedomain *voltdm) {} in omap_sr_disable() argument
319 struct voltagedomain *voltdm) {} in omap_sr_disable_reset_volt()
318 omap_sr_disable_reset_volt( struct voltagedomain *voltdm) omap_sr_disable_reset_volt() argument
/kernel/linux/linux-6.6/include/linux/power/
H A Dsmartreflex.h155 struct voltagedomain *voltdm; member
278 * @voltdm: Pointer to the voltage domain associated with the SR
292 struct voltagedomain *voltdm; member
301 void omap_sr_enable(struct voltagedomain *voltdm);
302 void omap_sr_disable(struct voltagedomain *voltdm);
303 void omap_sr_disable_reset_volt(struct voltagedomain *voltdm);
315 static inline void omap_sr_enable(struct voltagedomain *voltdm) {} in omap_sr_enable() argument
316 static inline void omap_sr_disable(struct voltagedomain *voltdm) {} in omap_sr_disable() argument
318 struct voltagedomain *voltdm) {} in omap_sr_disable_reset_volt()
317 omap_sr_disable_reset_volt( struct voltagedomain *voltdm) omap_sr_disable_reset_volt() argument

Completed in 10 milliseconds

12