linux/drivers/pmdomain/imx/imx8m-blk-ctrl.c

// SPDX-License-Identifier: GPL-2.0+

/*
 * Copyright 2021 Pengutronix, Lucas Stach <[email protected]>
 */

#include <linux/bitfield.h>
#include <linux/device.h>
#include <linux/interconnect.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/pm_domain.h>
#include <linux/pm_runtime.h>
#include <linux/regmap.h>
#include <linux/clk.h>

#include <dt-bindings/power/imx8mm-power.h>
#include <dt-bindings/power/imx8mn-power.h>
#include <dt-bindings/power/imx8mp-power.h>
#include <dt-bindings/power/imx8mq-power.h>

#define BLK_SFT_RSTN
#define BLK_CLK_EN
#define BLK_MIPI_RESET_DIV

struct imx8m_blk_ctrl_domain;

struct imx8m_blk_ctrl {};

struct imx8m_blk_ctrl_domain_data {};

#define DOMAIN_MAX_CLKS
#define DOMAIN_MAX_PATHS

struct imx8m_blk_ctrl_domain {};

struct imx8m_blk_ctrl_data {};

static inline struct imx8m_blk_ctrl_domain *
to_imx8m_blk_ctrl_domain(struct generic_pm_domain *genpd)
{}

static int imx8m_blk_ctrl_power_on(struct generic_pm_domain *genpd)
{}

static int imx8m_blk_ctrl_power_off(struct generic_pm_domain *genpd)
{}

static struct lock_class_key blk_ctrl_genpd_lock_class;

static int imx8m_blk_ctrl_probe(struct platform_device *pdev)
{}

static void imx8m_blk_ctrl_remove(struct platform_device *pdev)
{}

#ifdef CONFIG_PM_SLEEP
static int imx8m_blk_ctrl_suspend(struct device *dev)
{}

static int imx8m_blk_ctrl_resume(struct device *dev)
{}
#endif

static const struct dev_pm_ops imx8m_blk_ctrl_pm_ops =;

static int imx8mm_vpu_power_notifier(struct notifier_block *nb,
				     unsigned long action, void *data)
{}

static const struct imx8m_blk_ctrl_domain_data imx8mm_vpu_blk_ctl_domain_data[] =;

static const struct imx8m_blk_ctrl_data imx8mm_vpu_blk_ctl_dev_data =;

static const struct imx8m_blk_ctrl_domain_data imx8mp_vpu_blk_ctl_domain_data[] =;

static const struct imx8m_blk_ctrl_data imx8mp_vpu_blk_ctl_dev_data =;

static int imx8mm_disp_power_notifier(struct notifier_block *nb,
				      unsigned long action, void *data)
{}

static const struct imx8m_blk_ctrl_domain_data imx8mm_disp_blk_ctl_domain_data[] =;

static const struct imx8m_blk_ctrl_data imx8mm_disp_blk_ctl_dev_data =;


static int imx8mn_disp_power_notifier(struct notifier_block *nb,
				      unsigned long action, void *data)
{}

static const struct imx8m_blk_ctrl_domain_data imx8mn_disp_blk_ctl_domain_data[] =;

static const struct imx8m_blk_ctrl_data imx8mn_disp_blk_ctl_dev_data =;

#define LCDIF_ARCACHE_CTRL
#define LCDIF_1_RD_HURRY
#define LCDIF_0_RD_HURRY

static int imx8mp_media_power_notifier(struct notifier_block *nb,
				unsigned long action, void *data)
{}

/*
 * From i.MX 8M Plus Applications Processor Reference Manual, Rev. 1,
 * section 13.2.2, 13.2.3
 * isp-ahb and dwe are not in Figure 13-5. Media BLK_CTRL Clocks
 */
static const struct imx8m_blk_ctrl_domain_data imx8mp_media_blk_ctl_domain_data[] =;

static const struct imx8m_blk_ctrl_data imx8mp_media_blk_ctl_dev_data =;

static int imx8mq_vpu_power_notifier(struct notifier_block *nb,
				     unsigned long action, void *data)
{}

static const struct imx8m_blk_ctrl_domain_data imx8mq_vpu_blk_ctl_domain_data[] =;

static const struct imx8m_blk_ctrl_data imx8mq_vpu_blk_ctl_dev_data =;

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

static struct platform_driver imx8m_blk_ctrl_driver =;
module_platform_driver();
MODULE_LICENSE();