#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/of_regulator.h>
#include <linux/soc/qcom/smd-rpm.h>
struct qcom_smd_rpm *smd_vreg_rpm;
struct qcom_rpm_reg { … };
struct rpm_regulator_req { … };
#define RPM_KEY_SWEN …
#define RPM_KEY_UV …
#define RPM_KEY_MA …
static int rpm_reg_write_active(struct qcom_rpm_reg *vreg)
{ … }
static int rpm_reg_enable(struct regulator_dev *rdev)
{ … }
static int rpm_reg_is_enabled(struct regulator_dev *rdev)
{ … }
static int rpm_reg_disable(struct regulator_dev *rdev)
{ … }
static int rpm_reg_get_voltage(struct regulator_dev *rdev)
{ … }
static int rpm_reg_set_voltage(struct regulator_dev *rdev,
int min_uV,
int max_uV,
unsigned *selector)
{ … }
static int rpm_reg_set_load(struct regulator_dev *rdev, int load_uA)
{ … }
static const struct regulator_ops rpm_smps_ldo_ops = …;
static const struct regulator_ops rpm_smps_ldo_ops_fixed = …;
static const struct regulator_ops rpm_switch_ops = …;
static const struct regulator_ops rpm_bob_ops = …;
static const struct regulator_ops rpm_mp5496_ops = …;
static const struct regulator_desc pma8084_hfsmps = …;
static const struct regulator_desc pma8084_ftsmps = …;
static const struct regulator_desc pma8084_pldo = …;
static const struct regulator_desc pma8084_nldo = …;
static const struct regulator_desc pma8084_switch = …;
static const struct regulator_desc pm8226_hfsmps = …;
static const struct regulator_desc pm8226_ftsmps = …;
static const struct regulator_desc pm8226_pldo = …;
static const struct regulator_desc pm8226_nldo = …;
static const struct regulator_desc pm8226_switch = …;
static const struct regulator_desc pm8x41_hfsmps = …;
static const struct regulator_desc pm8841_ftsmps = …;
static const struct regulator_desc pm8941_boost = …;
static const struct regulator_desc pm8941_pldo = …;
static const struct regulator_desc pm8941_nldo = …;
static const struct regulator_desc pm8941_lnldo = …;
static const struct regulator_desc pm8941_switch = …;
static const struct regulator_desc pm8916_pldo = …;
static const struct regulator_desc pm8916_nldo = …;
static const struct regulator_desc pm8916_buck_lvo_smps = …;
static const struct regulator_desc pm8916_buck_hvo_smps = …;
static const struct regulator_desc pm8950_hfsmps = …;
static const struct regulator_desc pm8950_ftsmps2p5 = …;
static const struct regulator_desc pm8950_ult_nldo = …;
static const struct regulator_desc pm8950_ult_pldo = …;
static const struct regulator_desc pm8950_pldo_lv = …;
static const struct regulator_desc pm8950_pldo = …;
static const struct regulator_desc pm8953_lnldo = …;
static const struct regulator_desc pm8953_ult_nldo = …;
static const struct regulator_desc pm8994_hfsmps = …;
static const struct regulator_desc pm8994_ftsmps = …;
static const struct regulator_desc pm8994_nldo = …;
static const struct regulator_desc pm8994_pldo = …;
static const struct regulator_desc pm8994_switch = …;
static const struct regulator_desc pm8994_lnldo = …;
static const struct regulator_desc pmi8994_ftsmps = …;
static const struct regulator_desc pmi8994_hfsmps = …;
static const struct regulator_desc pmi8994_bby = …;
static const struct regulator_desc pm8998_ftsmps = …;
static const struct regulator_desc pm8998_hfsmps = …;
static const struct regulator_desc pm8998_nldo = …;
static const struct regulator_desc pm8998_pldo = …;
static const struct regulator_desc pm8998_pldo_lv = …;
static const struct regulator_desc pm8998_switch = …;
static const struct regulator_desc pmi8998_bob = …;
static const struct regulator_desc pm660_ftsmps = …;
static const struct regulator_desc pm660_hfsmps = …;
static const struct regulator_desc pm660_ht_nldo = …;
static const struct regulator_desc pm660_ht_lvpldo = …;
static const struct regulator_desc pm660_nldo660 = …;
static const struct regulator_desc pm660_pldo660 = …;
static const struct regulator_desc pm660l_bob = …;
static const struct regulator_desc pm6125_ftsmps = …;
static const struct regulator_desc pmic5_ftsmps520 = …;
static const struct regulator_desc pmic5_hfsmps515 = …;
static const struct regulator_desc pms405_hfsmps3 = …;
static const struct regulator_desc pms405_nldo300 = …;
static const struct regulator_desc pms405_nldo1200 = …;
static const struct regulator_desc pms405_pldo50 = …;
static const struct regulator_desc pms405_pldo150 = …;
static const struct regulator_desc pms405_pldo600 = …;
static const struct regulator_desc mp5496_smps = …;
static const struct regulator_desc mp5496_ldoa2 = …;
static const struct regulator_desc pm2250_lvftsmps = …;
static const struct regulator_desc pm2250_ftsmps = …;
struct rpm_regulator_data { … };
static const struct rpm_regulator_data rpm_mp5496_regulators[] = …;
static const struct rpm_regulator_data rpm_pm2250_regulators[] = …;
static const struct rpm_regulator_data rpm_pm6125_regulators[] = …;
static const struct rpm_regulator_data rpm_pm660_regulators[] = …;
static const struct rpm_regulator_data rpm_pm660l_regulators[] = …;
static const struct rpm_regulator_data rpm_pm8226_regulators[] = …;
static const struct rpm_regulator_data rpm_pm8841_regulators[] = …;
static const struct rpm_regulator_data rpm_pm8909_regulators[] = …;
static const struct rpm_regulator_data rpm_pm8916_regulators[] = …;
static const struct rpm_regulator_data rpm_pm8937_regulators[] = …;
static const struct rpm_regulator_data rpm_pm8941_regulators[] = …;
static const struct rpm_regulator_data rpm_pm8950_regulators[] = …;
static const struct rpm_regulator_data rpm_pm8953_regulators[] = …;
static const struct rpm_regulator_data rpm_pm8994_regulators[] = …;
static const struct rpm_regulator_data rpm_pm8998_regulators[] = …;
static const struct rpm_regulator_data rpm_pma8084_regulators[] = …;
static const struct rpm_regulator_data rpm_pmi8994_regulators[] = …;
static const struct rpm_regulator_data rpm_pmi8998_regulators[] = …;
static const struct rpm_regulator_data rpm_pmr735a_regulators[] = …;
static const struct rpm_regulator_data rpm_pms405_regulators[] = …;
static const struct of_device_id rpm_of_match[] = …;
MODULE_DEVICE_TABLE(of, rpm_of_match);
static int rpm_regulator_init_vreg(struct qcom_rpm_reg *vreg, struct device *dev,
struct device_node *node,
const struct rpm_regulator_data *pmic_rpm_data)
{ … }
static int rpm_reg_probe(struct platform_device *pdev)
{ … }
static struct platform_driver rpm_reg_driver = …;
static int __init rpm_reg_init(void)
{ … }
subsys_initcall(rpm_reg_init);
static void __exit rpm_reg_exit(void)
{ … }
module_exit(…)
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;