2012-11-14 22:51:08 +01:00
|
|
|
/*
|
|
|
|
* SMP support: Entry point for secondary CPUs
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Marvell
|
|
|
|
*
|
|
|
|
* Yehuda Yitschak <yehuday@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.
|
|
|
|
*
|
|
|
|
* This file implements the assembly entry point for secondary CPUs in
|
|
|
|
* an SMP kernel. The only thing we need to do is to add the CPU to
|
|
|
|
* the coherency fabric by writing to 2 registers. Currently the base
|
|
|
|
* register addresses are hard coded due to the early initialisation
|
|
|
|
* problems.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
|
2013-02-01 11:36:22 +01:00
|
|
|
#include <asm/assembler.h>
|
|
|
|
|
2012-11-14 22:51:08 +01:00
|
|
|
/*
|
|
|
|
* Armada XP specific entry point for secondary CPUs.
|
|
|
|
* We add the CPU to the coherency fabric and then jump to secondary
|
|
|
|
* startup
|
|
|
|
*/
|
|
|
|
ENTRY(armada_xp_secondary_startup)
|
2013-02-01 11:36:22 +01:00
|
|
|
ARM_BE8(setend be ) @ go BE8 if entered LE
|
|
|
|
|
2012-11-14 22:51:08 +01:00
|
|
|
/* Add CPU to coherency fabric */
|
|
|
|
bl ll_set_cpu_coherent
|
|
|
|
b secondary_startup
|
|
|
|
|
|
|
|
ENDPROC(armada_xp_secondary_startup)
|