2 +++ b/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h
5 + * This program is free software; you can redistribute it and/or
6 + * modify it under the terms of the GNU General Public License as
7 + * published by the Free Software Foundation; either version 2 of
8 + * the License, or (at your option) any later version.
10 + * This program is distributed in the hope that it will be useful,
11 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 + * GNU General Public License for more details.
15 + * You should have received a copy of the GNU General Public License
16 + * along with this program; if not, write to the Free Software
17 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 + * Copyright (C) 2010 Thomas Langer, Lantiq Deutschland
23 +#ifndef __FALCON_SYSCTRL_H
24 +#define __FALCON_SYSCTRL_H
26 +#include <falcon/lantiq_soc.h>
28 +static inline void sys1_hw_activate(u32 mask)
29 +{ ltq_sysctl_activate(SYSCTL_SYS1, mask); }
30 +static inline void sys1_hw_deactivate(u32 mask)
31 +{ ltq_sysctl_deactivate(SYSCTL_SYS1, mask); }
32 +static inline void sys1_hw_clk_enable(u32 mask)
33 +{ ltq_sysctl_clken(SYSCTL_SYS1, mask); }
34 +static inline void sys1_hw_clk_disable(u32 mask)
35 +{ ltq_sysctl_clkdis(SYSCTL_SYS1, mask); }
36 +static inline void sys1_hw_activate_or_reboot(u32 mask)
37 +{ ltq_sysctl_reboot(SYSCTL_SYS1, mask); }
39 +static inline void sys_eth_hw_activate(u32 mask)
40 +{ ltq_sysctl_activate(SYSCTL_SYSETH, mask); }
41 +static inline void sys_eth_hw_deactivate(u32 mask)
42 +{ ltq_sysctl_deactivate(SYSCTL_SYSETH, mask); }
43 +static inline void sys_eth_hw_clk_enable(u32 mask)
44 +{ ltq_sysctl_clken(SYSCTL_SYSETH, mask); }
45 +static inline void sys_eth_hw_clk_disable(u32 mask)
46 +{ ltq_sysctl_clkdis(SYSCTL_SYSETH, mask); }
47 +static inline void sys_eth_hw_activate_or_reboot(u32 mask)
48 +{ ltq_sysctl_reboot(SYSCTL_SYSETH, mask); }
50 +static inline void sys_gpe_hw_activate(u32 mask)
51 +{ ltq_sysctl_activate(SYSCTL_SYSGPE, mask); }
52 +static inline void sys_gpe_hw_deactivate(u32 mask)
53 +{ ltq_sysctl_deactivate(SYSCTL_SYSGPE, mask); }
54 +static inline void sys_gpe_hw_clk_enable(u32 mask)
55 +{ ltq_sysctl_clken(SYSCTL_SYSGPE, mask); }
56 +static inline void sys_gpe_hw_clk_disable(u32 mask)
57 +{ ltq_sysctl_clkdis(SYSCTL_SYSGPE, mask); }
58 +static inline void sys_gpe_hw_activate_or_reboot(u32 mask)
59 +{ ltq_sysctl_reboot(SYSCTL_SYSGPE, mask); }
60 +static inline int sys_gpe_hw_is_activated(u32 mask)
63 +#endif /* __FALCON_SYSCTRL_H */