blob: 8dacd2781d446b6273e34a8cb70f28554fd711cd [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Kumar Gala56d150e2009-03-31 23:02:38 -05002/*
Kumar Gala819a4792010-06-09 22:33:53 -05003 * Copyright 2009-2010 Freescale Semiconductor, Inc.
Kumar Gala56d150e2009-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 Suna28496f2012-10-08 07:44:25 +000013u32 determine_mp_bootpg(unsigned int *pagesize);
Kumar Gala819a4792010-06-09 22:33:53 -050014int is_core_disabled(int nr);
Kumar Gala56d150e2009-03-31 23:02:38 -050015
York Sun2adf2ce2012-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 Gala56d150e2009-03-31 23:02:38 -050022#endif