Gregory CLEMENT | 31af49d | 2012-06-01 18:21:46 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Core functions for Marvell System On Chip |
| 3 | * |
| 4 | * Copyright (C) 2012 Marvell |
| 5 | * |
| 6 | * Lior Amsalem <alior@marvell.com> |
| 7 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
| 8 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
| 9 | * |
| 10 | * This file is licensed under the terms of the GNU General Public |
| 11 | * License version 2. This program is licensed "as is" without any |
| 12 | * warranty of any kind, whether express or implied. |
| 13 | */ |
| 14 | |
| 15 | #ifndef __ARCH_MVEBU_COMMON_H |
| 16 | #define __ARCH_MVEBU_COMMON_H |
| 17 | |
Robin Holt | 7b6d864 | 2013-07-08 16:01:40 -0700 | [diff] [blame] | 18 | #include <linux/reboot.h> |
| 19 | |
| 20 | void mvebu_restart(enum reboot_mode mode, const char *cmd); |
Thomas Petazzoni | 3f20fb1 | 2014-04-14 15:50:28 +0200 | [diff] [blame] | 21 | int mvebu_cpu_reset_deassert(int cpu); |
Thomas Petazzoni | 05ad690 | 2014-04-14 15:53:58 +0200 | [diff] [blame] | 22 | void mvebu_pmsu_set_cpu_boot_addr(int hw_cpu, void *boot_addr); |
Gregory CLEMENT | 00504be | 2014-04-14 15:54:03 +0200 | [diff] [blame] | 23 | void mvebu_system_controller_set_cpu_boot_addr(void *boot_addr); |
Gregory CLEMENT | 9674d4a | 2014-06-23 17:42:08 +0200 | [diff] [blame] | 24 | int mvebu_system_controller_get_soc_id(u32 *dev, u32 *rev); |
Gregory CLEMENT | 31af49d | 2012-06-01 18:21:46 +0200 | [diff] [blame] | 25 | |
Gregory CLEMENT | 6a2b534 | 2014-07-23 15:00:46 +0200 | [diff] [blame] | 26 | void __iomem *mvebu_get_scu_base(void); |
| 27 | |
Gregory CLEMENT | 3cbd6a6 | 2015-07-03 13:55:51 +0200 | [diff] [blame] | 28 | int mvebu_pm_suspend_init(void (*board_pm_enter)(void __iomem *sdram_reg, |
| 29 | u32 srcmd)); |
Gregory CLEMENT | 31af49d | 2012-06-01 18:21:46 +0200 | [diff] [blame] | 30 | #endif |