2009-02-06 02:40:57 +00:00
|
|
|
/*
|
2011-01-13 16:09:27 +00:00
|
|
|
* Copyright 2009-2011 Freescale Semiconductor, Inc.
|
2009-02-06 02:40:57 +00:00
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2009-02-06 02:40:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASM_CONFIG_H_
|
|
|
|
#define _ASM_CONFIG_H_
|
|
|
|
|
2011-01-19 09:05:26 +00:00
|
|
|
#ifdef CONFIG_MPC85xx
|
|
|
|
#include <asm/config_mpc85xx.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_MPC86xx
|
|
|
|
#include <asm/config_mpc86xx.h>
|
|
|
|
#endif
|
|
|
|
|
2012-08-17 09:00:54 +00:00
|
|
|
#ifndef HWCONFIG_BUFFER_SIZE
|
|
|
|
#define HWCONFIG_BUFFER_SIZE 256
|
|
|
|
#endif
|
|
|
|
|
2011-04-26 08:31:16 +00:00
|
|
|
/* CONFIG_HARD_SPI triggers SPI bus initialization in PowerPC */
|
|
|
|
#if defined(CONFIG_MPC8XXX_SPI) || defined(CONFIG_FSL_ESPI)
|
|
|
|
# ifndef CONFIG_HARD_SPI
|
|
|
|
# define CONFIG_HARD_SPI
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2009-11-03 16:35:59 +00:00
|
|
|
#define CONFIG_LMB
|
2010-10-13 19:57:35 +00:00
|
|
|
#define CONFIG_SYS_BOOT_RAMDISK_HIGH
|
|
|
|
#define CONFIG_SYS_BOOT_GET_CMDLINE
|
|
|
|
#define CONFIG_SYS_BOOT_GET_KBD
|
2009-11-03 16:35:59 +00:00
|
|
|
|
2009-02-06 02:40:58 +00:00
|
|
|
#ifndef CONFIG_MAX_MEM_MAPPED
|
2011-08-26 18:32:44 +00:00
|
|
|
#if defined(CONFIG_4xx) || \
|
|
|
|
defined(CONFIG_E500) || \
|
|
|
|
defined(CONFIG_MPC86xx) || \
|
|
|
|
defined(CONFIG_E300)
|
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
|
|
|
|
|
2011-01-19 09:05:26 +00:00
|
|
|
#ifndef CONFIG_MAX_CPUS
|
2009-03-19 07:39:17 +00:00
|
|
|
#define CONFIG_MAX_CPUS 1
|
2009-07-31 06:38:14 +00:00
|
|
|
#endif
|
|
|
|
|
2009-10-23 20:55:47 +00:00
|
|
|
/*
|
|
|
|
* Provide a default boot page translation virtual address that lines up with
|
|
|
|
* Freescale's default e500 reset page.
|
|
|
|
*/
|
|
|
|
#if (defined(CONFIG_E500) && defined(CONFIG_MP))
|
|
|
|
#ifndef CONFIG_BPTR_VIRT_ADDR
|
|
|
|
#define CONFIG_BPTR_VIRT_ADDR 0xfffff000
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2010-06-01 17:24:27 +00:00
|
|
|
/*
|
|
|
|
* SEC (crypto unit) major compatible version determination
|
|
|
|
*/
|
2011-01-19 09:05:26 +00:00
|
|
|
#if defined(CONFIG_MPC83xx)
|
2010-06-01 17:24:27 +00:00
|
|
|
#define CONFIG_SYS_FSL_SEC_COMPAT 2
|
|
|
|
#endif
|
|
|
|
|
2010-06-17 16:37:20 +00:00
|
|
|
/* Since so many PPC SOCs have a semi-common LBC, define this here */
|
|
|
|
#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx) || \
|
|
|
|
defined(CONFIG_MPC83xx)
|
2011-01-20 10:59:35 +00:00
|
|
|
#if !defined(CONFIG_FSL_IFC)
|
2010-06-17 16:37:20 +00:00
|
|
|
#define CONFIG_FSL_LBC
|
|
|
|
#endif
|
2011-01-20 10:59:35 +00:00
|
|
|
#endif
|
2010-06-17 16:37:20 +00:00
|
|
|
|
2011-04-08 07:10:54 +00:00
|
|
|
/* The TSEC driver uses the PHYLIB infrastructure */
|
|
|
|
#ifndef CONFIG_PHYLIB
|
|
|
|
#if defined(CONFIG_TSEC_ENET)
|
|
|
|
#define CONFIG_PHYLIB
|
|
|
|
|
|
|
|
#include <config_phylib_all_drivers.h>
|
|
|
|
#endif /* TSEC_ENET */
|
|
|
|
#endif /* !CONFIG_PHYLIB */
|
|
|
|
|
2011-04-13 13:37:44 +00:00
|
|
|
/* The FMAN driver uses the PHYLIB infrastructure */
|
|
|
|
#if defined(CONFIG_FMAN_ENET)
|
|
|
|
#define CONFIG_PHYLIB
|
|
|
|
#endif
|
|
|
|
|
2010-08-07 23:47:05 +00:00
|
|
|
/* All PPC boards must swap IDE bytes */
|
|
|
|
#define CONFIG_IDE_SWAP_IO
|
|
|
|
|
2009-06-30 22:15:40 +00:00
|
|
|
#endif /* _ASM_CONFIG_H_ */
|