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 */
|
|
|
|
#define COUNTER_FREQUENCY CONFIG_SC_TIMER_CLK
|
|
|
|
#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
|
|
|
|
#define CONFIG_BOARD_POSTCLK_INIT
|
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:46 +00:00
|
|
|
#ifndef CONFIG_MX6
|
|
|
|
#define CONFIG_MX6
|
|
|
|
#endif
|
|
|
|
|
2015-10-26 11:47:42 +00:00
|
|
|
#define CONFIG_SYS_FSL_CLK
|
2015-05-22 16:30:46 +00:00
|
|
|
|
2015-05-22 16:30:47 +00:00
|
|
|
/* ATAGs */
|
|
|
|
#define CONFIG_CMDLINE_TAG
|
|
|
|
#define CONFIG_SETUP_MEMORY_TAGS
|
|
|
|
#define CONFIG_INITRD_TAG
|
|
|
|
#define CONFIG_REVISION_TAG
|
|
|
|
|
2015-05-22 16:30:49 +00:00
|
|
|
/* Boot options */
|
2018-01-03 14:33:05 +00:00
|
|
|
#if defined(CONFIG_MX6SL) || defined(CONFIG_MX6SLL) || \
|
|
|
|
defined(CONFIG_MX6SX) || \
|
|
|
|
defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL)
|
2015-05-28 15:33:34 +00:00
|
|
|
#define CONFIG_LOADADDR 0x82000000
|
|
|
|
#else
|
2015-05-22 16:30:49 +00:00
|
|
|
#define CONFIG_LOADADDR 0x12000000
|
2015-05-28 15:33:34 +00:00
|
|
|
#endif
|
|
|
|
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
|
|
|
|
|
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 */
|
|
|
|
|
2016-11-06 15:37:55 +00:00
|
|
|
#ifdef CONFIG_SPL_BUILD
|
|
|
|
#define CONFIG_SPL_DRIVERS_MISC_SUPPORT
|
|
|
|
#endif
|
2016-08-25 17:03:18 +00:00
|
|
|
|
2013-02-26 12:28:29 +00:00
|
|
|
#endif
|