[ARM] tegra: Add prototypes for subsystem suspend functions
authorColin Cross <ccross@android.com>
Mon, 4 Oct 2010 15:49:49 +0000 (08:49 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:26:20 +0000 (16:26 -0700)
Change-Id: If14c826e8919f5de11331a5c45994fe7e451330a
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/mach-tegra/dma.c
arch/arm/mach-tegra/gpio.c
arch/arm/mach-tegra/include/mach/suspend.h [new file with mode: 0644]
arch/arm/mach-tegra/irq.c
arch/arm/mach-tegra/pinmux-t2-tables.c
arch/arm/mach-tegra/tegra2_clocks.c
arch/arm/mach-tegra/timer.c

index edda6ec5e925b9dd1d75dc8b776573cae5200d1c..a2a252db024bdd6e9a354988187a5209f4b59f33 100644 (file)
@@ -30,6 +30,7 @@
 #include <mach/dma.h>
 #include <mach/irqs.h>
 #include <mach/iomap.h>
+#include <mach/suspend.h>
 
 #define APB_DMA_GEN                            0x000
 #define GEN_ENABLE                             (1<<31)
index 0775265e69f5e8fa7e67acef442f1ff9c02607a3..1bf92e581cc6f43ffbc25e15c4a97aff0297bddd 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/gpio.h>
 
 #include <mach/iomap.h>
+#include <mach/suspend.h>
 
 #define GPIO_BANK(x)           ((x) >> 5)
 #define GPIO_PORT(x)           (((x) >> 3) & 0x3)
diff --git a/arch/arm/mach-tegra/include/mach/suspend.h b/arch/arm/mach-tegra/include/mach/suspend.h
new file mode 100644 (file)
index 0000000..5af8715
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * arch/arm/mach-tegra/include/mach/suspend.h
+ *
+ * Copyright (C) 2010 Google, Inc.
+ *
+ * Author:
+ *     Colin Cross <ccross@google.com>
+ *
+ * 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_TEGRA_SUSPEND_H_
+#define _MACH_TEGRA_SUSPEND_H_
+
+void tegra_pinmux_suspend(void);
+void tegra_irq_suspend(void);
+void tegra_gpio_suspend(void);
+void tegra_clk_suspend(void);
+void tegra_dma_suspend(void);
+void tegra_timer_suspend(void);
+
+void tegra_pinmux_resume(void);
+void tegra_irq_resume(void);
+void tegra_gpio_resume(void);
+void tegra_clk_resume(void);
+void tegra_dma_resume(void);
+void tegra_timer_resume(void);
+
+#endif /* _MACH_TEGRA_SUSPEND_H_ */
index 50a8dfb9a0cfe8cbb1dbdaeb8a913d5858000902..061ffb5a22e59a2cb5f467c52086a748a1b65902 100644 (file)
@@ -26,6 +26,7 @@
 #include <asm/hardware/gic.h>
 
 #include <mach/iomap.h>
+#include <mach/suspend.h>
 
 #include "board.h"
 
index a6ea34e782dc339091b49e54871f953048651ad3..4d97d5c86ac3323f1a0720df422f8bd77d78aa53 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <mach/iomap.h>
 #include <mach/pinmux.h>
+#include <mach/suspend.h>
 
 #define DRIVE_PINGROUP(pg_name, r)                             \
        [TEGRA_DRIVE_PINGROUP_ ## pg_name] = {                  \
index cf1c9d0ef7e13b7295ffdc56bfedba0886982cf8..fd7f75e6a343b6fe52caee1be5ed7b56a03cff82 100644 (file)
@@ -28,6 +28,7 @@
 #include <asm/clkdev.h>
 
 #include <mach/iomap.h>
+#include <mach/suspend.h>
 
 #include "clock.h"
 #include "fuse.h"
index 2f420210d4069cbfd299d7413cd527e4540a742b..363217308285c38cefa78ccee3a072fcdc680b88 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <mach/iomap.h>
 #include <mach/irqs.h>
+#include <mach/suspend.h>
 
 #include "board.h"
 #include "clock.h"