diff options
author | Tom Cherry <tcherry@nvidia.com> | 2010-12-13 11:15:36 -0800 |
---|---|---|
committer | Bharat Nihalani <bnihalani@nvidia.com> | 2010-12-16 21:36:14 -0800 |
commit | e13af470072123b6810d4b63e73582a16cab7b0b (patch) | |
tree | 46e6db36abc0ea7fda2c6df989b2b5969b231ca1 /arch/arm/mach-tegra/board-whistler-power.c | |
parent | a4fa764fe47b52411c56a2859ba4d73cac6c43f7 (diff) |
Initial Whistler support in K36
Change-Id: I6fce3852aa1e5063c45caa72c53d6f095db969b7
Reviewed-on: http://git-master/r/11640
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-whistler-power.c')
-rw-r--r-- | arch/arm/mach-tegra/board-whistler-power.c | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-whistler-power.c b/arch/arm/mach-tegra/board-whistler-power.c new file mode 100644 index 000000000000..22f57135cac7 --- /dev/null +++ b/arch/arm/mach-tegra/board-whistler-power.c @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2010 NVIDIA, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * 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. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + * 02111-1307, USA + */ +#include <linux/i2c.h> +#include <linux/pda_power.h> +#include <linux/platform_device.h> +#include <linux/resource.h> +#include <linux/regulator/machine.h> +#include <linux/mfd/tps6586x.h> +#include <linux/gpio.h> +#include <mach/suspend.h> +#include <linux/io.h> + +#include <mach/iomap.h> +#include <mach/irqs.h> + +#include "gpio-names.h" +#include "power.h" +#include "wakeups-t2.h" +#include "board.h" + +static struct tegra_suspend_platform_data whistler_suspend_data = { + .cpu_timer = 2000, + .cpu_off_timer = 0, + .suspend_mode = TEGRA_SUSPEND_NONE, + .core_timer = 0x7e7e, + .core_off_timer = 0, + .separate_req = true, + .corereq_high = true, + .sysclkreq_high = true, + .wake_enb = 0, + .wake_high = 0, + .wake_low = 0, + .wake_any = 0, +}; + +int __init whistler_regulator_init(void) +{ + tegra_init_suspend(&whistler_suspend_data); + + return 0; +} |