Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright (c) 2015 HiSilicon Technologies Co., Ltd.
0004  */
0005 
0006 #ifndef __HISI_RESET_H
0007 #define __HISI_RESET_H
0008 
0009 struct device_node;
0010 struct hisi_reset_controller;
0011 
0012 #ifdef CONFIG_RESET_CONTROLLER
0013 struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev);
0014 void hisi_reset_exit(struct hisi_reset_controller *rstc);
0015 #else
0016 static inline
0017 struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev)
0018 {
0019     return 0;
0020 }
0021 static inline void hisi_reset_exit(struct hisi_reset_controller *rstc)
0022 {}
0023 #endif
0024 
0025 #endif  /* __HISI_RESET_H */