18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2015 HiSilicon Technologies Co., Ltd. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef __HISI_RESET_H 78c2ecf20Sopenharmony_ci#define __HISI_RESET_H 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cistruct device_node; 108c2ecf20Sopenharmony_cistruct hisi_reset_controller; 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#ifdef CONFIG_RESET_CONTROLLER 138c2ecf20Sopenharmony_cistruct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev); 148c2ecf20Sopenharmony_civoid hisi_reset_exit(struct hisi_reset_controller *rstc); 158c2ecf20Sopenharmony_ci#else 168c2ecf20Sopenharmony_cistatic inline 178c2ecf20Sopenharmony_cistruct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev) 188c2ecf20Sopenharmony_ci{ 198c2ecf20Sopenharmony_ci return 0; 208c2ecf20Sopenharmony_ci} 218c2ecf20Sopenharmony_cistatic inline void hisi_reset_exit(struct hisi_reset_controller *rstc) 228c2ecf20Sopenharmony_ci{} 238c2ecf20Sopenharmony_ci#endif 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#endif /* __HISI_RESET_H */ 26