1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __MACH_MMP_CLK_RESET_H
3 #define __MACH_MMP_CLK_RESET_H
5 #include <linux/reset-controller.h>
7 #define MMP_RESET_INVERT 1
9 struct mmp_clk_reset_cell
{
17 struct mmp_clk_reset_unit
{
18 struct reset_controller_dev rcdev
;
19 struct mmp_clk_reset_cell
*cells
;
22 #ifdef CONFIG_RESET_CONTROLLER
23 void mmp_clk_reset_register(struct device_node
*np
,
24 struct mmp_clk_reset_cell
*cells
, int nr_resets
);
26 static inline void mmp_clk_reset_register(struct device_node
*np
,
27 struct mmp_clk_reset_cell
*cells
, int nr_resets
)