162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2015 HiSilicon Technologies Co., Ltd. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef __HISI_RESET_H 762306a36Sopenharmony_ci#define __HISI_RESET_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_cistruct device_node; 1062306a36Sopenharmony_cistruct hisi_reset_controller; 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci#ifdef CONFIG_RESET_CONTROLLER 1362306a36Sopenharmony_cistruct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev); 1462306a36Sopenharmony_civoid hisi_reset_exit(struct hisi_reset_controller *rstc); 1562306a36Sopenharmony_ci#else 1662306a36Sopenharmony_cistatic inline 1762306a36Sopenharmony_cistruct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev) 1862306a36Sopenharmony_ci{ 1962306a36Sopenharmony_ci return 0; 2062306a36Sopenharmony_ci} 2162306a36Sopenharmony_cistatic inline void hisi_reset_exit(struct hisi_reset_controller *rstc) 2262306a36Sopenharmony_ci{} 2362306a36Sopenharmony_ci#endif 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#endif /* __HISI_RESET_H */ 26