vf610twr.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. /*
  2. * Copyright 2013 Freescale Semiconductor, Inc.
  3. *
  4. * Configuration settings for the Freescale Vybrid vf610twr board.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of
  9. * the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  19. * MA 02111-1307 USA
  20. */
  21. #ifndef __CONFIG_H
  22. #define __CONFIG_H
  23. #include <asm/arch/imx-regs.h>
  24. #include <config_cmd_default.h>
  25. #define CONFIG_VF610
  26. #define CONFIG_DISPLAY_CPUINFO
  27. #define CONFIG_DISPLAY_BOARDINFO
  28. #define CONFIG_MACH_TYPE 4146
  29. #define CONFIG_SKIP_LOWLEVEL_INIT
  30. /* Enable passing of ATAGs */
  31. #define CONFIG_CMDLINE_TAG
  32. #define CONFIG_CMD_FUSE
  33. #ifdef CONFIG_CMD_FUSE
  34. #define CONFIG_MXC_OCOTP
  35. #endif
  36. /* Size of malloc() pool */
  37. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2 * 1024 * 1024)
  38. #define CONFIG_BOARD_EARLY_INIT_F
  39. #define CONFIG_FSL_LPUART
  40. #define LPUART_BASE UART1_BASE
  41. /* Allow to overwrite serial and ethaddr */
  42. #define CONFIG_ENV_OVERWRITE
  43. #define CONFIG_SYS_UART_PORT (1)
  44. #define CONFIG_BAUDRATE 115200
  45. #undef CONFIG_CMD_IMLS
  46. #define CONFIG_MMC
  47. #define CONFIG_FSL_ESDHC
  48. #define CONFIG_SYS_FSL_ESDHC_ADDR 0
  49. #define CONFIG_SYS_FSL_ESDHC_NUM 1
  50. #define CONFIG_SYS_FSL_ERRATUM_ESDHC111
  51. #define CONFIG_CMD_MMC
  52. #define CONFIG_GENERIC_MMC
  53. #define CONFIG_CMD_FAT
  54. #define CONFIG_DOS_PARTITION
  55. #define CONFIG_CMD_PING
  56. #define CONFIG_CMD_DHCP
  57. #define CONFIG_CMD_MII
  58. #define CONFIG_CMD_NET
  59. #define CONFIG_FEC_MXC
  60. #define CONFIG_MII
  61. #define IMX_FEC_BASE ENET_BASE_ADDR
  62. #define CONFIG_FEC_XCV_TYPE RMII
  63. #define CONFIG_FEC_MXC_PHYADDR 0
  64. #define CONFIG_PHYLIB
  65. #define CONFIG_PHY_MICREL
  66. #define CONFIG_BOOTDELAY 3
  67. #define CONFIG_SYS_TEXT_BASE 0x3f008000
  68. /* Miscellaneous configurable options */
  69. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  70. #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
  71. #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
  72. #define CONFIG_SYS_PROMPT "Vybrid U-Boot > "
  73. #undef CONFIG_AUTO_COMPLETE
  74. #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
  75. #define CONFIG_SYS_PBSIZE \
  76. (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
  77. #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
  78. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  79. #define CONFIG_CMD_MEMTEST
  80. #define CONFIG_SYS_MEMTEST_START 0x80010000
  81. #define CONFIG_SYS_MEMTEST_END 0x87C00000
  82. #define CONFIG_SYS_LOAD_ADDR 0x80010000
  83. #define CONFIG_SYS_HZ 1000
  84. /*
  85. * Stack sizes
  86. * The stack sizes are set up in start.S using the settings below
  87. */
  88. #define CONFIG_STACKSIZE (128 * 1024) /* regular stack */
  89. /* Physical memory map */
  90. #define CONFIG_NR_DRAM_BANKS 1
  91. #define PHYS_SDRAM (0x80000000)
  92. #define PHYS_SDRAM_SIZE (128 * 1024 * 1024)
  93. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
  94. #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
  95. #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
  96. #define CONFIG_SYS_INIT_SP_OFFSET \
  97. (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
  98. #define CONFIG_SYS_INIT_SP_ADDR \
  99. (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
  100. /* FLASH and environment organization */
  101. #define CONFIG_SYS_NO_FLASH
  102. #define CONFIG_ENV_SIZE (8 * 1024)
  103. #define CONFIG_ENV_IS_IN_MMC
  104. #define CONFIG_ENV_OFFSET (12 * 64 * 1024)
  105. #define CONFIG_SYS_MMC_ENV_DEV 0
  106. #define CONFIG_OF_LIBFDT
  107. #define CONFIG_CMD_BOOTZ
  108. #endif