davinci_dm6467evm.h 5.0 KB

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