ar71xx: add lzma loader
[openwrt.git] / target / linux / lantiq / patches / 110-sdk-compat.patch
1 --- /dev/null
2 +++ b/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h
3 @@ -0,0 +1,60 @@
4 +/*
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.
9 + *
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.
14 + *
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,
18 + * MA 02111-1307 USA
19 + *
20 + * Copyright (C) 2010 Thomas Langer, Lantiq Deutschland
21 + */
22 +
23 +#ifndef __FALCON_SYSCTRL_H
24 +#define __FALCON_SYSCTRL_H
25 +
26 +#include <falcon/lantiq_soc.h>
27 +
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); }
38 +
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); }
49 +
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)
61 +{ return 1; }
62 +
63 +#endif /* __FALCON_SYSCTRL_H */
This page took 0.039509 seconds and 5 git commands to generate.