mx7_common.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. #ifndef __MX7_COMMON_H
  8. #define __MX7_COMMON_H
  9. #include <linux/sizes.h>
  10. #include <asm/arch/imx-regs.h>
  11. #include <asm/mach-imx/gpio.h>
  12. #ifndef CONFIG_MX7
  13. #define CONFIG_MX7
  14. #endif
  15. /* Timer settings */
  16. #define CONFIG_MXC_GPT_HCLK
  17. #define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */
  18. #define COUNTER_FREQUENCY CONFIG_SC_TIMER_CLK
  19. #define CONFIG_SYS_FSL_CLK
  20. #define CONFIG_SYS_BOOTM_LEN 0x1000000
  21. /* Enable iomux-lpsr support */
  22. #define CONFIG_IOMUX_LPSR
  23. #define CONFIG_LOADADDR 0x80800000
  24. /* allow to overwrite serial and ethaddr */
  25. #define CONFIG_ENV_OVERWRITE
  26. /* Miscellaneous configurable options */
  27. #define CONFIG_SYS_CBSIZE 512
  28. #define CONFIG_SYS_MAXARGS 32
  29. /* UART */
  30. #define CONFIG_MXC_UART
  31. /* MMC */
  32. #define CONFIG_ARMV7_SECURE_BASE 0x00900000
  33. #define CONFIG_ARMV7_PSCI_1_0
  34. #ifdef CONFIG_SPL_BUILD
  35. #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
  36. #endif
  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. #if (CONFIG_OPTEE_TZDRAM_SIZE != 0)
  43. #ifndef CONFIG_OPTEE
  44. #define CONFIG_SKIP_LOWLEVEL_INIT
  45. #endif
  46. #endif
  47. #endif