Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94591192 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "regulator: Add snapshot of qpnp-labibb regulator driver"

parents faded3a2 ee1e5e10
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
@@ -724,6 +724,17 @@ config REGULATOR_QCOM_SPMI
	  Qualcomm SPMI PMICs as a module. The module will be named
	  Qualcomm SPMI PMICs as a module. The module will be named
	  "qcom_spmi-regulator".
	  "qcom_spmi-regulator".


config REGULATOR_QPNP_LABIBB
        tristate "Qualcomm Technologies, Inc. QPNP LAB/IBB regulator support"
        depends on SPMI
        help
          This driver supports voltage regulators in Qualcomm Technologies, Inc.
          PMIC chips which comply with QPNP LAB/IBB regulators. QPNP LAB and IBB
          are SPMI based PMIC implementations. LAB regulator can be used as a
          regular positive boost regulator. IBB can be used as a regular
          negative boost regulator. LAB/IBB regulators can also be used
          together for LCD or AMOLED on QTI PMICs like PMI8998.

config REGULATOR_QPNP_LCDB
config REGULATOR_QPNP_LCDB
        tristate "Qualcomm Technologies, Inc. QPNP LCDB support"
        tristate "Qualcomm Technologies, Inc. QPNP LCDB support"
        depends on SPMI
        depends on SPMI
+1 −0
Original line number Original line Diff line number Diff line
@@ -82,6 +82,7 @@ obj-$(CONFIG_REGULATOR_QCOM_RPM) += qcom_rpm-regulator.o
obj-$(CONFIG_REGULATOR_QCOM_RPMH) += qcom-rpmh-regulator.o
obj-$(CONFIG_REGULATOR_QCOM_RPMH) += qcom-rpmh-regulator.o
obj-$(CONFIG_REGULATOR_QCOM_SMD_RPM) += qcom_smd-regulator.o
obj-$(CONFIG_REGULATOR_QCOM_SMD_RPM) += qcom_smd-regulator.o
obj-$(CONFIG_REGULATOR_QCOM_SPMI) += qcom_spmi-regulator.o
obj-$(CONFIG_REGULATOR_QCOM_SPMI) += qcom_spmi-regulator.o
obj-$(CONFIG_REGULATOR_QPNP_LABIBB) += qpnp-labibb-regulator.o
obj-$(CONFIG_REGULATOR_QPNP_LCDB) += qpnp-lcdb-regulator.o
obj-$(CONFIG_REGULATOR_QPNP_LCDB) += qpnp-lcdb-regulator.o
obj-$(CONFIG_REGULATOR_PALMAS) += palmas-regulator.o
obj-$(CONFIG_REGULATOR_PALMAS) += palmas-regulator.o
obj-$(CONFIG_REGULATOR_PFUZE100) += pfuze100-regulator.o
obj-$(CONFIG_REGULATOR_PFUZE100) += pfuze100-regulator.o
+4483 −0

File added.

Preview size limit exceeded, changes collapsed.

+28 −0
Original line number Original line Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2017 The Linux Foundation. All rights reserved.
 */

#ifndef _QPNP_LABIBB_REGULATOR_H
#define _QPNP_LABIBB_REGULATOR_H

enum labibb_notify_event {
	LAB_VREG_OK = 1,
	LAB_VREG_NOT_OK,
};

#ifdef CONFIG_REGULATOR_QPNP_LABIBB
int qpnp_labibb_notifier_register(struct notifier_block *nb);
int qpnp_labibb_notifier_unregister(struct notifier_block *nb);
#else
static inline int qpnp_labibb_notifier_register(struct notifier_block *nb)
{
	return 0;
}
static inline int qpnp_labibb_notifier_unregister(struct notifier_block *nb)
{
	return 0;
}
#endif

#endif