Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Core functions for Marvell System On Chip
0004  *
0005  * Copyright (C) 2012 Marvell
0006  *
0007  * Lior Amsalem <alior@marvell.com>
0008  * Gregory CLEMENT <gregory.clement@free-electrons.com>
0009  * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
0010  */
0011 
0012 #ifndef __ARCH_MVEBU_COMMON_H
0013 #define __ARCH_MVEBU_COMMON_H
0014 
0015 #include <linux/reboot.h>
0016 
0017 void mvebu_restart(enum reboot_mode mode, const char *cmd);
0018 int mvebu_cpu_reset_deassert(int cpu);
0019 void mvebu_pmsu_set_cpu_boot_addr(int hw_cpu, void *boot_addr);
0020 void mvebu_system_controller_set_cpu_boot_addr(void *boot_addr);
0021 int mvebu_system_controller_get_soc_id(u32 *dev, u32 *rev);
0022 
0023 void __iomem *mvebu_get_scu_base(void);
0024 
0025 int mvebu_pm_suspend_init(void (*board_pm_enter)(void __iomem *sdram_reg,
0026                             u32 srcmd));
0027 #endif