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 | |
Thomas Petazzoni | b21dcaf | 2013-06-05 09:04:54 +0200 | [diff] [blame] | 18 | #define ARMADA_XP_MAX_CPUS 4 |
| 19 | |
Robin Holt | 7b6d864 | 2013-07-08 16:01:40 -0700 | [diff] [blame] | 20 | #include <linux/reboot.h> |
| 21 | |
| 22 | void mvebu_restart(enum reboot_mode mode, const char *cmd); |
Gregory CLEMENT | 31af49d | 2012-06-01 18:21:46 +0200 | [diff] [blame] | 23 | |
Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 24 | void armada_370_xp_init_irq(void); |
| 25 | void armada_370_xp_handle_irq(struct pt_regs *regs); |
| 26 | |
Gregory CLEMENT | 45f5984 | 2012-11-14 22:51:08 +0100 | [diff] [blame] | 27 | void armada_xp_cpu_die(unsigned int cpu); |
Gregory CLEMENT | 009f131 | 2012-08-02 11:16:29 +0300 | [diff] [blame] | 28 | int armada_370_xp_coherency_init(void); |
Gregory CLEMENT | 7444dad | 2012-08-02 11:17:51 +0300 | [diff] [blame] | 29 | int armada_370_xp_pmsu_init(void); |
Gregory CLEMENT | 45f5984 | 2012-11-14 22:51:08 +0100 | [diff] [blame] | 30 | void armada_xp_secondary_startup(void); |
| 31 | extern struct smp_operations armada_xp_smp_ops; |
Gregory CLEMENT | 31af49d | 2012-06-01 18:21:46 +0200 | [diff] [blame] | 32 | #endif |