blob: 8dacd2781d446b6273e34a8cb70f28554fd711cd [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Kumar Gala7649a592009-03-31 23:02:38 -05002/*
Kumar Gala8f3a7fa2010-06-09 22:33:53 -05003 * Copyright 2009-2010 Freescale Semiconductor, Inc.
Kumar Gala7649a592009-03-31 23:02:38 -05004 */
5
6#ifndef _ASM_MP_H_
7#define _ASM_MP_H_
8
9#include <lmb.h>
10
11void setup_mp(void);
12void cpu_mp_lmb_reserve(struct lmb *lmb);
York Suneb539412012-10-08 07:44:25 +000013u32 determine_mp_bootpg(unsigned int *pagesize);
Kumar Gala8f3a7fa2010-06-09 22:33:53 -050014int is_core_disabled(int nr);
Kumar Gala7649a592009-03-31 23:02:38 -050015
York Sun709389b2012-08-17 08:20:26 +000016#ifdef CONFIG_E6500
17#define thread_to_core(x) (x >> 1)
18#else
19#define thread_to_core(x) (x)
20#endif
21
Kumar Gala7649a592009-03-31 23:02:38 -050022#endif