|
@@ -10,6 +10,11 @@
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
* published by the Free Software Foundation.
|
|
|
*/
|
|
|
+#include <linux/delay.h>
|
|
|
+#include <linux/io.h>
|
|
|
+
|
|
|
+#include "regs-clock.h"
|
|
|
+#include "regs-irq.h"
|
|
|
|
|
|
static inline void s3c_pm_debug_init_uart(void)
|
|
|
{
|
|
@@ -42,8 +47,23 @@ static inline void s3c_pm_arch_stop_clocks(void)
|
|
|
__raw_writel(0x00, S3C2410_CLKCON); /* turn off clocks over sleep */
|
|
|
}
|
|
|
|
|
|
-static void s3c_pm_show_resume_irqs(int start, unsigned long which,
|
|
|
- unsigned long mask);
|
|
|
+/* s3c2410_pm_show_resume_irqs
|
|
|
+ *
|
|
|
+ * print any IRQs asserted at resume time (ie, we woke from)
|
|
|
+*/
|
|
|
+static inline void s3c_pm_show_resume_irqs(int start, unsigned long which,
|
|
|
+ unsigned long mask)
|
|
|
+{
|
|
|
+ int i;
|
|
|
+
|
|
|
+ which &= ~mask;
|
|
|
+
|
|
|
+ for (i = 0; i <= 31; i++) {
|
|
|
+ if (which & (1L<<i)) {
|
|
|
+ S3C_PMDBG("IRQ %d asserted at resume\n", start+i);
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
static inline void s3c_pm_arch_show_resume_irqs(void)
|
|
|
{
|