blob: bcfa129060fd473745ad192eed7b7fee8f995e33 [file] [log] [blame]
Kumar Gala7649a592009-03-31 23:02:38 -05001/*
Kumar Gala8f3a7fa2010-06-09 22:33:53 -05002 * Copyright 2009-2010 Freescale Semiconductor, Inc.
Kumar Gala7649a592009-03-31 23:02:38 -05003 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Kumar Gala7649a592009-03-31 23:02:38 -05005 */
6
7#ifndef _ASM_MP_H_
8#define _ASM_MP_H_
9
10#include <lmb.h>
11
12void setup_mp(void);
13void cpu_mp_lmb_reserve(struct lmb *lmb);
York Suneb539412012-10-08 07:44:25 +000014u32 determine_mp_bootpg(unsigned int *pagesize);
Kumar Gala8f3a7fa2010-06-09 22:33:53 -050015int is_core_disabled(int nr);
Kumar Gala7649a592009-03-31 23:02:38 -050016
York Sun709389b2012-08-17 08:20:26 +000017#ifdef CONFIG_E6500
18#define thread_to_core(x) (x >> 1)
19#else
20#define thread_to_core(x) (x)
21#endif
22
Kumar Gala7649a592009-03-31 23:02:38 -050023#endif