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 | |
| 9 | #include <lmb.h> |
| 10 | |
| 11 | void setup_mp(void); |
| 12 | void cpu_mp_lmb_reserve(struct lmb *lmb); |
York Sun | a28496f | 2012-10-08 07:44:25 +0000 | [diff] [blame] | 13 | u32 determine_mp_bootpg(unsigned int *pagesize); |
Kumar Gala | 819a479 | 2010-06-09 22:33:53 -0500 | [diff] [blame] | 14 | int is_core_disabled(int nr); |
Kumar Gala | 56d150e | 2009-03-31 23:02:38 -0500 | [diff] [blame] | 15 | |
York Sun | 2adf2ce | 2012-08-17 08:20:26 +0000 | [diff] [blame] | 16 | #ifdef CONFIG_E6500 |
| 17 | #define thread_to_core(x) (x >> 1) |
| 18 | #else |
| 19 | #define thread_to_core(x) (x) |
| 20 | #endif |
| 21 | |
Kumar Gala | 56d150e | 2009-03-31 23:02:38 -0500 | [diff] [blame] | 22 | #endif |