sh_eth: fix EESIPR values for SH77{34|63}
[linux/fpc-iii.git] / drivers / clk / mmp / reset.h
blobbe8b1a7000f766be65a221286c336cdfbdfa6a79
1 #ifndef __MACH_MMP_CLK_RESET_H
2 #define __MACH_MMP_CLK_RESET_H
4 #include <linux/reset-controller.h>
6 #define MMP_RESET_INVERT 1
8 struct mmp_clk_reset_cell {
9 unsigned int clk_id;
10 void __iomem *reg;
11 u32 bits;
12 unsigned int flags;
13 spinlock_t *lock;
16 struct mmp_clk_reset_unit {
17 struct reset_controller_dev rcdev;
18 struct mmp_clk_reset_cell *cells;
21 #ifdef CONFIG_RESET_CONTROLLER
22 void mmp_clk_reset_register(struct device_node *np,
23 struct mmp_clk_reset_cell *cells, int nr_resets);
24 #else
25 static inline void mmp_clk_reset_register(struct device_node *np,
26 struct mmp_clk_reset_cell *cells, int nr_resets)
29 #endif
31 #endif