mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 20:04:05 +02:00
lantiq: split compat headers out of bsp header patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29001 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
98bf7b355b
commit
14ec28a2a3
@ -12048,51 +12048,6 @@
|
|||||||
+
|
+
|
||||||
+#endif /* _sys_gpe_reg_h */
|
+#endif /* _sys_gpe_reg_h */
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h
|
|
||||||
@@ -0,0 +1,42 @@
|
|
||||||
+/*
|
|
||||||
+ * This program is free software; you can redistribute it and/or
|
|
||||||
+ * modify it under the terms of the GNU General Public License as
|
|
||||||
+ * published by the Free Software Foundation; either version 2 of
|
|
||||||
+ * the License, or (at your option) any later version.
|
|
||||||
+ *
|
|
||||||
+ * This program is distributed in the hope that it will be useful,
|
|
||||||
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
+ * GNU General Public License for more details.
|
|
||||||
+ *
|
|
||||||
+ * You should have received a copy of the GNU General Public License
|
|
||||||
+ * along with this program; if not, write to the Free Software
|
|
||||||
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
||||||
+ * MA 02111-1307 USA
|
|
||||||
+ *
|
|
||||||
+ * Copyright (C) 2010 Thomas Langer, Lantiq Deutschland
|
|
||||||
+ */
|
|
||||||
+
|
|
||||||
+#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);
|
|
||||||
+
|
|
||||||
+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);
|
|
||||||
+
|
|
||||||
+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);
|
|
||||||
+
|
|
||||||
+#endif /* __FALCON_SYSCTRL_H */
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/arch/mips/include/asm/mach-lantiq/falcon/cpu-feature-overrides.h
|
+++ b/arch/mips/include/asm/mach-lantiq/falcon/cpu-feature-overrides.h
|
||||||
@@ -0,0 +1,58 @@
|
@@ -0,0 +1,58 @@
|
||||||
+/*
|
+/*
|
||||||
|
@ -1,21 +1,32 @@
|
|||||||
--- a/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h
|
Index: linux-3.1/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h
|
||||||
+++ b/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h
|
===================================================================
|
||||||
@@ -20,23 +20,41 @@
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||||
#ifndef __FALCON_SYSCTRL_H
|
+++ linux-3.1/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h 2011-11-13 00:18:10.316010867 +0100
|
||||||
#define __FALCON_SYSCTRL_H
|
@@ -0,0 +1,60 @@
|
||||||
|
+/*
|
||||||
-extern void sys1_hw_activate(u32 mask);
|
+ * This program is free software; you can redistribute it and/or
|
||||||
-extern void sys1_hw_deactivate(u32 mask);
|
+ * modify it under the terms of the GNU General Public License as
|
||||||
-extern void sys1_hw_clk_enable(u32 mask);
|
+ * published by the Free Software Foundation; either version 2 of
|
||||||
-extern void sys1_hw_clk_disable(u32 mask);
|
+ * the License, or (at your option) any later version.
|
||||||
-extern void sys1_hw_activate_or_reboot(u32 mask);
|
+ *
|
||||||
|
+ * This program is distributed in the hope that it will be useful,
|
||||||
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
+ * GNU General Public License for more details.
|
||||||
|
+ *
|
||||||
|
+ * You should have received a copy of the GNU General Public License
|
||||||
|
+ * along with this program; if not, write to the Free Software
|
||||||
|
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
||||||
|
+ * MA 02111-1307 USA
|
||||||
|
+ *
|
||||||
|
+ * Copyright (C) 2010 Thomas Langer, Lantiq Deutschland
|
||||||
|
+ */
|
||||||
|
+
|
||||||
|
+#ifndef __FALCON_SYSCTRL_H
|
||||||
|
+#define __FALCON_SYSCTRL_H
|
||||||
|
+
|
||||||
+#include <falcon/lantiq_soc.h>
|
+#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)
|
+static inline void sys1_hw_activate(u32 mask)
|
||||||
+{ ltq_sysctl_activate(SYSCTL_SYS1, mask); }
|
+{ ltq_sysctl_activate(SYSCTL_SYS1, mask); }
|
||||||
+static inline void sys1_hw_deactivate(u32 mask)
|
+static inline void sys1_hw_deactivate(u32 mask)
|
||||||
@ -26,13 +37,7 @@
|
|||||||
+{ ltq_sysctl_clkdis(SYSCTL_SYS1, mask); }
|
+{ ltq_sysctl_clkdis(SYSCTL_SYS1, mask); }
|
||||||
+static inline void sys1_hw_activate_or_reboot(u32 mask)
|
+static inline void sys1_hw_activate_or_reboot(u32 mask)
|
||||||
+{ ltq_sysctl_reboot(SYSCTL_SYS1, 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)
|
+static inline void sys_eth_hw_activate(u32 mask)
|
||||||
+{ ltq_sysctl_activate(SYSCTL_SYSETH, mask); }
|
+{ ltq_sysctl_activate(SYSCTL_SYSETH, mask); }
|
||||||
+static inline void sys_eth_hw_deactivate(u32 mask)
|
+static inline void sys_eth_hw_deactivate(u32 mask)
|
||||||
@ -56,5 +61,5 @@
|
|||||||
+{ ltq_sysctl_reboot(SYSCTL_SYSGPE, mask); }
|
+{ ltq_sysctl_reboot(SYSCTL_SYSGPE, mask); }
|
||||||
+static inline int sys_gpe_hw_is_activated(u32 mask)
|
+static inline int sys_gpe_hw_is_activated(u32 mask)
|
||||||
+{ return 1; }
|
+{ return 1; }
|
||||||
|
+
|
||||||
#endif /* __FALCON_SYSCTRL_H */
|
+#endif /* __FALCON_SYSCTRL_H */
|
Loading…
Reference in New Issue
Block a user