blob: 95b9ac9bb8b168f85a59b4607c1bff98578f0d7d (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/*
* Copyright (C) 2011 Google, 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 _MACH_OMAP2_BOARD_TUNA_H_
#define _MACH_OMAP2_BOARD_TUNA_H_
#define TUNA_REV_MASK 0xf
#define TUNA_REV_03 0x3
#define TUNA_REV_SAMPLE_4 0x3
#define TUNA_TYPE_TORO 0x10
#define TUNA_TYPE_MAGURO 0x00
#define TUNA_TYPE_MASK 0x10
#define TUNA_GPIO_HDMI_HPD 63
#define TUNA_OTG_ID_POGO_PRIO INT_MIN
#define TUNA_OTG_ID_FSA9480_PRIO (INT_MIN + 1)
#define TUNA_OTG_ID_SII9234_PRIO (INT_MIN + 2)
#define TUNA_OTG_ID_SII9234_FAILED_PRIO (INT_MIN + 3)
#define TUNA_OTG_ID_FSA9480_LAST_PRIO INT_MAX
int omap4_tuna_get_revision(void);
int omap4_tuna_get_type(void);
bool omap4_tuna_final_gpios(void);
void omap4_tuna_display_init(void);
void omap4_tuna_input_init(void);
void omap4_tuna_jack_init(void);
void omap4_tuna_nfc_init(void);
void omap4_tuna_power_init(void);
void omap4_tuna_sensors_init(void);
void omap4_tuna_pogo_init(void);
int omap4_tuna_connector_init(void);
int tuna_wlan_init(void);
int omap_hsi_init(void);
void omap4_tuna_emif_init(void);
void omap4_ehci_init(void);
void modem_toro_init(void);
struct omap_ion_platform_data;
void tuna_android_display_setup(struct omap_ion_platform_data *ion);
enum pogo_power_state {
POGO_POWER_DISCONNECTED,
POGO_POWER_CHARGER,
POGO_POWER_HOST,
};
void tuna_otg_pogo_charger(enum pogo_power_state);
void tuna_otg_set_dock_switch(int enable);
extern struct mmc_platform_data tuna_wifi_data;
extern struct class *sec_class;
#endif
|