brintos

brintos / linux-shallow public Read only

0
0
Text · 674 B · 3d0470c Raw
33 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef __MACH_MMP_CLK_RESET_H3#define __MACH_MMP_CLK_RESET_H4 5#include <linux/reset-controller.h>6 7#define MMP_RESET_INVERT	18 9struct mmp_clk_reset_cell {10	unsigned int clk_id;11	void __iomem *reg;12	u32 bits;13	unsigned int flags;14	spinlock_t *lock;15};16 17struct mmp_clk_reset_unit {18	struct reset_controller_dev rcdev;19	struct mmp_clk_reset_cell *cells;20};21 22#ifdef CONFIG_RESET_CONTROLLER23void mmp_clk_reset_register(struct device_node *np,24			struct mmp_clk_reset_cell *cells, int nr_resets);25#else26static inline void mmp_clk_reset_register(struct device_node *np,27			struct mmp_clk_reset_cell *cells, int nr_resets)28{29}30#endif31 32#endif33