xref: /openbmc/linux/drivers/clk/hisilicon/reset.h (revision 1ccea77e2a2687cae171b7987eb44730ec8c6d5f)
1*1ccea77eSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
225824d52SJiancheng Xue /*
325824d52SJiancheng Xue  * Copyright (c) 2015 HiSilicon Technologies Co., Ltd.
425824d52SJiancheng Xue  */
525824d52SJiancheng Xue 
625824d52SJiancheng Xue #ifndef	__HISI_RESET_H
725824d52SJiancheng Xue #define	__HISI_RESET_H
825824d52SJiancheng Xue 
925824d52SJiancheng Xue struct device_node;
1025824d52SJiancheng Xue struct hisi_reset_controller;
1125824d52SJiancheng Xue 
1225824d52SJiancheng Xue #ifdef CONFIG_RESET_CONTROLLER
1397b7129cSJiancheng Xue struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev);
1425824d52SJiancheng Xue void hisi_reset_exit(struct hisi_reset_controller *rstc);
1525824d52SJiancheng Xue #else
1697b7129cSJiancheng Xue static inline
1797b7129cSJiancheng Xue struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev)
1825824d52SJiancheng Xue {
1925824d52SJiancheng Xue 	return 0;
2025824d52SJiancheng Xue }
2125824d52SJiancheng Xue static inline void hisi_reset_exit(struct hisi_reset_controller *rstc)
2225824d52SJiancheng Xue {}
2325824d52SJiancheng Xue #endif
2425824d52SJiancheng Xue 
2525824d52SJiancheng Xue #endif	/* __HISI_RESET_H */
26