upload tizen1.0 source
[kernel/linux-2.6.36.git] / include / linux / fsa9480.h
1 /*
2  * Copyright (C) 2010 Samsung Electronics
3  * Minkyu Kang <mk7.kang@samsung.com>
4  * Wonguk Jeong <wonguk.jeong@samsung.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19  *
20  */
21
22 #ifndef _FSA9480_H_
23 #define _FSA9480_H_
24
25 #define FSA9480_ATTACHED        1
26 #define FSA9480_DETACHED        0
27
28 struct fsa9480_platform_data {
29         void (*cfg_gpio) (void);
30         void (*usb_cb) (u8 attached);
31         void (*uart_cb) (u8 attached);
32         void (*charger_cb) (u8 attached);
33         void (*jig_cb) (u8 attached);
34         void (*reset_cb) (void);
35         void (*usb_power) (u8 on);
36         int wakeup;
37 };
38
39 void fsa9480_set_switch(const char *buf);
40 ssize_t fsa9480_get_switch(char *buf);
41
42 #endif /* _FSA9480_H_ */