mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 22:14:41 +08:00
3cbd6a6ca8
Until now only one Armada XP and one Armada 388 based board supported suspend to ram. However, most of the recent mvebu SoCs can support the standby mode. Unlike for the suspend to ram, nothing special has to be done for these SoCs. This patch allows the system to use the standby mode on Armada 370, 38x, 39x and XP SoCs. There are issues with the Armada 375, and the support might be added (if possible) in a future patch. Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
31 lines
949 B
C
31 lines
949 B
C
/*
|
|
* Core functions for Marvell System On Chip
|
|
*
|
|
* Copyright (C) 2012 Marvell
|
|
*
|
|
* Lior Amsalem <alior@marvell.com>
|
|
* Gregory CLEMENT <gregory.clement@free-electrons.com>
|
|
* Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
*
|
|
* This file is licensed under the terms of the GNU General Public
|
|
* License version 2. This program is licensed "as is" without any
|
|
* warranty of any kind, whether express or implied.
|
|
*/
|
|
|
|
#ifndef __ARCH_MVEBU_COMMON_H
|
|
#define __ARCH_MVEBU_COMMON_H
|
|
|
|
#include <linux/reboot.h>
|
|
|
|
void mvebu_restart(enum reboot_mode mode, const char *cmd);
|
|
int mvebu_cpu_reset_deassert(int cpu);
|
|
void mvebu_pmsu_set_cpu_boot_addr(int hw_cpu, void *boot_addr);
|
|
void mvebu_system_controller_set_cpu_boot_addr(void *boot_addr);
|
|
int mvebu_system_controller_get_soc_id(u32 *dev, u32 *rev);
|
|
|
|
void __iomem *mvebu_get_scu_base(void);
|
|
|
|
int mvebu_pm_suspend_init(void (*board_pm_enter)(void __iomem *sdram_reg,
|
|
u32 srcmd));
|
|
#endif
|