aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/include/mach/tegra-bb-power.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/tegra-bb-power.h')
-rw-r--r--arch/arm/mach-tegra/include/mach/tegra-bb-power.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/tegra-bb-power.h b/arch/arm/mach-tegra/include/mach/tegra-bb-power.h
new file mode 100644
index 00000000000..e0b7e3de326
--- /dev/null
+++ b/arch/arm/mach-tegra/include/mach/tegra-bb-power.h
@@ -0,0 +1,61 @@
1/*
2 * arch/arm/mach-tegra/include/mach/tegra-bb-power.h
3 *
4 * Copyright (C) 2011 NVIDIA Corporation
5 *
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 */
16
17#define GPIO_INVALID UINT_MAX
18
19union tegra_bb_gpio_id {
20 struct {
21 int mdm_reset;
22 int mdm_on;
23 int ap2mdm_ack;
24 int mdm2ap_ack;
25 int ap2mdm_ack2;
26 int mdm2ap_ack2;
27 int rsvd1;
28 int rsvd2;
29 } generic;
30 struct {
31 int bb_rst;
32 int bb_on;
33 int ipc_bb_wake;
34 int ipc_ap_wake;
35 int ipc_hsic_active;
36 int ipc_hsic_sus_req;
37 int rsvd1;
38 int rsvd2;
39 } xmm;
40 struct {
41 int pwr_status;
42 int pwr_on;
43 int uart_awr;
44 int uart_cwr;
45 int usb_awr;
46 int usb_cwr;
47 int service;
48 int resout2;
49 } m7400;
50};
51
52typedef struct platform_device* (*ehci_register_cb)(void);
53typedef void (*ehci_unregister_cb)(struct platform_device *);
54
55struct tegra_bb_pdata {
56 union tegra_bb_gpio_id *id;
57 struct platform_device *device;
58 ehci_register_cb ehci_register;
59 ehci_unregister_cb ehci_unregister;
60 int bb_id;
61};