1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * OMAP Voltage Management Routines
5 * Copyright (C) 2011, Texas Instruments, Inc.
8 #ifndef __ARCH_ARM_OMAP_VOLTAGE_H
9 #define __ARCH_ARM_OMAP_VOLTAGE_H
12 * struct omap_volt_data - Omap voltage specific data.
13 * @voltage_nominal: The possible voltage value in uV
14 * @sr_efuse_offs: The offset of the efuse register(from system
15 * control module base address) from where to read
16 * the n-target value for the smartreflex module.
17 * @sr_errminlimit: Error min limit value for smartreflex. This value
18 * differs at differnet opp and thus is linked
20 * @vp_errorgain: Error gain value for the voltage processor. This
21 * field also differs according to the voltage/opp.
23 struct omap_volt_data {
31 struct voltagedomain *voltdm_lookup(const char *name);
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,