2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
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
|
|
|
*/
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
2012-08-17 09:00:54 +00:00
|
|
|
#ifndef HWCONFIG_BUFFER_SIZE
|
|
|
|
#define HWCONFIG_BUFFER_SIZE 256
|
|
|
|
#endif
|
|
|
|
|
2009-02-06 02:40:58 +00:00
|
|
|
#ifndef CONFIG_MAX_MEM_MAPPED
|
2017-06-27 14:49:14 +00:00
|
|
|
#if defined(CONFIG_E500) || \
|
2011-08-26 18:32:44 +00:00
|
|
|
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-06-30 22:15:40 +00:00
|
|
|
|
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))
|
2022-03-11 14:12:03 +00:00
|
|
|
#define BPTR_VIRT_ADDR 0xfffff000
|
2009-10-23 20:55:47 +00:00
|
|
|
#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 */
|
2018-02-07 02:01:56 +00:00
|
|
|
#if defined(CONFIG_TSEC_ENET) && defined(CONFIG_PHYLIB)
|
2011-04-08 07:10:54 +00:00
|
|
|
#include <config_phylib_all_drivers.h>
|
|
|
|
#endif /* TSEC_ENET */
|
|
|
|
|
2011-04-13 13:37:44 +00:00
|
|
|
/* The FMAN driver uses the PHYLIB infrastructure */
|
|
|
|
|
2018-08-06 08:23:36 +00:00
|
|
|
#if defined(CONFIG_DM_SERIAL) && !defined(CONFIG_CLK_MPC83XX)
|
2015-11-19 13:48:07 +00:00
|
|
|
/*
|
|
|
|
* TODO: Convert this to a clock driver exists that can give us the UART
|
|
|
|
* clock here.
|
|
|
|
*/
|
|
|
|
#define CONFIG_SYS_NS16550_CLK get_serial_clock()
|
|
|
|
#endif
|
|
|
|
|
2009-06-30 22:15:40 +00:00
|
|
|
#endif /* _ASM_CONFIG_H_ */
|