blob: 81ff9e9e3678f357672ab06714509bb50b55c66e [file] [log] [blame]
Thomas Gleixner1ccea772019-05-19 15:51:43 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Jiancheng Xue25824d52016-04-23 15:40:28 +08002/*
3 * Copyright (c) 2015 HiSilicon Technologies Co., Ltd.
Jiancheng Xue25824d52016-04-23 15:40:28 +08004 */
5
6#ifndef __HISI_RESET_H
7#define __HISI_RESET_H
8
9struct device_node;
10struct hisi_reset_controller;
11
12#ifdef CONFIG_RESET_CONTROLLER
Jiancheng Xue97b71292016-06-15 14:26:34 +080013struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev);
Jiancheng Xue25824d52016-04-23 15:40:28 +080014void hisi_reset_exit(struct hisi_reset_controller *rstc);
15#else
Jiancheng Xue97b71292016-06-15 14:26:34 +080016static inline
17struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev)
Jiancheng Xue25824d52016-04-23 15:40:28 +080018{
19 return 0;
20}
21static inline void hisi_reset_exit(struct hisi_reset_controller *rstc)
22{}
23#endif
24
25#endif /* __HISI_RESET_H */