tnetv107x_evm.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /*
  2. * Copyright (C) 2008 Texas Instruments, Inc <www.ti.com>
  3. *
  4. * Based on davinci_dvevm.h. Original Copyrights follow:
  5. *
  6. * Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. #ifndef __CONFIG_H
  24. #define __CONFIG_H
  25. #include <asm/sizes.h>
  26. #include <asm/arch/hardware.h>
  27. #include <asm/arch/clock.h>
  28. /* Architecture, CPU, etc */
  29. #define CONFIG_ARM1176
  30. #define CONFIG_TNETV107X
  31. #define CONFIG_TNETV107X_EVM
  32. #define CONFIG_ARCH_CPU_INIT
  33. #define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_TEXT_BASE
  34. #define CONFIG_DISABLE_TCM
  35. #define CONFIG_PERIPORT_REMAP
  36. #define CONFIG_PERIPORT_BASE 0x2000000
  37. #define CONFIG_PERIPORT_SIZE 0x10
  38. #define CONFIG_SYS_CLK_FREQ clk_get_rate(TNETV107X_LPSC_ARM)
  39. #define CONFIG_SYS_TIMERBASE TNETV107X_TIMER0_BASE
  40. #define CONFIG_SYS_HZ_CLOCK clk_get_rate(TNETV107X_LPSC_TIMER0)
  41. #define CONFIG_SYS_HZ 1000
  42. #define CONFIG_PLL_SYS_EXT_FREQ 25000000
  43. #define CONFIG_PLL_TDM_EXT_FREQ 19200000
  44. #define CONFIG_PLL_ETH_EXT_FREQ 25000000
  45. /* Memory Info */
  46. #define CONFIG_SYS_MALLOC_LEN (0x10000 + 1*1024*1024)
  47. #define CONFIG_SYS_GBL_DATA_SIZE 128
  48. #define PHYS_SDRAM_1 TNETV107X_DDR_EMIF_DATA_BASE
  49. #define PHYS_SDRAM_1_SIZE 0x04000000
  50. #define CONFIG_SYS_MEMTEST_START PHYS_SDRAM_1
  51. #define CONFIG_SYS_MEMTEST_END (PHYS_SDRAM_1 + 16*1024*1024)
  52. #define CONFIG_NR_DRAM_BANKS 1
  53. #define CONFIG_STACKSIZE (256*1024)
  54. /* Serial Driver Info */
  55. #define CONFIG_SYS_NS16550
  56. #define CONFIG_SYS_NS16550_SERIAL
  57. #define CONFIG_SYS_NS16550_REG_SIZE -4
  58. #define CONFIG_SYS_NS16550_COM1 TNETV107X_UART1_BASE
  59. #define CONFIG_SYS_NS16550_CLK clk_get_rate(TNETV107X_LPSC_UART1)
  60. #define CONFIG_CONS_INDEX 1
  61. #define CONFIG_BAUDRATE 115200
  62. #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
  63. /* Flash and environment info */
  64. #define CONFIG_SYS_NO_FLASH
  65. #define CONFIG_ENV_IS_IN_NAND
  66. #define CONFIG_NAND_DAVINCI
  67. #define CONFIG_ENV_SIZE (SZ_128K)
  68. #define CONFIG_SYS_NAND_HW_ECC
  69. #define CONFIG_SYS_NAND_1BIT_ECC
  70. #define CONFIG_SYS_NAND_CS 2
  71. #define CONFIG_SYS_NAND_USE_FLASH_BBT
  72. #define CONFIG_SYS_NAND_BASE TNETV107X_ASYNC_EMIF_DATA_CE0_BASE
  73. #define CONFIG_SYS_CLE_MASK 0x10
  74. #define CONFIG_SYS_ALE_MASK 0x8
  75. #define CONFIG_SYS_MAX_NAND_DEVICE 1
  76. #define CONFIG_MTD_PARTITIONS
  77. #define CONFIG_CMD_MTDPARTS
  78. #define CONFIG_MTD_DEVICE
  79. #define CONFIG_JFFS2_NAND
  80. #define NAND_MAX_CHIPS 1
  81. #define CONFIG_ENV_OFFSET 0x180000
  82. #define DEF_BOOTM ""
  83. /*
  84. * davinci_nand is a bit of a misnomer since this particular EMIF block is
  85. * commonly used across multiple TI devices. Unfortunately, this misnomer
  86. * (amongst others) carries forward into the kernel too. Consequently, if we
  87. * use a different device name here, the mtdparts variable won't be usable as
  88. * a kernel command-line argument.
  89. */
  90. #define MTDIDS_DEFAULT "nand0=davinci_nand.0"
  91. #define MTDPARTS_DEFAULT "mtdparts=davinci_nand.0:" \
  92. "1536k(uboot)ro," \
  93. "128k(params)ro," \
  94. "4m(kernel)," \
  95. "-(filesystem)"
  96. /* General U-Boot configuration */
  97. #define CONFIG_BOOTFILE "uImage"
  98. #define CONFIG_SYS_PROMPT "U-Boot > "
  99. #define CONFIG_SYS_CBSIZE 1024
  100. #define CONFIG_SYS_MAXARGS 64
  101. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  102. #define CONFIG_VERSION_VARIABLE
  103. #define CONFIG_AUTO_COMPLETE
  104. #define CONFIG_SYS_HUSH_PARSER
  105. #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
  106. #define CONFIG_CMDLINE_EDITING
  107. #define CONFIG_SYS_LONGHELP
  108. #define CONFIG_CRC32_VERIFY
  109. #define CONFIG_MX_CYCLIC
  110. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
  111. sizeof(CONFIG_SYS_PROMPT) + 16)
  112. #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_MEMTEST_START + \
  113. 0x700000)
  114. #define LINUX_BOOT_PARAM_ADDR (CONFIG_SYS_MEMTEST_START + 0x100)
  115. #define CONFIG_CMDLINE_TAG
  116. #define CONFIG_SETUP_MEMORY_TAGS
  117. #define CONFIG_BOOTARGS "mem=32M console=ttyS1,115200n8 " \
  118. "root=/dev/mmcblk0p1 rw noinitrd"
  119. #define CONFIG_BOOTCOMMAND ""
  120. #define CONFIG_BOOTDELAY 1
  121. #define CONFIG_CMD_BDI
  122. #define CONFIG_CMD_BOOTD
  123. #define CONFIG_CMD_CONSOLE
  124. #define CONFIG_CMD_ECHO
  125. #define CONFIG_CMD_EDITENV
  126. #define CONFIG_CMD_IMI
  127. #define CONFIG_CMD_ITEST
  128. #define CONFIG_CMD_LOADB
  129. #define CONFIG_CMD_LOADS
  130. #define CONFIG_CMD_MEMORY
  131. #define CONFIG_CMD_MISC
  132. #define CONFIG_CMD_RUN
  133. #define CONFIG_CMD_SAVEENV
  134. #define CONFIG_CMD_SOURCE
  135. #define CONFIG_CMD_ENV
  136. #define CONFIG_CMD_ASKENV
  137. #define CONFIG_CMD_SAVES
  138. #define CONFIG_CMD_MEMORY
  139. #define CONFIG_CMD_NAND
  140. #define CONFIG_CMD_JFFS2
  141. #endif /* __CONFIG_H */