Merge remote-tracking branch 'spi/fix/rspi' into spi-rcar
[deliverable/linux.git] / arch / arm / mach-keystone / platsmp.c
1 /*
2 * Keystone SOC SMP platform code
3 *
4 * Copyright 2013 Texas Instruments, Inc.
5 * Cyril Chemparathy <cyril@ti.com>
6 * Santosh Shilimkar <santosh.shillimkar@ti.com>
7 *
8 * Based on platsmp.c, Copyright (C) 2002 ARM Ltd.
9 *
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.
13 */
14
15 #include <linux/init.h>
16 #include <linux/smp.h>
17 #include <linux/io.h>
18
19 #include <asm/smp_plat.h>
20
21 #include "keystone.h"
22
23 static int keystone_smp_boot_secondary(unsigned int cpu,
24 struct task_struct *idle)
25 {
26 unsigned long start = virt_to_phys(&secondary_startup);
27 int error;
28
29 pr_debug("keystone-smp: booting cpu %d, vector %08lx\n",
30 cpu, start);
31
32 error = keystone_cpu_smc(KEYSTONE_MON_CPU_UP_IDX, cpu, start);
33 if (error)
34 pr_err("CPU %d bringup failed with %d\n", cpu, error);
35
36 return error;
37 }
38
39 struct smp_operations keystone_smp_ops __initdata = {
40 .smp_boot_secondary = keystone_smp_boot_secondary,
41 };
This page took 0.034191 seconds and 6 git commands to generate.