davinci_dm6467evm.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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_SKIP_LOWLEVEL_INIT
  24. #define CONFIG_SKIP_RELOCATE_UBOOT
  25. /* SoC Configuration */
  26. #define CONFIG_ARM926EJS /* arm926ejs CPU */
  27. #define CONFIG_SYS_TIMERBASE 0x01c21400 /* use timer 0 */
  28. #define CONFIG_SYS_HZ_CLOCK 27000000
  29. #define CONFIG_SYS_HZ 1000
  30. #define CONFIG_SOC_DM646X
  31. /* EEPROM definitions for EEPROM */
  32. #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
  33. #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
  34. #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 6
  35. #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 20
  36. /* Memory Info */
  37. #define CONFIG_SYS_MALLOC_LEN (1 << 20) /* 1 MiB */
  38. #define CONFIG_SYS_GBL_DATA_SIZE 128 /* initial data */
  39. #define CONFIG_SYS_MEMTEST_START 0x80000000
  40. #define CONFIG_SYS_MEMTEST_END 0x81000000 /* 16MB RAM test */
  41. #define CONFIG_NR_DRAM_BANKS 1
  42. #define CONFIG_STACKSIZE (256 << 10) /* 256 KiB */
  43. #define PHYS_SDRAM_1 0x80000000 /* DDR Start */
  44. #define PHYS_SDRAM_1_SIZE (256 << 20) /* DDR size 256MB */
  45. /* Linux interfacing */
  46. #define CONFIG_CMDLINE_TAG
  47. #define CONFIG_SETUP_MEMORY_TAGS
  48. #define CONFIG_SYS_BARGSIZE 1024 /* Bootarg Size */
  49. #define CONFIG_SYS_LOAD_ADDR 0x80700000 /* kernel address */
  50. /* Serial Driver info */
  51. #define CONFIG_SYS_NS16550
  52. #define CONFIG_SYS_NS16550_SERIAL
  53. #define CONFIG_SYS_NS16550_REG_SIZE 4
  54. #define CONFIG_SYS_NS16550_COM1 0x01c20000
  55. #define CONFIG_SYS_NS16550_CLK 24000000
  56. #define CONFIG_CONS_INDEX 1
  57. #define CONFIG_BAUDRATE 115200
  58. #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
  59. /* I2C Configuration */
  60. #define CONFIG_HARD_I2C
  61. #define CONFIG_DRIVER_DAVINCI_I2C
  62. #define CONFIG_SYS_I2C_SPEED 80000
  63. #define CONFIG_SYS_I2C_SLAVE 10
  64. /* Flash & Environment */
  65. #define CONFIG_SYS_NO_FLASH
  66. #ifdef CONFIG_SYS_USE_NAND
  67. #define CONFIG_NAND_DAVINCI
  68. #undef CONFIG_ENV_IS_IN_FLASH
  69. #define CONFIG_ENV_IS_IN_NAND
  70. #define CONFIG_SYS_64BIT_VSPRINTF /* needed for nand_util.c */
  71. #define CONFIG_ENV_SIZE (16 << 10) /* 16 KiB */
  72. #define CONFIG_SYS_NAND_BASE_LIST {0x42000000, }
  73. #define CONFIG_SYS_NAND_HW_ECC
  74. #define CONFIG_SYS_MAX_NAND_DEVICE 1
  75. #define CONFIG_ENV_OFFSET 0
  76. #else
  77. #define CONFIG_ENV_IS_NOWHERE
  78. #define CONFIG_ENV_SIZE (4 << 10) /* 4 KiB */
  79. #endif
  80. /* U-Boot general configuration */
  81. #undef CONFIG_USE_IRQ /* No IRQ/FIQ in U-Boot */
  82. #define CONFIG_BOOTDELAY 3
  83. #define CONFIG_BOOTFILE "uImage" /* Boot file name */
  84. #define CONFIG_SYS_PROMPT "DM6467 EVM > " /* Monitor Command Prompt */
  85. #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
  86. #define CONFIG_SYS_PBSIZE \
  87. (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
  88. #define CONFIG_SYS_MAXARGS 16
  89. #define CONFIG_VERSION_VARIABLE
  90. #define CONFIG_AUTO_COMPLETE
  91. #define CONFIG_SYS_HUSH_PARSER
  92. #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
  93. #define CONFIG_CMDLINE_EDITING
  94. #define CONFIG_SYS_LONGHELP
  95. #define CONFIG_CRC32_VERIFY
  96. #define CONFIG_MX_CYCLIC
  97. #define CONFIG_BOOTCOMMAND "source 0x82080000; dhcp; bootm"
  98. #define CONFIG_BOOTARGS \
  99. "mem=120M console=ttyS0,115200n8 " \
  100. "root=/dev/hda1 rw noinitrd ip=dhcp"
  101. /* U-Boot commands */
  102. #include <config_cmd_default.h>
  103. #define CONFIG_CMD_ASKENV
  104. #define CONFIG_CMD_DIAG
  105. #define CONFIG_CMD_I2C
  106. #define CONFIG_CMD_MII
  107. #define CONFIG_CMD_SAVES
  108. #define CONFIG_CMD_EEPROM
  109. #undef CONFIG_CMD_NET
  110. #undef CONFIG_CMD_BDI
  111. #undef CONFIG_CMD_FPGA
  112. #undef CONFIG_CMD_SETGETDCR
  113. #ifdef CONFIG_SYS_USE_NAND
  114. #undef CONFIG_CMD_FLASH
  115. #undef CONFIG_CMD_IMLS
  116. #define CONFIG_CMD_NAND
  117. #endif
  118. #endif /* __CONFIG_H */