]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/configs/mx6_common.h
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / include / configs / mx6_common.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0 */
8f393776
SW
2/*
3 * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
8f393776
SW
4 */
5
6#ifndef __MX6_COMMON_H
7#define __MX6_COMMON_H
8
46718353
SA
9#if (defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL))
10#define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */
11#define COUNTER_FREQUENCY CONFIG_SC_TIMER_CLK
12#else
6d73c234
FE
13#ifndef CONFIG_SYS_L2CACHE_OFF
14#define CONFIG_SYS_L2_PL310
15#define CONFIG_SYS_PL310_BASE L2_PL310_BASE
16#endif
17
a76df709 18#define CONFIG_MP
436cf40f
PF
19#endif
20#define CONFIG_BOARD_POSTCLK_INIT
f13ac7b2 21#define CONFIG_MXC_GPT_HCLK
a76df709 22
1ecd2eaa
PF
23#define CONFIG_SYS_BOOTM_LEN 0x1000000
24
056845c2
PR
25#include <linux/sizes.h>
26#include <asm/arch/imx-regs.h>
552a848e 27#include <asm/mach-imx/gpio.h>
056845c2 28
3b1f6811
PR
29#ifndef CONFIG_MX6
30#define CONFIG_MX6
31#endif
32
18fb0e3c 33#define CONFIG_SYS_FSL_CLK
3b1f6811 34
ea690917
PR
35/* ATAGs */
36#define CONFIG_CMDLINE_TAG
37#define CONFIG_SETUP_MEMORY_TAGS
38#define CONFIG_INITRD_TAG
39#define CONFIG_REVISION_TAG
40
81830581 41/* Boot options */
290e7cfd
FE
42#if defined(CONFIG_MX6SL) || defined(CONFIG_MX6SLL) || \
43 defined(CONFIG_MX6SX) || \
44 defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL)
cd6ddc48 45#define CONFIG_LOADADDR 0x82000000
cd6ddc48 46#else
81830581 47#define CONFIG_LOADADDR 0x12000000
cd6ddc48
FE
48#endif
49#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
50
2d8a0747
PR
51/* allow to overwrite serial and ethaddr */
52#define CONFIG_ENV_OVERWRITE
2d8a0747 53
a380ce6e 54/* Filesystems and image support */
a380ce6e 55
2d8a0747 56/* Miscellaneous configurable options */
2d8a0747
PR
57#define CONFIG_SYS_CBSIZE 512
58#define CONFIG_SYS_MAXARGS 32
2d8a0747 59
e51c1e8e 60/* MMC */
e51c1e8e 61#define CONFIG_BOUNCE_BUFFER
e51c1e8e
PR
62#define CONFIG_FSL_USDHC
63
3c73b0a4 64/* Fuses */
3c73b0a4
PR
65#define CONFIG_MXC_OCOTP
66
e22685d2
GB
67/* Secure boot (HAB) support */
68#ifdef CONFIG_SECURE_BOOT
69#define CONFIG_CSF_SIZE 0x2000
15b505b0
SE
70#ifdef CONFIG_SPL_BUILD
71#define CONFIG_SPL_DRIVERS_MISC_SUPPORT
72#endif
e22685d2
GB
73#endif
74
8f393776 75#endif