Merge branch '2022-04-21-further-cleanups'
[platform/kernel/u-boot.git] / include / configs / mx6_common.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (c) 2013, NVIDIA CORPORATION.  All rights reserved.
4  */
5
6 #ifndef __MX6_COMMON_H
7 #define __MX6_COMMON_H
8
9 #include <linux/stringify.h>
10
11 #if (defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL))
12 #define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */
13 #else
14 #ifndef CONFIG_SYS_L2CACHE_OFF
15 #define CONFIG_SYS_L2_PL310
16 #define CONFIG_SYS_PL310_BASE   L2_PL310_BASE
17 #endif
18
19 #endif
20 #define CONFIG_MXC_GPT_HCLK
21
22 #define CONFIG_SYS_BOOTM_LEN    0x1000000
23
24 #include <linux/sizes.h>
25 #include <asm/arch/imx-regs.h>
26 #include <asm/mach-imx/gpio.h>
27
28 /* Miscellaneous configurable options */
29 #define CONFIG_SYS_CBSIZE       512
30 #define CONFIG_SYS_MAXARGS      32
31
32 /* MMC */
33
34 #endif