/kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
D | voltage.c | 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() 70 int voltdm_scale(struct voltagedomain *voltdm, in voltdm_scale() argument 76 if (!voltdm || IS_ERR(voltdm)) { in voltdm_scale() 81 if (!voltdm->scale) { in voltdm_scale() 83 __func__, voltdm->name); in voltdm_scale() 87 if (!voltdm->volt_data) { in voltdm_scale() 89 __func__, voltdm->name); in voltdm_scale() 94 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 | 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->pmic->uv_to_vsel) { in omap_vc_pre_scale() 154 __func__, voltdm->name); in omap_vc_pre_scale() 158 if (!voltdm->read || !voltdm->write) { in omap_vc_pre_scale() [all …]
|
D | powerdomains3xxx_data.c | 50 .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 = { .name = "core" }, [all …]
|
D | powerdomains44xx_data.c | 33 .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 = { .name = "mpu" }, [all …]
|
D | powerdomains54xx_data.c | 31 .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 = { .name = "mm" }, [all …]
|
D | omap_twl.c | 215 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, &omap3_mpu_pmic); in omap3_twl_init() [all …]
|
D | pmic-cpcap.c | 240 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 = voltdm_lookup("iva"); in omap4_cpcap_init() [all …]
|
D | voltage.h | 83 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);
|
D | powerdomains43xx_data.c | 19 .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" },
|
D | sr_device.c | 91 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()
|
D | vp.h | 115 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,
|
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 | 17 unsigned long volt = voltdm_get_voltage(sr->voltdm); in sr_class3_enable() 25 omap_vp_enable(sr->voltdm); in sr_class3_enable() 32 omap_vp_disable(sr->voltdm); in sr_class3_disable() 35 voltdm_reset(sr->voltdm); in sr_class3_disable()
|
D | voltagedomains54xx_data.c | 82 struct voltagedomain *voltdm; in omap54xx_voltagedomains_init() local 85 for (i = 0; voltdm = voltagedomains_omap5[i], voltdm; i++) in omap54xx_voltagedomains_init() 86 voltdm->sys_clk.name = sys_clk_name; in omap54xx_voltagedomains_init()
|
D | powerdomains2xxx_data.c | 38 .voltdm = { .name = "core" }, 53 .voltdm = { .name = "core" }, 72 .voltdm = { .name = "core" }, 94 .voltdm = { .name = "core" },
|
D | voltagedomains3xxx_data.c | 99 struct voltagedomain *voltdm; in omap3xxx_voltagedomains_init() local 127 for (i = 0; voltdm = voltdms[i], voltdm; i++) in omap3xxx_voltagedomains_init() 128 voltdm->sys_clk.name = sys_clk_name; in omap3xxx_voltagedomains_init()
|
D | vc.h | 122 void omap_vc_init_channel(struct voltagedomain *voltdm); 123 int omap_vc_pre_scale(struct voltagedomain *voltdm, 126 void omap_vc_post_scale(struct voltagedomain *voltdm, 129 int omap_vc_bypass_scale(struct voltagedomain *voltdm,
|
D | voltagedomains44xx_data.c | 96 struct voltagedomain *voltdm; in omap44xx_voltagedomains_init() local 123 for (i = 0; voltdm = voltagedomains_omap4[i], voltdm; i++) in omap44xx_voltagedomains_init() 124 voltdm->sys_clk.name = sys_clk_name; in omap44xx_voltagedomains_init()
|
D | powerdomains2xxx_3xxx_data.c | 54 .voltdm = { .name = "core" }, 61 .voltdm = { .name = "wakeup" },
|
D | powerdomain.c | 92 struct voltagedomain *voltdm; in _pwrdm_register() local 111 voltdm = voltdm_lookup(pwrdm->voltdm.name); in _pwrdm_register() 112 if (!voltdm) { in _pwrdm_register() 114 pwrdm->name, pwrdm->voltdm.name); in _pwrdm_register() 117 pwrdm->voltdm.ptr = voltdm; in _pwrdm_register()
|
D | powerdomain.h | 114 } voltdm; member
|
/kernel/linux/linux-5.10/include/linux/power/ |
D | smartreflex.h | 155 struct voltagedomain *voltdm; member 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() argument
|
/kernel/linux/linux-5.10/include/linux/platform_data/ |
D | voltage-omap.h | 32 int voltdm_scale(struct voltagedomain *voltdm, unsigned long target_volt); 33 unsigned long voltdm_get_voltage(struct voltagedomain *voltdm); 34 struct omap_volt_data *omap_voltage_get_voltdata(struct voltagedomain *voltdm,
|
/kernel/linux/linux-5.10/drivers/soc/ti/ |
D | smartreflex.c | 78 static struct omap_sr *_sr_lookup(struct voltagedomain *voltdm) in _sr_lookup() argument 82 if (!voltdm) { in _sr_lookup() 88 if (voltdm == sr_info->voltdm) in _sr_lookup() 571 volt_data = omap_voltage_get_voltdata(sr->voltdm, volt); in sr_enable() 694 void omap_sr_enable(struct voltagedomain *voltdm) in omap_sr_enable() argument 696 struct omap_sr *sr = _sr_lookup(voltdm); in omap_sr_enable() 726 void omap_sr_disable(struct voltagedomain *voltdm) in omap_sr_disable() argument 728 struct omap_sr *sr = _sr_lookup(voltdm); in omap_sr_disable() 758 void omap_sr_disable_reset_volt(struct voltagedomain *voltdm) in omap_sr_disable_reset_volt() argument 760 struct omap_sr *sr = _sr_lookup(voltdm); in omap_sr_disable_reset_volt() [all …]
|