linux/drivers/reset/reset-simple.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Simple Reset Controller Driver
 *
 * Copyright (C) 2017 Pengutronix, Philipp Zabel <[email protected]>
 *
 * Based on Allwinner SoCs Reset Controller driver
 *
 * Copyright 2013 Maxime Ripard
 *
 * Maxime Ripard <[email protected]>
 */

#include <linux/delay.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/reset-controller.h>
#include <linux/reset/reset-simple.h>
#include <linux/spinlock.h>

static inline struct reset_simple_data *
to_reset_simple_data(struct reset_controller_dev *rcdev)
{}

static int reset_simple_update(struct reset_controller_dev *rcdev,
			       unsigned long id, bool assert)
{}

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

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

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

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

const struct reset_control_ops reset_simple_ops =;
EXPORT_SYMBOL_GPL();

/**
 * struct reset_simple_devdata - simple reset controller properties
 * @reg_offset: offset between base address and first reset register.
 * @nr_resets: number of resets. If not set, default to resource size in bits.
 * @active_low: if true, bits are cleared to assert the reset. Otherwise, bits
 *              are set to assert the reset.
 * @status_active_low: if true, bits read back as cleared while the reset is
 *                     asserted. Otherwise, bits read back as set while the
 *                     reset is asserted.
 */
struct reset_simple_devdata {};

#define SOCFPGA_NR_BANKS

static const struct reset_simple_devdata reset_simple_socfpga =;

static const struct reset_simple_devdata reset_simple_active_low =;

static const struct of_device_id reset_simple_dt_ids[] =;

static int reset_simple_probe(struct platform_device *pdev)
{}

static struct platform_driver reset_simple_driver =;
builtin_platform_driver();