davinci_dm6467evm.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /*
  2. * Copyright (C) 2009 Texas Instruments Incorporated
  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. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  17. * MA 02111-1307 USA
  18. */
  19. #ifndef __CONFIG_H
  20. #define __CONFIG_H
  21. /* Spectrum Digital TMS320DM6467 EVM board */
  22. #define DAVINCI_DM6467EVM
  23. #define CONFIG_DISPLAY_CPUINFO
  24. #define CONFIG_SYS_USE_NAND
  25. #define CONFIG_SYS_NAND_SMALLPAGE
  26. #define CONFIG_SKIP_LOWLEVEL_INIT
  27. /* SoC Configuration */
  28. #define CONFIG_ARM926EJS /* arm926ejs CPU */
  29. /* Clock rates detection */
  30. #ifndef __ASSEMBLY__
  31. extern unsigned int davinci_arm_clk_get(void);
  32. #endif
  33. #define CFG_REFCLK_FREQ 27000000
  34. /* Arm Clock frequency */
  35. #define CONFIG_SYS_CLK_FREQ davinci_arm_clk_get()
  36. /* Timer Input clock freq */
  37. #define CONFIG_SYS_HZ_CLOCK (CONFIG_SYS_CLK_FREQ/2)
  38. #define CONFIG_SYS_TIMERBASE 0x01c21400 /* use timer 0 */
  39. #define CONFIG_SYS_HZ 1000
  40. #define CONFIG_SOC_DM646X
  41. /* EEPROM definitions for EEPROM */
  42. #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
  43. #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
  44. #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 6
  45. #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 20
  46. /* Memory Info */
  47. #define CONFIG_SYS_MALLOC_LEN (1 << 20) /* 1 MiB */
  48. #define CONFIG_SYS_MEMTEST_START 0x80000000
  49. #define CONFIG_SYS_MEMTEST_END 0x81000000 /* 16MB RAM test */
  50. #define CONFIG_NR_DRAM_BANKS 1
  51. #define CONFIG_STACKSIZE (256 << 10) /* 256 KiB */
  52. #define PHYS_SDRAM_1 0x80000000 /* DDR Start */
  53. #define PHYS_SDRAM_1_SIZE (256 << 20) /* DDR size 256MB */
  54. /* Linux interfacing */
  55. #define CONFIG_CMDLINE_TAG
  56. #define CONFIG_SETUP_MEMORY_TAGS
  57. #define CONFIG_SYS_BARGSIZE 1024 /* Bootarg Size */
  58. #define CONFIG_SYS_LOAD_ADDR 0x80700000 /* kernel address */
  59. /* Serial Driver info */
  60. #define CONFIG_SYS_NS16550
  61. #define CONFIG_SYS_NS16550_SERIAL
  62. #define CONFIG_SYS_NS16550_REG_SIZE 4
  63. #define CONFIG_SYS_NS16550_COM1 0x01c20000
  64. #define CONFIG_SYS_NS16550_CLK 24000000
  65. #define CONFIG_CONS_INDEX 1
  66. #define CONFIG_BAUDRATE 115200
  67. #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
  68. /* I2C Configuration */
  69. #define CONFIG_HARD_I2C
  70. #define CONFIG_DRIVER_DAVINCI_I2C
  71. #define CONFIG_SYS_I2C_SPEED 80000
  72. #define CONFIG_SYS_I2C_SLAVE 10
  73. /* Network & Ethernet Configuration */
  74. #define CONFIG_DRIVER_TI_EMAC
  75. #define CONFIG_MII
  76. #define CONFIG_BOOTP_DEFAULT
  77. #define CONFIG_BOOTP_DNS
  78. #define CONFIG_BOOTP_DNS2
  79. #define CONFIG_BOOTP_SEND_HOSTNAME
  80. #define CONFIG_NET_RETRY_COUNT 10
  81. #define CONFIG_CMD_NET
  82. /* Flash & Environment */
  83. #define CONFIG_SYS_NO_FLASH
  84. #ifdef CONFIG_SYS_USE_NAND
  85. #define CONFIG_NAND_DAVINCI
  86. #define CONFIG_SYS_NAND_CS 2
  87. #undef CONFIG_ENV_IS_IN_FLASH
  88. #define CONFIG_ENV_IS_IN_NAND
  89. #define CONFIG_ENV_SIZE (16 << 10) /* 16 KiB */
  90. #define CONFIG_SYS_NAND_BASE_LIST {0x42000000, }
  91. #define CONFIG_SYS_NAND_HW_ECC
  92. #define CONFIG_SYS_MAX_NAND_DEVICE 1
  93. #define CONFIG_ENV_OFFSET 0
  94. #else
  95. #define CONFIG_ENV_IS_NOWHERE
  96. #define CONFIG_ENV_SIZE (4 << 10) /* 4 KiB */
  97. #endif
  98. /* U-Boot general configuration */
  99. #undef CONFIG_USE_IRQ /* No IRQ/FIQ in U-Boot */
  100. #define CONFIG_BOOTDELAY 3
  101. #define CONFIG_BOOTFILE "uImage" /* Boot file name */
  102. #define CONFIG_SYS_PROMPT "DM6467 EVM > " /* Monitor Command Prompt */
  103. #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
  104. #define CONFIG_SYS_PBSIZE \
  105. (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
  106. #define CONFIG_SYS_MAXARGS 16
  107. #define CONFIG_VERSION_VARIABLE
  108. #define CONFIG_AUTO_COMPLETE
  109. #define CONFIG_SYS_HUSH_PARSER
  110. #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
  111. #define CONFIG_CMDLINE_EDITING
  112. #define CONFIG_SYS_LONGHELP
  113. #define CONFIG_CRC32_VERIFY
  114. #define CONFIG_MX_CYCLIC
  115. #define CONFIG_BOOTCOMMAND "source 0x82080000; dhcp; bootm"
  116. #define CONFIG_BOOTARGS \
  117. "mem=120M console=ttyS0,115200n8 " \
  118. "root=/dev/hda1 rw noinitrd ip=dhcp"
  119. /* U-Boot commands */
  120. #include <config_cmd_default.h>
  121. #define CONFIG_CMD_ASKENV
  122. #define CONFIG_CMD_DIAG
  123. #define CONFIG_CMD_I2C
  124. #define CONFIG_CMD_MII
  125. #define CONFIG_CMD_SAVES
  126. #define CONFIG_CMD_EEPROM
  127. #define CONFIG_CMD_PING
  128. #define CONFIG_CMD_DHCP
  129. #undef CONFIG_CMD_BDI
  130. #undef CONFIG_CMD_FPGA
  131. #undef CONFIG_CMD_SETGETDCR
  132. #ifdef CONFIG_SYS_USE_NAND
  133. #undef CONFIG_CMD_FLASH
  134. #undef CONFIG_CMD_IMLS
  135. #define CONFIG_CMD_NAND
  136. #endif
  137. #define CONFIG_MAX_RAM_BANK_SIZE (256 << 20) /* 256 MB */
  138. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
  139. #define CONFIG_SYS_INIT_RAM_SIZE 0x1000
  140. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + \
  141. CONFIG_SYS_INIT_RAM_SIZE - \
  142. GENERATED_GBL_DATA_SIZE)
  143. #endif /* __CONFIG_H */