https://github.com/torvalds/linux
Raw File
Tip revision: c9e6606c7fe92b50a02ce51dda82586ebdf99b48 authored by Linus Torvalds on 02 January 2022, 22:23:25 UTC
Linux 5.16-rc8
Tip revision: c9e6606
crg.h
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * HiSilicon Clock and Reset Driver Header
 *
 * Copyright (c) 2016 HiSilicon Limited.
 */

#ifndef __HISI_CRG_H
#define __HISI_CRG_H

struct hisi_clock_data;
struct hisi_reset_controller;

struct hisi_crg_funcs {
	struct hisi_clock_data*	(*register_clks)(struct platform_device *pdev);
	void (*unregister_clks)(struct platform_device *pdev);
};

struct hisi_crg_dev {
	struct hisi_clock_data *clk_data;
	struct hisi_reset_controller *rstc;
	const struct hisi_crg_funcs *funcs;
};

#endif	/* __HISI_CRG_H */
back to top