2 * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com>
4 * SPDX-License-Identifier: GPL-2.0+
10 #include <linux/sizes.h>
12 #define UNIPHIER_SMPCTRL_ROM_RSV0 0x59801200
14 void uniphier_smp_setup(void);
15 void uniphier_secondary_startup(void);
17 void uniphier_smp_kick_all_cpus(void)
19 void __iomem *rom_boot_rsv0;
21 rom_boot_rsv0 = map_sysmem(UNIPHIER_SMPCTRL_ROM_RSV0, SZ_8);
23 writeq((u64)uniphier_secondary_startup, rom_boot_rsv0);
25 unmap_sysmem(rom_boot_rsv0);
29 asm("dsb ishst\n" /* Ensure the write to ROM_RSV0 is visible */
30 "sev"); /* Bring up all secondary CPUs from Boot ROM into U-Boot */