2 * Keystone SOC SMP platform code
4 * Copyright 2013 Texas Instruments, Inc.
5 * Cyril Chemparathy <cyril@ti.com>
6 * Santosh Shilimkar <santosh.shillimkar@ti.com>
8 * Based on platsmp.c, Copyright (C) 2002 ARM Ltd.
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms and conditions of the GNU General Public License,
12 * version 2, as published by the Free Software Foundation.
15 #include <linux/init.h>
16 #include <linux/smp.h>
19 #include <asm/smp_plat.h>
24 static int __cpuinit keystone_smp_boot_secondary(unsigned int cpu,
25 struct task_struct *idle)
27 unsigned long start = virt_to_phys(&secondary_startup);
30 pr_debug("keystone-smp: booting cpu %d, vector %08lx\n",
33 error = keystone_cpu_smc(KEYSTONE_MON_CPU_UP_IDX, cpu, start);
35 pr_err("CPU %d bringup failed with %d\n", cpu, error);
40 struct smp_operations keystone_smp_ops __initdata = {
41 .smp_init_cpus = arm_dt_init_cpu_maps,
42 .smp_boot_secondary = keystone_smp_boot_secondary,