mx6_common.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
  4. */
  5. #ifndef __MX6_COMMON_H
  6. #define __MX6_COMMON_H
  7. #if (defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL))
  8. #define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */
  9. #define COUNTER_FREQUENCY CONFIG_SC_TIMER_CLK
  10. #else
  11. #ifndef CONFIG_SYS_L2CACHE_OFF
  12. #define CONFIG_SYS_L2_PL310
  13. #define CONFIG_SYS_PL310_BASE L2_PL310_BASE
  14. #endif
  15. #endif
  16. #define CONFIG_BOARD_POSTCLK_INIT
  17. #define CONFIG_MXC_GPT_HCLK
  18. #define CONFIG_SYS_BOOTM_LEN 0x1000000
  19. #include <linux/sizes.h>
  20. #include <asm/arch/imx-regs.h>
  21. #include <asm/mach-imx/gpio.h>
  22. #ifndef CONFIG_MX6
  23. #define CONFIG_MX6
  24. #endif
  25. #define CONFIG_SYS_FSL_CLK
  26. /* ATAGs */
  27. #define CONFIG_CMDLINE_TAG
  28. #define CONFIG_SETUP_MEMORY_TAGS
  29. #define CONFIG_INITRD_TAG
  30. #define CONFIG_REVISION_TAG
  31. /* Boot options */
  32. #if defined(CONFIG_MX6SL) || defined(CONFIG_MX6SLL) || \
  33. defined(CONFIG_MX6SX) || \
  34. defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL)
  35. #define CONFIG_LOADADDR 0x82000000
  36. #else
  37. #define CONFIG_LOADADDR 0x12000000
  38. #endif
  39. #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
  40. /* allow to overwrite serial and ethaddr */
  41. #define CONFIG_ENV_OVERWRITE
  42. /* Miscellaneous configurable options */
  43. #define CONFIG_SYS_CBSIZE 512
  44. #define CONFIG_SYS_MAXARGS 32
  45. /* MMC */
  46. #ifdef CONFIG_SPL_BUILD
  47. #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
  48. #endif
  49. #endif