mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
ed5cd8163d
Add support for booting the secondary CPU on BCM63138, this involves: - locating the bootlut to write the reset vector - powering up the second CPU when we need to using the DT-supplied PMB references - disabling VFP when enabled such that we can keep having SMP Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
24 lines
595 B
ArmAsm
24 lines
595 B
ArmAsm
/*
|
|
* Copyright (C) 2015, Broadcom Corporation
|
|
* All Rights Reserved
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#include <linux/linkage.h>
|
|
#include <linux/init.h>
|
|
#include <asm/assembler.h>
|
|
|
|
ENTRY(bcm63138_secondary_startup)
|
|
ARM_BE8(setend be)
|
|
/*
|
|
* L1 cache does have unpredictable contents at power-up clean its
|
|
* contents without flushing
|
|
*/
|
|
bl v7_invalidate_l1
|
|
nop
|
|
|
|
b secondary_startup
|
|
ENDPROC(bcm63138_secondary_startup)
|