xref: /rk3399_rockchip-uboot/arch/powerpc/include/asm/mp.h (revision 326ea986ac150acdc7656d57fca647db80b50158)
1a47a12beSStefan Roese /*
28f3a7fa4SKumar Gala  * Copyright 2009-2010 Freescale Semiconductor, Inc.
3a47a12beSStefan Roese  *
4*1a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
5a47a12beSStefan Roese  */
6a47a12beSStefan Roese 
7a47a12beSStefan Roese #ifndef _ASM_MP_H_
8a47a12beSStefan Roese #define _ASM_MP_H_
9a47a12beSStefan Roese 
10a47a12beSStefan Roese #include <lmb.h>
11a47a12beSStefan Roese 
12a47a12beSStefan Roese void setup_mp(void);
13a47a12beSStefan Roese void cpu_mp_lmb_reserve(struct lmb *lmb);
14eb539412SYork Sun u32 determine_mp_bootpg(unsigned int *pagesize);
158f3a7fa4SKumar Gala int is_core_disabled(int nr);
16a47a12beSStefan Roese 
17709389b6SYork Sun #ifdef CONFIG_E6500
18709389b6SYork Sun #define thread_to_core(x) (x >> 1)
19709389b6SYork Sun #else
20709389b6SYork Sun #define thread_to_core(x) (x)
21709389b6SYork Sun #endif
22709389b6SYork Sun 
23a47a12beSStefan Roese #endif
24