M5275EVB.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. /*
  2. * Configuation settings for the Motorola MC5275EVB board.
  3. *
  4. * By Arthur Shipkowski <art@videon-central.com>
  5. * Copyright (C) 2005 Videon Central, Inc.
  6. *
  7. * Based off of M5272C3 board code by Josef Baumgartner
  8. * <josef.baumgartner@telex.de>
  9. *
  10. * See file CREDITS for list of people who contributed to this
  11. * project.
  12. *
  13. * This program is free software; you can redistribute it and/or
  14. * modify it under the terms of the GNU General Public License as
  15. * published by the Free Software Foundation; either version 2 of
  16. * the License, or (at your option) any later version.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU General Public License
  24. * along with this program; if not, write to the Free Software
  25. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  26. * MA 02111-1307 USA
  27. */
  28. /*
  29. * board/config.h - configuration options, board specific
  30. */
  31. #ifndef _M5275EVB_H
  32. #define _M5275EVB_H
  33. /*
  34. * High Level Configuration Options
  35. * (easy to change)
  36. */
  37. #define CONFIG_MCF52x2 /* define processor family */
  38. #define CONFIG_M5275 /* define processor type */
  39. #define CONFIG_M5275EVB /* define board type */
  40. #define CONFIG_MCFTMR
  41. #define CONFIG_MCFUART
  42. #define CONFIG_SYS_UART_PORT (0)
  43. #define CONFIG_BAUDRATE 115200
  44. #define CONFIG_SYS_BAUDRATE_TABLE { 9600 , 19200 , 38400 , 57600, 115200 }
  45. /* Configuration for environment
  46. * Environment is embedded in u-boot in the second sector of the flash
  47. */
  48. #ifndef CONFIG_MONITOR_IS_IN_RAM
  49. #define CONFIG_ENV_OFFSET 0x4000
  50. #define CONFIG_ENV_SECT_SIZE 0x2000
  51. #define CONFIG_ENV_IS_IN_FLASH 1
  52. #else
  53. #define CONFIG_ENV_ADDR 0xffe04000
  54. #define CONFIG_ENV_SECT_SIZE 0x2000
  55. #define CONFIG_ENV_IS_IN_FLASH 1
  56. #endif
  57. /*
  58. * BOOTP options
  59. */
  60. #define CONFIG_BOOTP_BOOTFILESIZE
  61. #define CONFIG_BOOTP_BOOTPATH
  62. #define CONFIG_BOOTP_GATEWAY
  63. #define CONFIG_BOOTP_HOSTNAME
  64. /* Available command configuration */
  65. #include <config_cmd_default.h>
  66. #define CONFIG_CMD_PING
  67. #define CONFIG_CMD_MII
  68. #define CONFIG_CMD_NET
  69. #define CONFIG_CMD_ELF
  70. #define CONFIG_CMD_FLASH
  71. #define CONFIG_CMD_I2C
  72. #define CONFIG_CMD_MEMORY
  73. #define CONFIG_CMD_DHCP
  74. #undef CONFIG_CMD_LOADS
  75. #undef CONFIG_CMD_LOADB
  76. #define CONFIG_MCFFEC
  77. #ifdef CONFIG_MCFFEC
  78. #define CONFIG_NET_MULTI 1
  79. #define CONFIG_MII 1
  80. #define CONFIG_MII_INIT 1
  81. #define CONFIG_SYS_DISCOVER_PHY
  82. #define CONFIG_SYS_RX_ETH_BUFFER 8
  83. #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
  84. #define CONFIG_SYS_FEC0_PINMUX 0
  85. #define CONFIG_SYS_FEC0_MIIBASE CONFIG_SYS_FEC0_IOBASE
  86. #define CONFIG_SYS_FEC1_PINMUX 0
  87. #define CONFIG_SYS_FEC1_MIIBASE CONFIG_SYS_FEC1_IOBASE
  88. #define MCFFEC_TOUT_LOOP 50000
  89. #define CONFIG_HAS_ETH1
  90. /* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
  91. #ifndef CONFIG_SYS_DISCOVER_PHY
  92. #define FECDUPLEX FULL
  93. #define FECSPEED _100BASET
  94. #else
  95. #ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
  96. #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
  97. #endif
  98. #endif
  99. #endif
  100. /* I2C */
  101. #define CONFIG_FSL_I2C
  102. #define CONFIG_HARD_I2C /* I2C with hw support */
  103. #undef CONFIG_SOFT_I2C
  104. #define CONFIG_SYS_I2C_SPEED 80000
  105. #define CONFIG_SYS_I2C_SLAVE 0x7F
  106. #define CONFIG_SYS_I2C_OFFSET 0x00000300
  107. #define CONFIG_SYS_IMMR CONFIG_SYS_MBAR
  108. #define CONFIG_SYS_I2C_PINMUX_REG (gpio_reg->par_feci2c)
  109. #define CONFIG_SYS_I2C_PINMUX_CLR (0xFFF0)
  110. #define CONFIG_SYS_I2C_PINMUX_SET (0x000F)
  111. #ifdef CONFIG_MCFFEC
  112. #define CONFIG_ETHADDR 00:06:3b:01:41:55
  113. #define CONFIG_ETH1ADDR 00:0e:0c:bc:e5:60
  114. #endif
  115. #define CONFIG_SYS_PROMPT "-> "
  116. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  117. #if (CONFIG_CMD_KGDB)
  118. # define CONFIG_SYS_CBSIZE 1024
  119. #else
  120. # define CONFIG_SYS_CBSIZE 256
  121. #endif
  122. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
  123. #define CONFIG_SYS_MAXARGS 16
  124. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  125. #define CONFIG_SYS_LOAD_ADDR 0x800000
  126. #define CONFIG_BOOTDELAY 5
  127. #define CONFIG_BOOTCOMMAND "bootm ffe40000"
  128. #define CONFIG_SYS_MEMTEST_START 0x400
  129. #define CONFIG_SYS_MEMTEST_END 0x380000
  130. #define CONFIG_SYS_HZ 1000
  131. #define CONFIG_SYS_CLK 150000000
  132. /*
  133. * Low Level Configuration Settings
  134. * (address mappings, register initial values, etc.)
  135. * You should know what you are doing if you make changes here.
  136. */
  137. #define CONFIG_SYS_MBAR 0x40000000
  138. /*-----------------------------------------------------------------------
  139. * Definitions for initial stack pointer and data area (in DPRAM)
  140. */
  141. #define CONFIG_SYS_INIT_RAM_ADDR 0x20000000
  142. #define CONFIG_SYS_INIT_RAM_END 0x10000 /* End of used area in internal SRAM */
  143. #define CONFIG_SYS_GBL_DATA_SIZE 1000 /* bytes reserved for initial data */
  144. #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
  145. #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
  146. /*-----------------------------------------------------------------------
  147. * Start addresses for the final memory configuration
  148. * (Set up by the startup code)
  149. * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  150. */
  151. #define CONFIG_SYS_SDRAM_BASE 0x00000000
  152. #define CONFIG_SYS_SDRAM_SIZE 16 /* SDRAM size in MB */
  153. #define CONFIG_SYS_FLASH_BASE CONFIG_SYS_CS0_BASE
  154. #ifdef CONFIG_MONITOR_IS_IN_RAM
  155. #define CONFIG_SYS_MONITOR_BASE 0x20000
  156. #else
  157. #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE + 0x400)
  158. #endif
  159. #define CONFIG_SYS_MONITOR_LEN 0x20000
  160. #define CONFIG_SYS_MALLOC_LEN (256 << 10)
  161. #define CONFIG_SYS_BOOTPARAMS_LEN 64*1024
  162. /*
  163. * For booting Linux, the board info and command line data
  164. * have to be in the first 8 MB of memory, since this is
  165. * the maximum mapped by the Linux kernel during initialization ??
  166. */
  167. #define CONFIG_SYS_BOOTMAPSZ (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
  168. #define CONFIG_SYS_BOOTM_LEN (CONFIG_SYS_SDRAM_SIZE << 20)
  169. /*-----------------------------------------------------------------------
  170. * FLASH organization
  171. */
  172. #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
  173. #define CONFIG_SYS_MAX_FLASH_SECT 11 /* max number of sectors on one chip */
  174. #define CONFIG_SYS_FLASH_ERASE_TOUT 1000
  175. #define CONFIG_SYS_FLASH_CFI 1
  176. #define CONFIG_FLASH_CFI_DRIVER 1
  177. #define CONFIG_SYS_FLASH_SIZE 0x200000
  178. /*-----------------------------------------------------------------------
  179. * Cache Configuration
  180. */
  181. #define CONFIG_SYS_CACHELINE_SIZE 16
  182. /*-----------------------------------------------------------------------
  183. * Memory bank definitions
  184. */
  185. #define CONFIG_SYS_CS0_BASE 0xffe00000
  186. #define CONFIG_SYS_CS0_CTRL 0x00001980
  187. #define CONFIG_SYS_CS0_MASK 0x001F0001
  188. #define CONFIG_SYS_CS1_BASE 0x30000000
  189. #define CONFIG_SYS_CS1_CTRL 0x00001900
  190. #define CONFIG_SYS_CS1_MASK 0x00070001
  191. /*-----------------------------------------------------------------------
  192. * Port configuration
  193. */
  194. #define CONFIG_SYS_FECI2C 0x0FA0
  195. #endif /* _M5275EVB_H */