2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2013-02-26 12:28:29 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MX6_COMMON_H
|
|
|
|
#define __MX6_COMMON_H
|
|
|
|
|
2020-05-10 17:40:09 +00:00
|
|
|
#include <linux/stringify.h>
|
|
|
|
|
2018-01-05 14:08:19 +00:00
|
|
|
#if (defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL))
|
|
|
|
#define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */
|
|
|
|
#else
|
2014-01-29 19:39:49 +00:00
|
|
|
#ifndef CONFIG_SYS_L2CACHE_OFF
|
|
|
|
#define CONFIG_SYS_L2_PL310
|
|
|
|
#define CONFIG_SYS_PL310_BASE L2_PL310_BASE
|
|
|
|
#endif
|
|
|
|
|
2015-07-20 11:28:26 +00:00
|
|
|
#endif
|
2014-10-30 10:20:59 +00:00
|
|
|
#define CONFIG_MXC_GPT_HCLK
|
2014-07-26 18:35:43 +00:00
|
|
|
|
2016-01-04 07:27:22 +00:00
|
|
|
#define CONFIG_SYS_BOOTM_LEN 0x1000000
|
|
|
|
|
2015-05-22 16:30:45 +00:00
|
|
|
#include <linux/sizes.h>
|
|
|
|
#include <asm/arch/imx-regs.h>
|
2017-06-29 08:16:06 +00:00
|
|
|
#include <asm/mach-imx/gpio.h>
|
2015-05-22 16:30:45 +00:00
|
|
|
|
2015-05-22 16:30:50 +00:00
|
|
|
/* Miscellaneous configurable options */
|
|
|
|
#define CONFIG_SYS_CBSIZE 512
|
|
|
|
#define CONFIG_SYS_MAXARGS 32
|
|
|
|
|
2015-05-22 16:30:52 +00:00
|
|
|
/* MMC */
|
|
|
|
|
2013-02-26 12:28:29 +00:00
|
|
|
#endif
|