aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-nomadik/include/mach/system.h
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2009-09-12 11:50:52 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-09-12 11:50:52 +0100
commit701038144945ef98c5817f43079952fa38c35999 (patch)
tree88782f6ac8e4df1f7f8f738659adedd7108e8cae /arch/arm/mach-nomadik/include/mach/system.h
parent4abf27add86e5b7c37dca1fb4dd9a740b4332a84 (diff)
parentc2b455474e4c6bc8bab6506e2a08dbd5ad50d74d (diff)
Merge branch 'nomadik' into devel-stable
Diffstat (limited to 'arch/arm/mach-nomadik/include/mach/system.h')
-rw-r--r--arch/arm/mach-nomadik/include/mach/system.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/arm/mach-nomadik/include/mach/system.h b/arch/arm/mach-nomadik/include/mach/system.h
new file mode 100644
index 00000000000..7119f688116
--- /dev/null
+++ b/arch/arm/mach-nomadik/include/mach/system.h
@@ -0,0 +1,45 @@
+/*
+ * mach-nomadik/include/mach/system.h
+ *
+ * Copyright (C) 2008 STMicroelectronics
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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
+ */
+#ifndef __ASM_ARCH_SYSTEM_H
+#define __ASM_ARCH_SYSTEM_H
+
+#include <linux/io.h>
+#include <mach/hardware.h>
+
+static inline void arch_idle(void)
+{
+ /*
+ * This should do all the clock switching
+ * and wait for interrupt tricks
+ */
+ cpu_do_idle();
+}
+
+static inline void arch_reset(char mode, const char *cmd)
+{
+ void __iomem *src_rstsr = io_p2v(NOMADIK_SRC_BASE + 0x18);
+
+ /* FIXME: use egpio when implemented */
+
+ /* Write anything to Reset status register */
+ writel(1, src_rstsr);
+}
+
+#endif