linux/drivers/regulator/qcom-refgen-regulator.c

// SPDX-License-Identifier: GPL-2.0-only
// Copyright (c) 2017, 2019-2020, The Linux Foundation. All rights reserved.
// Copyright (c) 2023, Linaro Limited

#include <linux/bitfield.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/of_regulator.h>

#define REFGEN_REG_BIAS_EN
#define REFGEN_BIAS_EN_MASK
 #define REFGEN_BIAS_EN_ENABLE
 #define REFGEN_BIAS_EN_DISABLE

#define REFGEN_REG_BG_CTRL
#define REFGEN_BG_CTRL_MASK
 #define REFGEN_BG_CTRL_ENABLE
 #define REFGEN_BG_CTRL_DISABLE

#define REFGEN_REG_PWRDWN_CTRL5
#define REFGEN_PWRDWN_CTRL5_MASK
 #define REFGEN_PWRDWN_CTRL5_ENABLE

static int qcom_sdm845_refgen_enable(struct regulator_dev *rdev)
{}

static int qcom_sdm845_refgen_disable(struct regulator_dev *rdev)
{}

static int qcom_sdm845_refgen_is_enabled(struct regulator_dev *rdev)
{}

static struct regulator_desc sdm845_refgen_desc =;

static struct regulator_desc sm8250_refgen_desc =;

static const struct regmap_config qcom_refgen_regmap_config =;

static int qcom_refgen_probe(struct platform_device *pdev)
{}

static const struct of_device_id qcom_refgen_match_table[] =;
MODULE_DEVICE_TABLE(of, qcom_refgen_match_table);

static struct platform_driver qcom_refgen_driver =;
module_platform_driver();

MODULE_LICENSE();
MODULE_DESCRIPTION();