linux/drivers/regulator/stm32-booster.c

// SPDX-License-Identifier: GPL-2.0
// Copyright (C) STMicroelectronics 2019
// Author(s): Fabrice Gasnier <[email protected]>.

#include <linux/mfd/syscon.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/of_regulator.h>

/* STM32H7 SYSCFG register */
#define STM32H7_SYSCFG_PMCR
#define STM32H7_SYSCFG_BOOSTE_MASK

/* STM32MP1 SYSCFG has set and clear registers */
#define STM32MP1_SYSCFG_PMCSETR
#define STM32MP1_SYSCFG_PMCCLRR
#define STM32MP1_SYSCFG_EN_BOOSTER_MASK

static const struct regulator_ops stm32h7_booster_ops =;

static const struct regulator_desc stm32h7_booster_desc =;

static int stm32mp1_booster_enable(struct regulator_dev *rdev)
{}

static int stm32mp1_booster_disable(struct regulator_dev *rdev)
{}

static const struct regulator_ops stm32mp1_booster_ops =;

static const struct regulator_desc stm32mp1_booster_desc =;

static int stm32_booster_probe(struct platform_device *pdev)
{}

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

static struct platform_driver stm32_booster_driver =;
module_platform_driver();

MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_ALIAS();