diff options
Diffstat (limited to 'arch/arm/mach-tegra/board-aruba-power.c')
-rw-r--r-- | arch/arm/mach-tegra/board-aruba-power.c | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-aruba-power.c b/arch/arm/mach-tegra/board-aruba-power.c new file mode 100644 index 00000000000..4391f6f19b5 --- /dev/null +++ b/arch/arm/mach-tegra/board-aruba-power.c | |||
@@ -0,0 +1,76 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2010 NVIDIA, Inc. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program; if not, write to the Free Software | ||
15 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | ||
16 | * 02111-1307, USA | ||
17 | */ | ||
18 | #include <linux/i2c.h> | ||
19 | #include <linux/pda_power.h> | ||
20 | #include <linux/platform_device.h> | ||
21 | #include <linux/resource.h> | ||
22 | #include <linux/io.h> | ||
23 | |||
24 | #include <mach/iomap.h> | ||
25 | #include <mach/irqs.h> | ||
26 | |||
27 | #include "pm.h" | ||
28 | #include "board.h" | ||
29 | #include "wakeups-t3.h" | ||
30 | |||
31 | static int ac_online(void) | ||
32 | { | ||
33 | return 1; | ||
34 | } | ||
35 | |||
36 | static struct resource aruba_pda_resources[] = { | ||
37 | [0] = { | ||
38 | .name = "ac", | ||
39 | }, | ||
40 | }; | ||
41 | |||
42 | static struct pda_power_pdata aruba_pda_data = { | ||
43 | .is_ac_online = ac_online, | ||
44 | }; | ||
45 | |||
46 | static struct platform_device aruba_pda_power_device = { | ||
47 | .name = "pda-power", | ||
48 | .id = -1, | ||
49 | .resource = aruba_pda_resources, | ||
50 | .num_resources = ARRAY_SIZE(aruba_pda_resources), | ||
51 | .dev = { | ||
52 | .platform_data = &aruba_pda_data, | ||
53 | }, | ||
54 | }; | ||
55 | |||
56 | static struct tegra_suspend_platform_data aruba_suspend_data = { | ||
57 | .cpu_timer = 2000, | ||
58 | .cpu_off_timer = 0, | ||
59 | .suspend_mode = TEGRA_SUSPEND_NONE, | ||
60 | .core_timer = 0x7e7e, | ||
61 | .core_off_timer = 0, | ||
62 | .corereq_high = false, | ||
63 | .sysclkreq_high = true, | ||
64 | }; | ||
65 | |||
66 | int __init aruba_regulator_init(void) | ||
67 | { | ||
68 | platform_device_register(&aruba_pda_power_device); | ||
69 | tegra_init_suspend(&aruba_suspend_data); | ||
70 | return 0; | ||
71 | } | ||
72 | |||
73 | void __init tegra_tsensor_init(void) | ||
74 | { | ||
75 | /* No tsensor on FPGAs */ | ||
76 | } | ||