xref: /openbmc/linux/arch/arm/mach-rockchip/headsmp.S (revision 3ee851e2)
1/*
2 * Copyright (c) 2013 MundoReader S.L.
3 * Author: Heiko Stuebner <heiko@sntech.de>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 */
15#include <linux/linkage.h>
16#include <linux/init.h>
17
18ENTRY(rockchip_secondary_startup)
19	mrc	p15, 0, r0, c0, c0, 0	@ read main ID register
20	ldr	r1, =0x00000c09		@ Cortex-A9 primary part number
21	teq	r0, r1
22	beq	v7_invalidate_l1
23	b	secondary_startup
24ENDPROC(rockchip_secondary_startup)
25
26ENTRY(rockchip_secondary_trampoline)
27	ldr	pc, 1f
28ENDPROC(rockchip_secondary_trampoline)
29	.globl	rockchip_boot_fn
30rockchip_boot_fn:
311:	.space	4
32
33ENTRY(rockchip_secondary_trampoline_end)
34