source: trunk/target/linux/lantiq/patches/110-sdk-compat.patch @ 29001

Last change on this file since 29001 was 29001, checked in by blogic, 5 years ago

lantiq: split compat headers out of bsp header patch

File size: 2.7 KB
  • new file linux-3.1/arch/mips/include/asm/mach-lantiq/falcon/sysctrl.h

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