xref: /openbmc/u-boot/include/configs/mx7_common.h (revision 2acc24fc28ef782f4baef1aa0193d520ee9610b9)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
21a8150d4SAdrian Alonso /*
31a8150d4SAdrian Alonso  * Copyright (C) 2015 Freescale Semiconductor, Inc.
41a8150d4SAdrian Alonso  *
51a8150d4SAdrian Alonso  * Configuration settings for the Freescale i.MX7.
61a8150d4SAdrian Alonso  */
71a8150d4SAdrian Alonso 
81a8150d4SAdrian Alonso #ifndef __MX7_COMMON_H
91a8150d4SAdrian Alonso #define __MX7_COMMON_H
101a8150d4SAdrian Alonso 
111a8150d4SAdrian Alonso #include <linux/sizes.h>
121a8150d4SAdrian Alonso #include <asm/arch/imx-regs.h>
13552a848eSStefano Babic #include <asm/mach-imx/gpio.h>
141a8150d4SAdrian Alonso 
151a8150d4SAdrian Alonso #ifndef CONFIG_MX7
161a8150d4SAdrian Alonso #define CONFIG_MX7
171a8150d4SAdrian Alonso #endif
181a8150d4SAdrian Alonso 
191a8150d4SAdrian Alonso /* Timer settings */
201a8150d4SAdrian Alonso #define CONFIG_MXC_GPT_HCLK
211a8150d4SAdrian Alonso #define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */
22e4916e85SAndre Przywara #define COUNTER_FREQUENCY CONFIG_SC_TIMER_CLK
2318fb0e3cSGong Qianyu #define CONFIG_SYS_FSL_CLK
241a8150d4SAdrian Alonso 
251ecd2eaaSPeng Fan #define CONFIG_SYS_BOOTM_LEN	0x1000000
261ecd2eaaSPeng Fan 
271a8150d4SAdrian Alonso /* Enable iomux-lpsr support */
281a8150d4SAdrian Alonso #define CONFIG_IOMUX_LPSR
291a8150d4SAdrian Alonso 
301a8150d4SAdrian Alonso #define CONFIG_LOADADDR                 0x80800000
311a8150d4SAdrian Alonso 
321a8150d4SAdrian Alonso /* allow to overwrite serial and ethaddr */
331a8150d4SAdrian Alonso #define CONFIG_ENV_OVERWRITE
341a8150d4SAdrian Alonso 
351a8150d4SAdrian Alonso /* Miscellaneous configurable options */
361a8150d4SAdrian Alonso #define CONFIG_SYS_CBSIZE		512
371a8150d4SAdrian Alonso #define CONFIG_SYS_MAXARGS		32
381a8150d4SAdrian Alonso 
391a8150d4SAdrian Alonso /* UART */
401a8150d4SAdrian Alonso #define CONFIG_MXC_UART
411a8150d4SAdrian Alonso 
421a8150d4SAdrian Alonso /* MMC */
431a8150d4SAdrian Alonso #define CONFIG_FSL_USDHC
441a8150d4SAdrian Alonso 
451a8150d4SAdrian Alonso /* Fuses */
461a8150d4SAdrian Alonso #define CONFIG_MXC_OCOTP
471a8150d4SAdrian Alonso 
4890ab4be1SPeng Fan #define CONFIG_ARMV7_SECURE_BASE	0x00900000
4990ab4be1SPeng Fan 
500ec3d98fSAnson Huang #define CONFIG_ARMV7_PSCI_1_0
510ec3d98fSAnson Huang 
52e6672392SGary Bisson /* Secure boot (HAB) support */
53e6672392SGary Bisson #ifdef CONFIG_SECURE_BOOT
54e6672392SGary Bisson #define CONFIG_CSF_SIZE			0x2000
55dad75e24SEran Matityahu #ifdef CONFIG_SPL_BUILD
56dad75e24SEran Matityahu #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
57dad75e24SEran Matityahu #endif
58e6672392SGary Bisson #endif
59e6672392SGary Bisson 
601a8150d4SAdrian Alonso #endif
61