2009-02-05 20:40:57 -06:00
|
|
|
/*
|
2011-01-13 21:39:27 +05:30
|
|
|
* Copyright 2009-2011 Freescale Semiconductor, Inc.
|
2009-02-05 20:40:57 -06:00
|
|
|
*
|
2013-07-08 09:37:19 +02:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2009-02-05 20:40:57 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASM_CONFIG_H_
|
|
|
|
#define _ASM_CONFIG_H_
|
|
|
|
|
2011-01-19 03:05:26 -06:00
|
|
|
#ifdef CONFIG_MPC85xx
|
|
|
|
#include <asm/config_mpc85xx.h>
|
2013-09-30 09:22:09 -07:00
|
|
|
#define CONFIG_SYS_FSL_DDR
|
2011-01-19 03:05:26 -06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_MPC86xx
|
|
|
|
#include <asm/config_mpc86xx.h>
|
2013-09-30 09:22:09 -07:00
|
|
|
#define CONFIG_SYS_FSL_DDR
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_MPC83xx
|
|
|
|
#define CONFIG_SYS_FSL_DDR
|
2011-01-19 03:05:26 -06:00
|
|
|
#endif
|
|
|
|
|
2012-08-17 09:00:54 +00:00
|
|
|
#ifndef HWCONFIG_BUFFER_SIZE
|
|
|
|
#define HWCONFIG_BUFFER_SIZE 256
|
|
|
|
#endif
|
|
|
|
|
2011-04-26 16:31:16 +08: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 11:35:59 -05:00
|
|
|
#define CONFIG_LMB
|
2010-10-13 13:57:35 -06:00
|
|
|
#define CONFIG_SYS_BOOT_RAMDISK_HIGH
|
|
|
|
#define CONFIG_SYS_BOOT_GET_CMDLINE
|
|
|
|
#define CONFIG_SYS_BOOT_GET_KBD
|
2009-11-03 11:35:59 -05:00
|
|
|
|
2009-02-05 20:40:58 -06:00
|
|
|
#ifndef CONFIG_MAX_MEM_MAPPED
|
2011-08-26 11:32:44 -07:00
|
|
|
#if defined(CONFIG_4xx) || \
|
|
|
|
defined(CONFIG_E500) || \
|
|
|
|
defined(CONFIG_MPC86xx) || \
|
|
|
|
defined(CONFIG_E300)
|
2009-02-05 20:40:58 -06:00
|
|
|
#define CONFIG_MAX_MEM_MAPPED ((phys_size_t)2 << 30)
|
|
|
|
#else
|
2009-02-11 09:37:12 +01:00
|
|
|
#define CONFIG_MAX_MEM_MAPPED (256 << 20)
|
2009-02-05 20:40:58 -06:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2009-07-15 00:01:08 -05: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 17:15:40 -05:00
|
|
|
#define CONFIG_FSL_DMA
|
2009-02-05 20:40:57 -06:00
|
|
|
#endif
|
2009-06-30 17:15:40 -05:00
|
|
|
#endif
|
|
|
|
|
2011-01-19 03:05:26 -06:00
|
|
|
#ifndef CONFIG_MAX_CPUS
|
2009-03-19 02:39:17 -05:00
|
|
|
#define CONFIG_MAX_CPUS 1
|
2009-07-31 12:08:14 +05:30
|
|
|
#endif
|
|
|
|
|
2009-10-23 15:55:47 -05: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 12:24:27 -05:00
|
|
|
/*
|
|
|
|
* SEC (crypto unit) major compatible version determination
|
|
|
|
*/
|
2011-01-19 03:05:26 -06:00
|
|
|
#if defined(CONFIG_MPC83xx)
|
2014-12-15 11:30:36 +05:30
|
|
|
#define CONFIG_SYS_FSL_SEC_BE
|
2010-06-01 12:24:27 -05:00
|
|
|
#define CONFIG_SYS_FSL_SEC_COMPAT 2
|
|
|
|
#endif
|
|
|
|
|
2010-06-17 11:37:20 -05: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 16:29:35 +05:30
|
|
|
#if !defined(CONFIG_FSL_IFC)
|
2010-06-17 11:37:20 -05:00
|
|
|
#define CONFIG_FSL_LBC
|
|
|
|
#endif
|
2011-01-20 16:29:35 +05:30
|
|
|
#endif
|
2010-06-17 11:37:20 -05:00
|
|
|
|
2011-04-08 02:10:54 -05: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 08:37:44 -05:00
|
|
|
/* The FMAN driver uses the PHYLIB infrastructure */
|
|
|
|
#if defined(CONFIG_FMAN_ENET)
|
|
|
|
#define CONFIG_PHYLIB
|
|
|
|
#endif
|
|
|
|
|
2010-08-08 05:17:05 +05:30
|
|
|
/* All PPC boards must swap IDE bytes */
|
|
|
|
#define CONFIG_IDE_SWAP_IO
|
|
|
|
|
2009-06-30 17:15:40 -05:00
|
|
|
#endif /* _ASM_CONFIG_H_ */
|