2009-02-06 02:40:57 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2009 Freescale Semiconductor, Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASM_CONFIG_H_
|
|
|
|
#define _ASM_CONFIG_H_
|
|
|
|
|
2009-02-06 02:40:58 +00:00
|
|
|
#ifndef CONFIG_MAX_MEM_MAPPED
|
2009-02-23 19:56:51 +00:00
|
|
|
#if defined(CONFIG_4xx) || defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
|
2009-02-06 02:40:58 +00:00
|
|
|
#define CONFIG_MAX_MEM_MAPPED ((phys_size_t)2 << 30)
|
|
|
|
#else
|
2009-02-11 08:37:12 +00:00
|
|
|
#define CONFIG_MAX_MEM_MAPPED (256 << 20)
|
2009-02-06 02:40:58 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2009-07-15 05:01:08 +00:00
|
|
|
/* Check if boards need to enable FSL DMA engine for SDRAM init */
|
|
|
|
#if !defined(CONFIG_FSL_DMA) && defined(CONFIG_DDR_ECC)
|
|
|
|
#if (defined(CONFIG_MPC83xx) && defined(CONFIG_DDR_ECC_INIT_VIA_DMA)) || \
|
|
|
|
((defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)) && \
|
|
|
|
!defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER))
|
2009-06-30 22:15:40 +00:00
|
|
|
#define CONFIG_FSL_DMA
|
2009-02-06 02:40:57 +00:00
|
|
|
#endif
|
2009-06-30 22:15:40 +00:00
|
|
|
#endif
|
|
|
|
|
2009-08-20 13:25:35 +00:00
|
|
|
#if defined(CONFIG_MPC8572) || defined(CONFIG_P1020) || \
|
|
|
|
defined(CONFIG_P2020) || defined(CONFIG_MPC8641)
|
2009-07-31 06:38:14 +00:00
|
|
|
#define CONFIG_MAX_CPUS 2
|
|
|
|
#else
|
|
|
|
#define CONFIG_MAX_CPUS 1
|
|
|
|
#endif
|
|
|
|
|
2009-06-30 22:15:40 +00:00
|
|
|
#endif /* _ASM_CONFIG_H_ */
|