blob: bcfa129060fd473745ad192eed7b7fee8f995e33 [file] [log] [blame]
Kumar Gala56d150e2009-03-31 23:02:38 -05001/*
Kumar Gala819a4792010-06-09 22:33:53 -05002 * Copyright 2009-2010 Freescale Semiconductor, Inc.
Kumar Gala56d150e2009-03-31 23:02:38 -05003 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Kumar Gala56d150e2009-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 Suna28496f2012-10-08 07:44:25 +000014u32 determine_mp_bootpg(unsigned int *pagesize);
Kumar Gala819a4792010-06-09 22:33:53 -050015int is_core_disabled(int nr);
Kumar Gala56d150e2009-03-31 23:02:38 -050016
York Sun2adf2ce2012-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 Gala56d150e2009-03-31 23:02:38 -050023#endif