ecovec.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. /*
  2. * Configuation settings for the Renesas Solutions ECOVEC board
  3. *
  4. * Copyright (C) 2009 - 2011 Renesas Solutions Corp.
  5. * Copyright (C) 2009 Kuninori Morimoto <morimoto.kuninori@renesas.com>
  6. * Copyright (C) 2010, 2011 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
  7. *
  8. * See file CREDITS for list of people who contributed to this
  9. * project.
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of
  14. * the License, or (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  24. * MA 02111-1307 USA
  25. */
  26. #ifndef __ECOVEC_H
  27. #define __ECOVEC_H
  28. /*
  29. * Address Interface BusWidth
  30. *-----------------------------------------
  31. * 0x0000_0000 U-Boot 16bit
  32. * 0x0004_0000 Linux romImage 16bit
  33. * 0x0014_0000 MTD for Linux 16bit
  34. * 0x0400_0000 Internal I/O 16/32bit
  35. * 0x0800_0000 DRAM 32bit
  36. * 0x1800_0000 MFI 16bit
  37. */
  38. #undef DEBUG
  39. #define CONFIG_SH 1
  40. #define CONFIG_SH4 1
  41. #define CONFIG_SH4A 1
  42. #define CONFIG_CPU_SH7724 1
  43. #define BOARD_LATE_INIT 1
  44. #define CONFIG_ECOVEC 1
  45. #define CONFIG_ECOVEC_ROMIMAGE_ADDR 0xA0040000
  46. #define CONFIG_SYS_TEXT_BASE 0x8FFC0000
  47. #define CONFIG_CMD_FLASH
  48. #define CONFIG_CMD_MEMORY
  49. #define CONFIG_CMD_NET
  50. #define CONFIG_CMD_PING
  51. #define CONFIG_CMD_MII
  52. #define CONFIG_CMD_NFS
  53. #define CONFIG_CMD_SDRAM
  54. #define CONFIG_CMD_ENV
  55. #define CONFIG_CMD_USB
  56. #define CONFIG_CMD_FAT
  57. #define CONFIG_CMD_EXT2
  58. #define CONFIG_CMD_SAVEENV
  59. #define CONFIG_USB_STORAGE
  60. #define CONFIG_DOS_PARTITION
  61. #define CONFIG_BAUDRATE 115200
  62. #define CONFIG_BOOTDELAY 3
  63. #define CONFIG_BOOTARGS "console=ttySC0,115200"
  64. #define CONFIG_VERSION_VARIABLE
  65. #undef CONFIG_SHOW_BOOT_PROGRESS
  66. /* I2C */
  67. #define CONFIG_CMD_I2C
  68. #define CONFIG_SH_I2C 1
  69. #define CONFIG_HARD_I2C 1
  70. #define CONFIG_I2C_MULTI_BUS 1
  71. #define CONFIG_SYS_MAX_I2C_BUS 2
  72. #define CONFIG_SYS_I2C_MODULE 1
  73. #define CONFIG_SYS_I2C_SPEED 100000 /* 100 kHz */
  74. #define CONFIG_SYS_I2C_SLAVE 0x7F
  75. #define CONFIG_SH_I2C_DATA_HIGH 4
  76. #define CONFIG_SH_I2C_DATA_LOW 5
  77. #define CONFIG_SH_I2C_CLOCK 41666666
  78. #define CONFIG_SH_I2C_BASE0 0xA4470000
  79. #define CONFIG_SH_I2C_BASE1 0xA4750000
  80. /* Ether */
  81. #define CONFIG_SH_ETHER 1
  82. #define CONFIG_SH_ETHER_USE_PORT (0)
  83. #define CONFIG_SH_ETHER_PHY_ADDR (0x1f)
  84. #define CONFIG_PHYLIB
  85. #define CONFIG_BITBANGMII
  86. #define CONFIG_BITBANGMII_MULTI
  87. /* USB / R8A66597 */
  88. #define CONFIG_USB_R8A66597_HCD
  89. #define CONFIG_R8A66597_BASE_ADDR 0xA4D80000
  90. #define CONFIG_R8A66597_XTAL 0x0000 /* 12MHz */
  91. #define CONFIG_R8A66597_LDRV 0x8000 /* 3.3V */
  92. #define CONFIG_R8A66597_ENDIAN 0x0000 /* little */
  93. #define CONFIG_SUPERH_ON_CHIP_R8A66597
  94. /* undef to save memory */
  95. #define CONFIG_SYS_LONGHELP
  96. /* Monitor Command Prompt */
  97. #define CONFIG_SYS_PROMPT "=> "
  98. /* Buffer size for input from the Console */
  99. #define CONFIG_SYS_CBSIZE 256
  100. /* Buffer size for Console output */
  101. #define CONFIG_SYS_PBSIZE 256
  102. /* max args accepted for monitor commands */
  103. #define CONFIG_SYS_MAXARGS 16
  104. /* Buffer size for Boot Arguments passed to kernel */
  105. #define CONFIG_SYS_BARGSIZE 512
  106. /* List of legal baudrate settings for this board */
  107. #define CONFIG_SYS_BAUDRATE_TABLE { 115200 }
  108. /* SCIF */
  109. #define CONFIG_SCIF_CONSOLE 1
  110. #define CONFIG_SCIF 1
  111. #define CONFIG_CONS_SCIF0 1
  112. /* Suppress display of console information at boot */
  113. #undef CONFIG_SYS_CONSOLE_INFO_QUIET
  114. #undef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
  115. #undef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
  116. /* SDRAM */
  117. #define CONFIG_SYS_SDRAM_BASE (0x88000000)
  118. #define CONFIG_SYS_SDRAM_SIZE (256 * 1024 * 1024)
  119. #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 16 * 1024 * 1024)
  120. #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE)
  121. #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 200 * 1024 * 1024)
  122. /* Enable alternate, more extensive, memory test */
  123. #undef CONFIG_SYS_ALT_MEMTEST
  124. /* Scratch address used by the alternate memory test */
  125. #undef CONFIG_SYS_MEMTEST_SCRATCH
  126. /* Enable temporary baudrate change while serial download */
  127. #undef CONFIG_SYS_LOADS_BAUD_CHANGE
  128. /* FLASH */
  129. #define CONFIG_FLASH_CFI_DRIVER 1
  130. #define CONFIG_SYS_FLASH_CFI
  131. #undef CONFIG_SYS_FLASH_QUIET_TEST
  132. #define CONFIG_SYS_FLASH_EMPTY_INFO
  133. #define CONFIG_SYS_FLASH_BASE (0xA0000000)
  134. #define CONFIG_SYS_MAX_FLASH_SECT 512
  135. /* if you use all NOR Flash , you change dip-switch. Please see Manual. */
  136. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  137. #define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE }
  138. /* Timeout for Flash erase operations (in ms) */
  139. #define CONFIG_SYS_FLASH_ERASE_TOUT (3 * 1000)
  140. /* Timeout for Flash write operations (in ms) */
  141. #define CONFIG_SYS_FLASH_WRITE_TOUT (3 * 1000)
  142. /* Timeout for Flash set sector lock bit operations (in ms) */
  143. #define CONFIG_SYS_FLASH_LOCK_TOUT (3 * 1000)
  144. /* Timeout for Flash clear lock bit operations (in ms) */
  145. #define CONFIG_SYS_FLASH_UNLOCK_TOUT (3 * 1000)
  146. /*
  147. * Use hardware flash sectors protection instead
  148. * of U-Boot software protection
  149. */
  150. #undef CONFIG_SYS_FLASH_PROTECTION
  151. #undef CONFIG_SYS_DIRECT_FLASH_TFTP
  152. /* Address of u-boot image in Flash (NOT run time address in SDRAM) ?!? */
  153. #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE)
  154. /* Monitor size */
  155. #define CONFIG_SYS_MONITOR_LEN (256 * 1024)
  156. /* Size of DRAM reserved for malloc() use */
  157. #define CONFIG_SYS_MALLOC_LEN (256 * 1024)
  158. /* size in bytes reserved for initial data */
  159. #define CONFIG_SYS_GBL_DATA_SIZE (256)
  160. #define CONFIG_SYS_BOOTMAPSZ (8 * 1024 * 1024)
  161. /* ENV setting */
  162. #define CONFIG_ENV_IS_IN_FLASH
  163. #define CONFIG_ENV_OVERWRITE 1
  164. #define CONFIG_ENV_SECT_SIZE (128 * 1024)
  165. #define CONFIG_ENV_SIZE (CONFIG_ENV_SECT_SIZE)
  166. #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
  167. /* Offset of env Flash sector relative to CONFIG_SYS_FLASH_BASE */
  168. #define CONFIG_ENV_OFFSET (CONFIG_ENV_ADDR - CONFIG_SYS_FLASH_BASE)
  169. #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SECT_SIZE)
  170. /* Board Clock */
  171. #define CONFIG_SYS_CLK_FREQ 41666666
  172. #define CONFIG_SYS_TMU_CLK_DIV 4
  173. #define CONFIG_SYS_HZ 1000
  174. #endif /* __ECOVEC_H */