1 // SPDX-License-Identifier: GPL-2.0-only
3 * Keystone SOC SMP platform code
5 * Copyright 2013 Texas Instruments, Inc.
6 * Cyril Chemparathy <cyril@ti.com>
7 * Santosh Shilimkar <santosh.shillimkar@ti.com>
9 * Based on platsmp.c, Copyright (C) 2002 ARM Ltd.
12 #include <linux/init.h>
13 #include <linux/smp.h>
16 #include <asm/smp_plat.h>
18 #include <asm/tlbflush.h>
19 #include <asm/pgtable.h>
23 static int keystone_smp_boot_secondary(unsigned int cpu
,
24 struct task_struct
*idle
)
26 unsigned long start
= virt_to_idmap(&secondary_startup
);
29 pr_debug("keystone-smp: booting cpu %d, vector %08lx\n",
32 error
= keystone_cpu_smc(KEYSTONE_MON_CPU_UP_IDX
, cpu
, start
);
34 pr_err("CPU %d bringup failed with %d\n", cpu
, error
);
39 const struct smp_operations keystone_smp_ops __initconst
= {
40 .smp_boot_secondary
= keystone_smp_boot_secondary
,