diff options
author | root <root@artemis.panaceas.org> | 2015-12-25 04:40:36 +0000 |
---|---|---|
committer | root <root@artemis.panaceas.org> | 2015-12-25 04:40:36 +0000 |
commit | 849369d6c66d3054688672f97d31fceb8e8230fb (patch) | |
tree | 6135abc790ca67dedbe07c39806591e70eda81ce /drivers/misc/ntx-misc.h | |
download | linux-3.0.35-kobo-849369d6c66d3054688672f97d31fceb8e8230fb.tar.gz linux-3.0.35-kobo-849369d6c66d3054688672f97d31fceb8e8230fb.tar.bz2 linux-3.0.35-kobo-849369d6c66d3054688672f97d31fceb8e8230fb.zip |
initial_commit
Diffstat (limited to 'drivers/misc/ntx-misc.h')
-rwxr-xr-x | drivers/misc/ntx-misc.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/drivers/misc/ntx-misc.h b/drivers/misc/ntx-misc.h new file mode 100755 index 00000000..fc2b45af --- /dev/null +++ b/drivers/misc/ntx-misc.h @@ -0,0 +1,46 @@ +/* ntx-misc.h + * + * Copyright (C) 2012 Netronix, Inc. + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * 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. + * +*/ + +#ifndef _NTX_MISC_H //[ +#define _NTX_MISC_H + +struct ntx_misc_platform_data { + unsigned acin_gpio; + unsigned chg_gpio; +}; + + +void msp430_homepad_enable(int iEnable); + +#define MSP430_HOMELED_TYPE_NORMAL 0 +#define MSP430_HOMELED_TYPE_PWM 1 +int msp430_homeled_type_set(int iHomeLedType); +int msp430_homeled_type_set_by_name(const char *I_pszHomeLedTypeName); +int msp430_homeled_type_get(char **O_ppszHomeLedStr); + +void msp430_homeled_enable(int iEnable); + +int msp430_set_homeled_delayms(int iDelayms); + +int msp430_set_homeled_pwm_delaylevel(int iDelayLevel); +int msp430_get_homeled_pwm_delaylevel(); + +int msp430_set_homeled_gpio_delaylevel(int iDelayLevel); +int msp430_get_homeled_gpio_delaylevel(void); + +void msp430_homepad_sensitivity_set(unsigned char bVal); + +#endif //] _NTX_MISC_H + |