summaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches/850-falcon-sysctrl-compatibility.patch
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-11-12 23:40:07 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-11-12 23:40:07 +0000
commit14ec28a2a375166a617c29ac8543cfbe60bc29fc (patch)
tree8f98ba86696c3d237cdcb66f5d59294cb2e346c6 /target/linux/lantiq/patches/850-falcon-sysctrl-compatibility.patch
parent98bf7b355be45c78f7211fa79af71e2d426b630c (diff)
lantiq: split compat headers out of bsp header patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29001 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches/850-falcon-sysctrl-compatibility.patch')
-rw-r--r--target/linux/lantiq/patches/850-falcon-sysctrl-compatibility.patch60
1 files changed, 0 insertions, 60 deletions
diff --git a/target/linux/lantiq/patches/850-falcon-sysctrl-compatibility.patch b/target/linux/lantiq/patches/850-falcon-sysctrl-compatibility.patch
deleted file mode 100644
index 4f54a9b50..000000000
--- a/target/linux/lantiq/patches/850-falcon-sysctrl-compatibility.patch
+++ /dev/null
@@ -1,60 +0,0 @@
---- a/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h
-+++ b/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h
-@@ -20,23 +20,41 @@
- #ifndef __FALCON_SYSCTRL_H
- #define __FALCON_SYSCTRL_H
-
--extern void sys1_hw_activate(u32 mask);
--extern void sys1_hw_deactivate(u32 mask);
--extern void sys1_hw_clk_enable(u32 mask);
--extern void sys1_hw_clk_disable(u32 mask);
--extern void sys1_hw_activate_or_reboot(u32 mask);
-+#include <falcon/lantiq_soc.h>
-
--extern void sys_eth_hw_activate(u32 mask);
--extern void sys_eth_hw_deactivate(u32 mask);
--extern void sys_eth_hw_clk_enable(u32 mask);
--extern void sys_eth_hw_clk_disable(u32 mask);
--extern void sys_eth_hw_activate_or_reboot(u32 mask);
-+static inline void sys1_hw_activate(u32 mask)
-+{ ltq_sysctl_activate(SYSCTL_SYS1, mask); }
-+static inline void sys1_hw_deactivate(u32 mask)
-+{ ltq_sysctl_deactivate(SYSCTL_SYS1, mask); }
-+static inline void sys1_hw_clk_enable(u32 mask)
-+{ ltq_sysctl_clken(SYSCTL_SYS1, mask); }
-+static inline void sys1_hw_clk_disable(u32 mask)
-+{ ltq_sysctl_clkdis(SYSCTL_SYS1, mask); }
-+static inline void sys1_hw_activate_or_reboot(u32 mask)
-+{ ltq_sysctl_reboot(SYSCTL_SYS1, mask); }
-
--extern void sys_gpe_hw_activate(u32 mask);
--extern void sys_gpe_hw_deactivate(u32 mask);
--extern void sys_gpe_hw_clk_enable(u32 mask);
--extern void sys_gpe_hw_clk_disable(u32 mask);
--extern void sys_gpe_hw_activate_or_reboot(u32 mask);
--extern int sys_gpe_hw_is_activated(u32 mask);
-+static inline void sys_eth_hw_activate(u32 mask)
-+{ ltq_sysctl_activate(SYSCTL_SYSETH, mask); }
-+static inline void sys_eth_hw_deactivate(u32 mask)
-+{ ltq_sysctl_deactivate(SYSCTL_SYSETH, mask); }
-+static inline void sys_eth_hw_clk_enable(u32 mask)
-+{ ltq_sysctl_clken(SYSCTL_SYSETH, mask); }
-+static inline void sys_eth_hw_clk_disable(u32 mask)
-+{ ltq_sysctl_clkdis(SYSCTL_SYSETH, mask); }
-+static inline void sys_eth_hw_activate_or_reboot(u32 mask)
-+{ ltq_sysctl_reboot(SYSCTL_SYSETH, mask); }
-+
-+static inline void sys_gpe_hw_activate(u32 mask)
-+{ ltq_sysctl_activate(SYSCTL_SYSGPE, mask); }
-+static inline void sys_gpe_hw_deactivate(u32 mask)
-+{ ltq_sysctl_deactivate(SYSCTL_SYSGPE, mask); }
-+static inline void sys_gpe_hw_clk_enable(u32 mask)
-+{ ltq_sysctl_clken(SYSCTL_SYSGPE, mask); }
-+static inline void sys_gpe_hw_clk_disable(u32 mask)
-+{ ltq_sysctl_clkdis(SYSCTL_SYSGPE, mask); }
-+static inline void sys_gpe_hw_activate_or_reboot(u32 mask)
-+{ ltq_sysctl_reboot(SYSCTL_SYSGPE, mask); }
-+static inline int sys_gpe_hw_is_activated(u32 mask)
-+{ return 1; }
-
- #endif /* __FALCON_SYSCTRL_H */