Gregory CLEMENT | 45f5984 | 2012-11-14 22:51:08 +0100 | [diff] [blame] | 1 | /* |
| 2 | * SMP support: Entry point for secondary CPUs |
| 3 | * |
| 4 | * Copyright (C) 2012 Marvell |
| 5 | * |
| 6 | * Yehuda Yitschak <yehuday@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 | * This file implements the assembly entry point for secondary CPUs in |
| 15 | * an SMP kernel. The only thing we need to do is to add the CPU to |
| 16 | * the coherency fabric by writing to 2 registers. Currently the base |
| 17 | * register addresses are hard coded due to the early initialisation |
| 18 | * problems. |
| 19 | */ |
| 20 | |
| 21 | #include <linux/linkage.h> |
| 22 | #include <linux/init.h> |
| 23 | |
Ben Dooks | bca028e | 2013-02-01 10:36:22 +0000 | [diff] [blame] | 24 | #include <asm/assembler.h> |
| 25 | |
Gregory CLEMENT | 45f5984 | 2012-11-14 22:51:08 +0100 | [diff] [blame] | 26 | /* |
| 27 | * Armada XP specific entry point for secondary CPUs. |
| 28 | * We add the CPU to the coherency fabric and then jump to secondary |
| 29 | * startup |
| 30 | */ |
| 31 | ENTRY(armada_xp_secondary_startup) |
Ben Dooks | bca028e | 2013-02-01 10:36:22 +0000 | [diff] [blame] | 32 | ARM_BE8(setend be ) @ go BE8 if entered LE |
| 33 | |
Gregory CLEMENT | 2e8a594 | 2014-04-14 17:10:08 +0200 | [diff] [blame] | 34 | bl ll_add_cpu_to_smp_group |
| 35 | |
| 36 | bl ll_enable_coherency |
| 37 | |
Gregory CLEMENT | 45f5984 | 2012-11-14 22:51:08 +0100 | [diff] [blame] | 38 | b secondary_startup |
| 39 | |
| 40 | ENDPROC(armada_xp_secondary_startup) |