diff options
author | Tony Prisk <linux@prisktech.co.nz> | 2012-07-19 03:42:19 +1200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-07-18 18:51:55 +0200 |
commit | 86cc0ef8abd25fab2c7c6a6a57faf5cd8503a15b (patch) | |
tree | 3eb611f52f3a75aced6915c944e03a4cf4f40850 /arch/arm/mach-vt8500/include | |
parent | c26abeb7b5ee571ff47a094ede2c84356229628a (diff) | |
download | blackbird-op-linux-86cc0ef8abd25fab2c7c6a6a57faf5cd8503a15b.tar.gz blackbird-op-linux-86cc0ef8abd25fab2c7c6a6a57faf5cd8503a15b.zip |
ARM:vt8500: Convert to use .restart and remove arch_reset()
Removed system.h as it only contained an inline for arch_reset()
Changed the existing board files to use .restart in there machine
descriptions.
Added device tree support for the restart controller.
Device tree support for mach-vt8500 is still a work-in-progress.
Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-vt8500/include')
-rw-r--r-- | arch/arm/mach-vt8500/include/mach/restart.h | 17 | ||||
-rw-r--r-- | arch/arm/mach-vt8500/include/mach/system.h | 13 |
2 files changed, 17 insertions, 13 deletions
diff --git a/arch/arm/mach-vt8500/include/mach/restart.h b/arch/arm/mach-vt8500/include/mach/restart.h new file mode 100644 index 000000000000..89f9b787d2a0 --- /dev/null +++ b/arch/arm/mach-vt8500/include/mach/restart.h @@ -0,0 +1,17 @@ +/* linux/arch/arm/mach-vt8500/restart.h + * + * Copyright (C) 2012 Tony Prisk <linux@prisktech.co.nz> + * + * 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. + * + */ + +void wmt_setup_restart(void); +void wmt_restart(char mode, const char *cmd); diff --git a/arch/arm/mach-vt8500/include/mach/system.h b/arch/arm/mach-vt8500/include/mach/system.h deleted file mode 100644 index 58fa8010ee61..000000000000 --- a/arch/arm/mach-vt8500/include/mach/system.h +++ /dev/null @@ -1,13 +0,0 @@ -/* - * arch/arm/mach-vt8500/include/mach/system.h - * - */ -#include <asm/io.h> - -/* PM Software Reset request register */ -#define VT8500_PMSR_VIRT 0xf8130060 - -static inline void arch_reset(char mode, const char *cmd) -{ - writel(1, VT8500_PMSR_VIRT); -} |