Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Kumar Gala | 56d150e | 2009-03-31 23:02:38 -0500 | [diff] [blame] | 2 | /* |
Kumar Gala | 819a479 | 2010-06-09 22:33:53 -0500 | [diff] [blame] | 3 | * Copyright 2009-2010 Freescale Semiconductor, Inc. |
Kumar Gala | 56d150e | 2009-03-31 23:02:38 -0500 | [diff] [blame] | 4 | */ |
5 | |||||
6 | #ifndef _ASM_MP_H_ | ||||
7 | #define _ASM_MP_H_ | ||||
8 | |||||
Kumar Gala | 56d150e | 2009-03-31 23:02:38 -0500 | [diff] [blame] | 9 | void setup_mp(void); |
Sughosh Ganu | 291bf9c | 2024-08-26 17:29:18 +0530 | [diff] [blame] | 10 | void cpu_mp_lmb_reserve(void); |
York Sun | a28496f | 2012-10-08 07:44:25 +0000 | [diff] [blame] | 11 | u32 determine_mp_bootpg(unsigned int *pagesize); |
Kumar Gala | 819a479 | 2010-06-09 22:33:53 -0500 | [diff] [blame] | 12 | int is_core_disabled(int nr); |
Kumar Gala | 56d150e | 2009-03-31 23:02:38 -0500 | [diff] [blame] | 13 | |
York Sun | 2adf2ce | 2012-08-17 08:20:26 +0000 | [diff] [blame] | 14 | #ifdef CONFIG_E6500 |
15 | #define thread_to_core(x) (x >> 1) | ||||
16 | #else | ||||
17 | #define thread_to_core(x) (x) | ||||
18 | #endif | ||||
19 | |||||
Kumar Gala | 56d150e | 2009-03-31 23:02:38 -0500 | [diff] [blame] | 20 | #endif |