Changeset 29001


Ignore:
Timestamp:
2011-11-13T00:40:07+01:00 (6 years ago)
Author:
blogic
Message:

lantiq: split compat headers out of bsp header patch

Location:
trunk/target/linux/lantiq/patches
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/lantiq/patches/100-falcon_bsp_header.patch

    r28721 r29001  
    1204912049+#endif /* _sys_gpe_reg_h */ 
    1205012050--- /dev/null 
    12051 +++ b/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h 
    12052 @@ -0,0 +1,42 @@ 
    12053 +/* 
    12054 + * This program is free software; you can redistribute it and/or 
    12055 + * modify it under the terms of the GNU General Public License as 
    12056 + * published by the Free Software Foundation; either version 2 of 
    12057 + * the License, or (at your option) any later version. 
    12058 + * 
    12059 + * This program is distributed in the hope that it will be useful, 
    12060 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    12061 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    12062 + * GNU General Public License for more details. 
    12063 + * 
    12064 + * You should have received a copy of the GNU General Public License 
    12065 + * along with this program; if not, write to the Free Software 
    12066 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
    12067 + * MA 02111-1307 USA 
    12068 + * 
    12069 + * Copyright (C) 2010 Thomas Langer, Lantiq Deutschland 
    12070 + */ 
    12071 + 
    12072 +#ifndef __FALCON_SYSCTRL_H 
    12073 +#define __FALCON_SYSCTRL_H 
    12074 + 
    12075 +extern void sys1_hw_activate(u32 mask); 
    12076 +extern void sys1_hw_deactivate(u32 mask); 
    12077 +extern void sys1_hw_clk_enable(u32 mask); 
    12078 +extern void sys1_hw_clk_disable(u32 mask); 
    12079 +extern void sys1_hw_activate_or_reboot(u32 mask); 
    12080 + 
    12081 +extern void sys_eth_hw_activate(u32 mask); 
    12082 +extern void sys_eth_hw_deactivate(u32 mask); 
    12083 +extern void sys_eth_hw_clk_enable(u32 mask); 
    12084 +extern void sys_eth_hw_clk_disable(u32 mask); 
    12085 +extern void sys_eth_hw_activate_or_reboot(u32 mask); 
    12086 + 
    12087 +extern void sys_gpe_hw_activate(u32 mask); 
    12088 +extern void sys_gpe_hw_deactivate(u32 mask); 
    12089 +extern void sys_gpe_hw_clk_enable(u32 mask); 
    12090 +extern void sys_gpe_hw_clk_disable(u32 mask); 
    12091 +extern void sys_gpe_hw_activate_or_reboot(u32 mask); 
    12092 +extern int sys_gpe_hw_is_activated(u32 mask); 
    12093 + 
    12094 +#endif /* __FALCON_SYSCTRL_H */ 
    12095 --- /dev/null 
    1209612051+++ b/arch/mips/include/asm/mach-lantiq/falcon/cpu-feature-overrides.h 
    1209712052@@ -0,0 +1,58 @@ 
  • trunk/target/linux/lantiq/patches/110-sdk-compat.patch

    r29000 r29001  
    1 --- a/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h 
    2 +++ b/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h 
    3 @@ -20,23 +20,41 @@ 
    4  #ifndef __FALCON_SYSCTRL_H 
    5  #define __FALCON_SYSCTRL_H 
    6   
    7 -extern void sys1_hw_activate(u32 mask); 
    8 -extern void sys1_hw_deactivate(u32 mask); 
    9 -extern void sys1_hw_clk_enable(u32 mask); 
    10 -extern void sys1_hw_clk_disable(u32 mask); 
    11 -extern void sys1_hw_activate_or_reboot(u32 mask); 
     1Index: linux-3.1/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h 
     2=================================================================== 
     3--- /dev/null   1970-01-01 00:00:00.000000000 +0000 
     4+++ linux-3.1/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h        2011-11-13 00:18:10.316010867 +0100 
     5@@ -0,0 +1,60 @@ 
     6+/* 
     7+ * This program is free software; you can redistribute it and/or 
     8+ * modify it under the terms of the GNU General Public License as 
     9+ * published by the Free Software Foundation; either version 2 of 
     10+ * the License, or (at your option) any later version. 
     11+ * 
     12+ * This program is distributed in the hope that it will be useful, 
     13+ * but WITHOUT ANY WARRANTY; without even the implied warranty of 
     14+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     15+ * GNU General Public License for more details. 
     16+ * 
     17+ * You should have received a copy of the GNU General Public License 
     18+ * along with this program; if not, write to the Free Software 
     19+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
     20+ * MA 02111-1307 USA 
     21+ * 
     22+ * Copyright (C) 2010 Thomas Langer, Lantiq Deutschland 
     23+ */ 
     24+ 
     25+#ifndef __FALCON_SYSCTRL_H 
     26+#define __FALCON_SYSCTRL_H 
     27+ 
    1228+#include <falcon/lantiq_soc.h> 
    13   
    14 -extern void sys_eth_hw_activate(u32 mask); 
    15 -extern void sys_eth_hw_deactivate(u32 mask); 
    16 -extern void sys_eth_hw_clk_enable(u32 mask); 
    17 -extern void sys_eth_hw_clk_disable(u32 mask); 
    18 -extern void sys_eth_hw_activate_or_reboot(u32 mask); 
     29+ 
    1930+static inline void sys1_hw_activate(u32 mask) 
    2031+{ ltq_sysctl_activate(SYSCTL_SYS1, mask); } 
     
    2738+static inline void sys1_hw_activate_or_reboot(u32 mask) 
    2839+{ ltq_sysctl_reboot(SYSCTL_SYS1, mask); } 
    29   
    30 -extern void sys_gpe_hw_activate(u32 mask); 
    31 -extern void sys_gpe_hw_deactivate(u32 mask); 
    32 -extern void sys_gpe_hw_clk_enable(u32 mask); 
    33 -extern void sys_gpe_hw_clk_disable(u32 mask); 
    34 -extern void sys_gpe_hw_activate_or_reboot(u32 mask); 
    35 -extern int sys_gpe_hw_is_activated(u32 mask); 
     40+ 
    3641+static inline void sys_eth_hw_activate(u32 mask) 
    3742+{ ltq_sysctl_activate(SYSCTL_SYSETH, mask); } 
     
    5762+static inline int sys_gpe_hw_is_activated(u32 mask) 
    5863+{ return 1; } 
    59   
    60  #endif /* __FALCON_SYSCTRL_H */ 
     64+ 
     65+#endif /* __FALCON_SYSCTRL_H */ 
Note: See TracChangeset for help on using the changeset viewer.