summaryrefslogtreecommitdiff
path: root/common/include/asm/arch/system.h
diff options
context:
space:
mode:
authorCyril Jourdan2012-08-07 14:23:05 +0200
committerCyril Jourdan2012-09-20 09:42:57 +0200
commita637db1afee6307b2bd5a35885f6e01c0fee1ffd (patch)
treebf7f00257bf9df9a876270824cd4b83d7260c03c /common/include/asm/arch/system.h
parente701858bceda0cb76d58f947b0fe68cb6323c96e (diff)
cleo/linux: move remaining files from include/asm/arch/ to common/, refs #3119
Except ioctl.h, spc300-reset_cause.h and vmalloc.h which are too specific to be put in common.
Diffstat (limited to 'common/include/asm/arch/system.h')
-rw-r--r--common/include/asm/arch/system.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/common/include/asm/arch/system.h b/common/include/asm/arch/system.h
new file mode 100644
index 0000000000..a9c2d09fba
--- /dev/null
+++ b/common/include/asm/arch/system.h
@@ -0,0 +1,43 @@
+/*
+ * include/asm/arch/system.h
+ *
+ * Copyright (C) 2012 MStar Semiconductor.
+ *
+ * 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,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+#ifndef __ASM_ARCH_SYSTEM_H
+#define __ASM_ARCH_SYSTEM_H
+
+#include <asm/arch/hardware.h>
+#include <asm/arch/ips/regbank.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)
+{
+ /*
+ * Perform a hardware reset with reset manager.
+ */
+ RB_RST_GLOBAL_VA = 1;
+}
+
+#endif /* __ASM_ARCH_SYSTEM_H */