1*25824d52SJiancheng Xue /* 2*25824d52SJiancheng Xue * Copyright (c) 2015 HiSilicon Technologies Co., Ltd. 3*25824d52SJiancheng Xue * 4*25824d52SJiancheng Xue * This program is free software; you can redistribute it and/or modify 5*25824d52SJiancheng Xue * it under the terms of the GNU General Public License as published by 6*25824d52SJiancheng Xue * the Free Software Foundation; either version 2 of the License, or 7*25824d52SJiancheng Xue * (at your option) any later version. 8*25824d52SJiancheng Xue * 9*25824d52SJiancheng Xue * This program is distributed in the hope that it will be useful, 10*25824d52SJiancheng Xue * but WITHOUT ANY WARRANTY; without even the implied warranty of 11*25824d52SJiancheng Xue * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12*25824d52SJiancheng Xue * GNU General Public License for more details. 13*25824d52SJiancheng Xue * 14*25824d52SJiancheng Xue * You should have received a copy of the GNU General Public License 15*25824d52SJiancheng Xue * along with this program. If not, see <http://www.gnu.org/licenses/>. 16*25824d52SJiancheng Xue */ 17*25824d52SJiancheng Xue 18*25824d52SJiancheng Xue #ifndef __HISI_RESET_H 19*25824d52SJiancheng Xue #define __HISI_RESET_H 20*25824d52SJiancheng Xue 21*25824d52SJiancheng Xue struct device_node; 22*25824d52SJiancheng Xue struct hisi_reset_controller; 23*25824d52SJiancheng Xue 24*25824d52SJiancheng Xue #ifdef CONFIG_RESET_CONTROLLER 25*25824d52SJiancheng Xue struct hisi_reset_controller *hisi_reset_init(struct device_node *np); 26*25824d52SJiancheng Xue void hisi_reset_exit(struct hisi_reset_controller *rstc); 27*25824d52SJiancheng Xue #else 28*25824d52SJiancheng Xue static inline hisi_reset_controller *hisi_reset_init(struct device_node *np) 29*25824d52SJiancheng Xue { 30*25824d52SJiancheng Xue return 0; 31*25824d52SJiancheng Xue } 32*25824d52SJiancheng Xue static inline void hisi_reset_exit(struct hisi_reset_controller *rstc) 33*25824d52SJiancheng Xue {} 34*25824d52SJiancheng Xue #endif 35*25824d52SJiancheng Xue 36*25824d52SJiancheng Xue #endif /* __HISI_RESET_H */ 37