linux/drivers/pmdomain/apple/pmgr-pwrstate.c

// SPDX-License-Identifier: GPL-2.0-only OR MIT
/*
 * Apple SoC PMGR device power state driver
 *
 * Copyright The Asahi Linux Contributors
 */

#include <linux/bitops.h>
#include <linux/bitfield.h>
#include <linux/err.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/pm_domain.h>
#include <linux/regmap.h>
#include <linux/mfd/syscon.h>
#include <linux/reset-controller.h>
#include <linux/module.h>

#define APPLE_PMGR_RESET
#define APPLE_PMGR_AUTO_ENABLE
#define APPLE_PMGR_PS_AUTO
#define APPLE_PMGR_PS_MIN
#define APPLE_PMGR_PARENT_OFF
#define APPLE_PMGR_DEV_DISABLE
#define APPLE_PMGR_WAS_CLKGATED
#define APPLE_PMGR_WAS_PWRGATED
#define APPLE_PMGR_PS_ACTUAL
#define APPLE_PMGR_PS_TARGET

#define APPLE_PMGR_FLAGS

#define APPLE_PMGR_PS_ACTIVE
#define APPLE_PMGR_PS_CLKGATE
#define APPLE_PMGR_PS_PWRGATE

#define APPLE_PMGR_PS_SET_TIMEOUT
#define APPLE_PMGR_RESET_TIME

struct apple_pmgr_ps {};

#define genpd_to_apple_pmgr_ps(_genpd)
#define rcdev_to_apple_pmgr_ps(_rcdev)

static int apple_pmgr_ps_set(struct generic_pm_domain *genpd, u32 pstate, bool auto_enable)
{}

static bool apple_pmgr_ps_is_active(struct apple_pmgr_ps *ps)
{}

static int apple_pmgr_ps_power_on(struct generic_pm_domain *genpd)
{}

static int apple_pmgr_ps_power_off(struct generic_pm_domain *genpd)
{}

static int apple_pmgr_reset_assert(struct reset_controller_dev *rcdev, unsigned long id)
{}

static int apple_pmgr_reset_deassert(struct reset_controller_dev *rcdev, unsigned long id)
{}

static int apple_pmgr_reset_reset(struct reset_controller_dev *rcdev, unsigned long id)
{}

static int apple_pmgr_reset_status(struct reset_controller_dev *rcdev, unsigned long id)
{}

const struct reset_control_ops apple_pmgr_reset_ops =;

static int apple_pmgr_reset_xlate(struct reset_controller_dev *rcdev,
				  const struct of_phandle_args *reset_spec)
{}

static int apple_pmgr_ps_probe(struct platform_device *pdev)
{}

static const struct of_device_id apple_pmgr_ps_of_match[] =;

MODULE_DEVICE_TABLE(of, apple_pmgr_ps_of_match);

static struct platform_driver apple_pmgr_ps_driver =;

MODULE_AUTHOR();
MODULE_DESCRIPTION();

module_platform_driver();