Merge tag 'efi-2022-01-rc2-2' of https://source.denx.de/u-boot/custodians/u-boot-efi
[platform/kernel/u-boot.git] / include / configs / mx7_common.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2015 Freescale Semiconductor, Inc.
4  *
5  * Configuration settings for the Freescale i.MX7.
6  */
7
8 #ifndef __MX7_COMMON_H
9 #define __MX7_COMMON_H
10
11 #include <linux/sizes.h>
12 #include <linux/stringify.h>
13 #include <asm/arch/imx-regs.h>
14 #include <asm/mach-imx/gpio.h>
15
16 /* Timer settings */
17 #define CONFIG_MXC_GPT_HCLK
18 #define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */
19 #define COUNTER_FREQUENCY CONFIG_SC_TIMER_CLK
20 #define CONFIG_SYS_FSL_CLK
21
22 #define CONFIG_SYS_BOOTM_LEN    0x1000000
23
24 /* Enable iomux-lpsr support */
25 #define CONFIG_IOMUX_LPSR
26
27 /* Miscellaneous configurable options */
28 #define CONFIG_SYS_CBSIZE               512
29 #define CONFIG_SYS_MAXARGS              32
30
31 /* UART */
32
33 /* MMC */
34
35 #define CONFIG_ARMV7_SECURE_BASE        0x00900000
36
37 /*
38  * If we have defined the OPTEE ram size and not OPTEE it means that we were
39  * launched by OPTEE, because of that we shall skip all the low level
40  * initialization since it was already done by ATF or OPTEE
41  */
42
43 #endif