1 /* SPDX-License-Identifier: GPL-2.0+ 2 * 3 * Shared SCU setup for mach-shmobile 4 * 5 * Copyright (C) 2012 Bastian Hecht 6 */ 7 8 #include <linux/linkage.h> 9 #include <linux/init.h> 10 #include <asm/page.h> 11 12 /* 13 * Boot code for secondary CPUs. 14 * 15 * First we turn on L1 cache coherency for our 16 * secondary_startup that invalidates the cach 17 * to the common ARM startup code. 18 */ 19 ENTRY(shmobile_boot_scu) 20 @ r0 = 21 mrc p15, 0, r1, c0, c0, 5 @ read 22 and r1, r1, #3 @ mask 23 lsl r1, r1, #3 @ we w 24 ldr r2, [r0, #8] @ SCU 25 mov r3, #3 26 lsl r3, r3, r1 27 bic r2, r2, r3 @ Clea 28 str r2, [r0, #8] @ writ 29 30 b secondary_startup 31 ENDPROC(shmobile_boot_scu)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.