aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s5pv210/include/mach/sec_switch.h
blob: 8cc3a63f4acfabd83bb89b3e0d548f5868f573db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * Copyright (C) 2010 Samsung Electronics, 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 __ASM_ARCH_SEC_SWITCH_H
#define __ASM_ARCH_SEC_SWITCH_H

struct sec_switch_platform_data {
#ifdef CONFIG_MACH_P1
	int (*get_regulator) (void);
	void (*set_regulator) (int mode);
	void (*set_switch_status) (int val);
#endif
#ifdef CONFIG_MACH_ARIES
	void (*set_vbus_status) (u8 mode);
	void (*set_usb_gadget_vbus) (bool en);
#endif
	int (*get_cable_status) (void);
	int (*get_phy_init_status) (void);
};

#define SWITCH_MODEM	0
#define SWITCH_PDA	1
#ifdef CONFIG_MACH_P1
enum {
	AP_VBUS_ON = 0,
	CP_VBUS_ON,
	AP_VBUS_OFF,
};
#endif

#ifdef CONFIG_MACH_ARIES
#define USB_VBUS_ALL_OFF 0
#define USB_VBUS_CP_ON	 1
#define USB_VBUS_AP_ON	 2
#define USB_VBUS_ALL_ON	 3
#endif

#endif