/include/configs/mx25pdk.h

https://gitlab.com/ubuntu-omap/u-boot-omap5 · C Header · 147 lines · 89 code · 30 blank · 28 comment · 0 complexity · 33124d1c52002a57b92105fb961742bc MD5 · raw file

  1. /*
  2. * (C) Copyright 2011 Freescale Semiconductor, Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License as
  6. * published by the Free Software Foundation; either version 2 of
  7. * the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef __CONFIG_H
  15. #define __CONFIG_H
  16. #include <asm/arch/imx-regs.h>
  17. /* High Level Configuration Options */
  18. #define CONFIG_MX25
  19. #define CONFIG_SYS_HZ 1000
  20. #define CONFIG_SYS_TEXT_BASE 0x81200000
  21. #define CONFIG_MXC_GPIO
  22. #define CONFIG_DISPLAY_CPUINFO
  23. #define CONFIG_DISPLAY_BOARDINFO
  24. #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
  25. #define CONFIG_SETUP_MEMORY_TAGS
  26. #define CONFIG_INITRD_TAG
  27. #define CONFIG_MACH_TYPE MACH_TYPE_MX25_3DS
  28. /* Size of malloc() pool */
  29. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2 * 1024 * 1024)
  30. /* Physical Memory Map */
  31. #define CONFIG_NR_DRAM_BANKS 1
  32. #define PHYS_SDRAM_1 0x80000000
  33. #define PHYS_SDRAM_1_SIZE (64 * 1024 * 1024)
  34. #define CONFIG_BOARD_EARLY_INIT_F
  35. #define CONFIG_BOARD_LATE_INIT
  36. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
  37. #define CONFIG_SYS_INIT_RAM_ADDR IMX_RAM_BASE
  38. #define CONFIG_SYS_INIT_RAM_SIZE IMX_RAM_SIZE
  39. #define CONFIG_SYS_INIT_SP_OFFSET \
  40. (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
  41. #define CONFIG_SYS_INIT_SP_ADDR \
  42. (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
  43. /* Memory Test */
  44. #define CONFIG_SYS_MEMTEST_START (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE/2)
  45. #define CONFIG_SYS_MEMTEST_END (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE)
  46. /* Serial Info */
  47. #define CONFIG_MXC_UART
  48. #define CONFIG_MXC_UART_BASE UART1_BASE
  49. #define CONFIG_CONS_INDEX 1 /* use UART0 for console */
  50. #define CONFIG_BAUDRATE 115200 /* Default baud rate */
  51. /* No NOR flash present */
  52. #define CONFIG_ENV_OFFSET (6 * 64 * 1024)
  53. #define CONFIG_ENV_SIZE (8 * 1024)
  54. #define CONFIG_SYS_NO_FLASH
  55. #define CONFIG_ENV_IS_IN_MMC
  56. #define CONFIG_SYS_MMC_ENV_DEV 0
  57. /* U-Boot general configuration */
  58. #define CONFIG_SYS_PROMPT "MX25PDK U-Boot > "
  59. #define CONFIG_AUTO_COMPLETE
  60. #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
  61. /* Print buffer sz */
  62. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
  63. sizeof(CONFIG_SYS_PROMPT) + 16)
  64. #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
  65. /* Boot Argument Buffer Size */
  66. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  67. #define CONFIG_CMDLINE_EDITING
  68. #define CONFIG_SYS_LONGHELP
  69. /* U-Boot commands */
  70. #include <config_cmd_default.h>
  71. #define CONFIG_OF_LIBFDT
  72. #define CONFIG_CMD_BOOTZ
  73. #define CONFIG_CMD_CACHE
  74. #define CONFIG_CMD_MMC
  75. #define CONFIG_CMD_EXT2
  76. #define CONFIG_CMD_FAT
  77. /* Ethernet */
  78. #define CONFIG_FEC_MXC
  79. #define CONFIG_FEC_MXC_PHYADDR 0x1f
  80. #define CONFIG_MII
  81. #define CONFIG_CMD_NET
  82. #define CONFIG_ENV_OVERWRITE
  83. /* ESDHC driver */
  84. #define CONFIG_MMC
  85. #define CONFIG_GENERIC_MMC
  86. #define CONFIG_FSL_ESDHC
  87. #define CONFIG_SYS_FSL_ESDHC_ADDR 0
  88. #define CONFIG_SYS_FSL_ESDHC_NUM 1
  89. /* PMIC Configs */
  90. #define CONFIG_POWER
  91. #define CONFIG_POWER_I2C
  92. #define CONFIG_POWER_FSL
  93. #define CONFIG_PMIC_FSL_MC34704
  94. #define CONFIG_SYS_FSL_PMIC_I2C_ADDR 0x54
  95. #define CONFIG_DOS_PARTITION
  96. /* I2C Configs */
  97. #define CONFIG_CMD_I2C
  98. #define CONFIG_HARD_I2C
  99. #define CONFIG_I2C_MXC
  100. #define CONFIG_SYS_I2C_BASE IMX_I2C_BASE
  101. #define CONFIG_SYS_I2C_SPEED 100000
  102. /* Ethernet Configs */
  103. #define CONFIG_CMD_PING
  104. #define CONFIG_CMD_DHCP
  105. #define CONFIG_CMD_MII
  106. #define CONFIG_CMD_NET
  107. #define CONFIG_BOOTDELAY 1
  108. #define CONFIG_LOADADDR 0x81000000 /* loadaddr env var */
  109. #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
  110. #define CONFIG_EXTRA_ENV_SETTINGS \
  111. "script=boot.scr\0" \
  112. "uimage=uImage\0" \
  113. "netargs=setenv bootargs console=ttymxc0,${baudrate} " \
  114. "root=/dev/nfs " \
  115. "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
  116. "bootcmd=run netargs; dhcp ${uimage}; bootm\0" \
  117. #endif /* __CONFIG_H */