linux/drivers/reset/reset-intel-gw.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2019 Intel Corporation.
 * Lei Chuanhua <[email protected]>
 */

#include <linux/bitfield.h>
#include <linux/init.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/reboot.h>
#include <linux/regmap.h>
#include <linux/reset-controller.h>

#define RCU_RST_STAT
#define RCU_RST_REQ

#define REG_OFFSET_MASK
#define BIT_OFFSET_MASK
#define STAT_BIT_OFFSET_MASK

#define to_reset_data(x)

struct intel_reset_soc {};

struct intel_reset_data {};

static const struct regmap_config intel_rcu_regmap_config =;

/*
 * Reset status register offset relative to
 * the reset control register(X) is X + 4
 */
static u32 id_to_reg_and_bit_offsets(struct intel_reset_data *data,
				     unsigned long id, u32 *rst_req,
				     u32 *req_bit, u32 *stat_bit)
{}

static int intel_set_clr_bits(struct intel_reset_data *data, unsigned long id,
			      bool set)
{}

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

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

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

static const struct reset_control_ops intel_reset_ops =;

static int intel_reset_xlate(struct reset_controller_dev *rcdev,
			     const struct of_phandle_args *spec)
{}

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

static int intel_reset_probe(struct platform_device *pdev)
{}

static const struct intel_reset_soc xrx200_data =;

static const struct intel_reset_soc lgm_data =;

static const struct of_device_id intel_reset_match[] =;

static struct platform_driver intel_reset_driver =;

static int __init intel_reset_init(void)
{}

/*
 * RCU is system core entity which is in Always On Domain whose clocks
 * or resource initialization happens in system core initialization.
 * Also, it is required for most of the platform or architecture
 * specific devices to perform reset operation as part of initialization.
 * So perform RCU as post core initialization.
 */
postcore_initcall(intel_reset_init);