diff options
| author | Dinh Nguyen <dinguyen@altera.com> | 2013-04-11 10:55:24 -0500 | 
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2013-04-14 20:17:33 -0700 | 
| commit | 5c04b57fe33c7700e433983bb69e50ec8d8f08cd (patch) | |
| tree | a4c95094ab7c7918d4e64de7fcc1cd74386015f0 /arch/arm/mach-socfpga/core.h | |
| parent | a93216c9212cb9ec36bb71776b706e7ed2d9d67c (diff) | |
| download | olio-linux-3.10-5c04b57fe33c7700e433983bb69e50ec8d8f08cd.tar.xz olio-linux-3.10-5c04b57fe33c7700e433983bb69e50ec8d8f08cd.zip  | |
ARM: socfpga: Enable soft reset
Enable a cold or warm reset to the HW from userspace.
Also fix a few sparse errors:
warning: symbol 'sys_manager_base_addr' was not declared. Should it be static?
warning: symbol 'rst_manager_base_addr' was not declared. Should it be static?
Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Reviewed-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-socfpga/core.h')
| -rw-r--r-- | arch/arm/mach-socfpga/core.h | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/core.h b/arch/arm/mach-socfpga/core.h index 315edff610f..572b8f719ff 100644 --- a/arch/arm/mach-socfpga/core.h +++ b/arch/arm/mach-socfpga/core.h @@ -20,12 +20,23 @@  #ifndef __MACH_CORE_H  #define __MACH_CORE_H +#define SOCFPGA_RSTMGR_CTRL	0x04 +#define SOCFPGA_RSTMGR_MODPERRST	0x14 +#define SOCFPGA_RSTMGR_BRGMODRST	0x1c + +/* System Manager bits */ +#define RSTMGR_CTRL_SWCOLDRSTREQ	0x1	/* Cold Reset */ +#define RSTMGR_CTRL_SWWARMRSTREQ	0x2	/* Warm Reset */ +  extern void socfpga_secondary_startup(void);  extern void __iomem *socfpga_scu_base_addr;  extern void socfpga_init_clocks(void);  extern void socfpga_sysmgr_init(void); +extern void __iomem *sys_manager_base_addr; +extern void __iomem *rst_manager_base_addr; +  extern struct smp_operations socfpga_smp_ops;  extern char secondary_trampoline, secondary_trampoline_end;  |