1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Toshiba ARM SoC reset controller driver
5 * Copyright (c) 2021 TOSHIBA CORPORATION
7 * Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
10 #ifndef _VISCONTI_RESET_H_
11 #define _VISCONTI_RESET_H_
13 #include <linux/reset-controller.h>
15 struct visconti_reset_data
{
21 struct visconti_reset
{
22 struct reset_controller_dev rcdev
;
23 struct regmap
*regmap
;
24 const struct visconti_reset_data
*resets
;
28 extern const struct reset_control_ops visconti_reset_ops
;
30 int visconti_register_reset_controller(struct device
*dev
,
31 struct regmap
*regmap
,
32 const struct visconti_reset_data
*resets
,
33 unsigned int num_resets
,
34 const struct reset_control_ops
*reset_ops
,
36 #endif /* _VISCONTI_RESET_H_ */