mx7_common.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*
  2. * Copyright (C) 2015 Freescale Semiconductor, Inc.
  3. *
  4. * Configuration settings for the Freescale i.MX7.
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #ifndef __MX7_COMMON_H
  9. #define __MX7_COMMON_H
  10. #include <linux/sizes.h>
  11. #include <asm/arch/imx-regs.h>
  12. #include <asm/imx-common/gpio.h>
  13. #ifndef CONFIG_MX7
  14. #define CONFIG_MX7
  15. #endif
  16. /* Timer settings */
  17. #define CONFIG_MXC_GPT_HCLK
  18. #define CONFIG_SYSCOUNTER_TIMER
  19. #define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */
  20. #define CONFIG_TIMER_CLK_FREQ CONFIG_SC_TIMER_CLK
  21. #define CONFIG_SYS_FSL_CLK
  22. #define CONFIG_SYS_BOOTM_LEN 0x1000000
  23. /* Enable iomux-lpsr support */
  24. #define CONFIG_IOMUX_LPSR
  25. #define CONFIG_ARCH_MISC_INIT
  26. #define CONFIG_LOADADDR 0x80800000
  27. #define CONFIG_SYS_TEXT_BASE 0x87800000
  28. /* allow to overwrite serial and ethaddr */
  29. #define CONFIG_ENV_OVERWRITE
  30. #define CONFIG_CONS_INDEX 1
  31. #define CONFIG_BAUDRATE 115200
  32. /* Filesystems and image support */
  33. #define CONFIG_DOS_PARTITION
  34. /* Miscellaneous configurable options */
  35. #define CONFIG_SYS_LONGHELP
  36. #define CONFIG_CMDLINE_EDITING
  37. #define CONFIG_AUTO_COMPLETE
  38. #define CONFIG_SYS_CBSIZE 512
  39. #define CONFIG_SYS_MAXARGS 32
  40. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  41. #ifndef CONFIG_SYS_DCACHE_OFF
  42. #endif
  43. /* GPIO */
  44. #define CONFIG_MXC_GPIO
  45. /* UART */
  46. #define CONFIG_MXC_UART
  47. /* MMC */
  48. #define CONFIG_GENERIC_MMC
  49. #define CONFIG_BOUNCE_BUFFER
  50. #define CONFIG_FSL_ESDHC
  51. #define CONFIG_FSL_USDHC
  52. /* Fuses */
  53. #define CONFIG_CMD_FUSE
  54. #define CONFIG_MXC_OCOTP
  55. #define CONFIG_ARMV7_SECURE_BASE 0x00900000
  56. /* Secure boot (HAB) support */
  57. #ifdef CONFIG_SECURE_BOOT
  58. #define CONFIG_CSF_SIZE 0x2000
  59. #define CONFIG_FSL_CAAM
  60. #define CONFIG_CMD_DEKBLOB
  61. #endif
  62. #endif