M5275EVB.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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. #define CONFIG_ENV_IS_EMBEDDED 1
  53. #else
  54. #define CONFIG_ENV_ADDR 0xffe04000
  55. #define CONFIG_ENV_SECT_SIZE 0x2000
  56. #define CONFIG_ENV_IS_IN_FLASH 1
  57. #endif
  58. /*
  59. * BOOTP options
  60. */
  61. #define CONFIG_BOOTP_BOOTFILESIZE
  62. #define CONFIG_BOOTP_BOOTPATH
  63. #define CONFIG_BOOTP_GATEWAY
  64. #define CONFIG_BOOTP_HOSTNAME
  65. /* Available command configuration */
  66. #include <config_cmd_default.h>
  67. #define CONFIG_CMD_PING
  68. #define CONFIG_CMD_MII
  69. #define CONFIG_CMD_NET
  70. #define CONFIG_CMD_ELF
  71. #define CONFIG_CMD_FLASH
  72. #define CONFIG_CMD_I2C
  73. #define CONFIG_CMD_MEMORY
  74. #define CONFIG_CMD_DHCP
  75. #undef CONFIG_CMD_LOADS
  76. #undef CONFIG_CMD_LOADB
  77. #define CONFIG_MCFFEC
  78. #ifdef CONFIG_MCFFEC
  79. #define CONFIG_NET_MULTI 1
  80. #define CONFIG_MII 1
  81. #define CONFIG_MII_INIT 1
  82. #define CONFIG_SYS_DISCOVER_PHY
  83. #define CONFIG_SYS_RX_ETH_BUFFER 8
  84. #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
  85. #define CONFIG_SYS_FEC0_PINMUX 0
  86. #define CONFIG_SYS_FEC0_MIIBASE CONFIG_SYS_FEC0_IOBASE
  87. #define CONFIG_SYS_FEC1_PINMUX 0
  88. #define CONFIG_SYS_FEC1_MIIBASE CONFIG_SYS_FEC1_IOBASE
  89. #define MCFFEC_TOUT_LOOP 50000
  90. #define CONFIG_HAS_ETH1
  91. /* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
  92. #ifndef CONFIG_SYS_DISCOVER_PHY
  93. #define FECDUPLEX FULL
  94. #define FECSPEED _100BASET
  95. #else
  96. #ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
  97. #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
  98. #endif
  99. #endif
  100. #endif
  101. /* I2C */
  102. #define CONFIG_FSL_I2C
  103. #define CONFIG_HARD_I2C /* I2C with hw support */
  104. #undef CONFIG_SOFT_I2C
  105. #define CONFIG_SYS_I2C_SPEED 80000
  106. #define CONFIG_SYS_I2C_SLAVE 0x7F
  107. #define CONFIG_SYS_I2C_OFFSET 0x00000300
  108. #define CONFIG_SYS_IMMR CONFIG_SYS_MBAR
  109. #define CONFIG_SYS_I2C_PINMUX_REG (gpio_reg->par_feci2c)
  110. #define CONFIG_SYS_I2C_PINMUX_CLR (0xFFF0)
  111. #define CONFIG_SYS_I2C_PINMUX_SET (0x000F)
  112. #ifdef CONFIG_MCFFEC
  113. #define CONFIG_ETHADDR 00:06:3b:01:41:55
  114. #define CONFIG_ETH1ADDR 00:0e:0c:bc:e5:60
  115. #endif
  116. #define CONFIG_SYS_PROMPT "-> "
  117. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  118. #if (CONFIG_CMD_KGDB)
  119. # define CONFIG_SYS_CBSIZE 1024
  120. #else
  121. # define CONFIG_SYS_CBSIZE 256
  122. #endif
  123. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
  124. #define CONFIG_SYS_MAXARGS 16
  125. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  126. #define CONFIG_SYS_LOAD_ADDR 0x800000
  127. #define CONFIG_BOOTDELAY 5
  128. #define CONFIG_BOOTCOMMAND "bootm ffe40000"
  129. #define CONFIG_SYS_MEMTEST_START 0x400
  130. #define CONFIG_SYS_MEMTEST_END 0x380000
  131. #define CONFIG_SYS_HZ 1000
  132. #define CONFIG_SYS_CLK 150000000
  133. /*
  134. * Low Level Configuration Settings
  135. * (address mappings, register initial values, etc.)
  136. * You should know what you are doing if you make changes here.
  137. */
  138. #define CONFIG_SYS_MBAR 0x40000000
  139. /*-----------------------------------------------------------------------
  140. * Definitions for initial stack pointer and data area (in DPRAM)
  141. */
  142. #define CONFIG_SYS_INIT_RAM_ADDR 0x20000000
  143. #define CONFIG_SYS_INIT_RAM_END 0x10000 /* End of used area in internal SRAM */
  144. #define CONFIG_SYS_GBL_DATA_SIZE 1000 /* bytes reserved for initial data */
  145. #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
  146. #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
  147. /*-----------------------------------------------------------------------
  148. * Start addresses for the final memory configuration
  149. * (Set up by the startup code)
  150. * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  151. */
  152. #define CONFIG_SYS_SDRAM_BASE 0x00000000
  153. #define CONFIG_SYS_SDRAM_SIZE 16 /* SDRAM size in MB */
  154. #define CONFIG_SYS_FLASH_BASE CONFIG_SYS_CS0_BASE
  155. #ifdef CONFIG_MONITOR_IS_IN_RAM
  156. #define CONFIG_SYS_MONITOR_BASE 0x20000
  157. #else
  158. #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_FLASH_BASE + 0x400)
  159. #endif
  160. #define CONFIG_SYS_MONITOR_LEN 0x20000
  161. #define CONFIG_SYS_MALLOC_LEN (256 << 10)
  162. #define CONFIG_SYS_BOOTPARAMS_LEN 64*1024
  163. /*
  164. * For booting Linux, the board info and command line data
  165. * have to be in the first 8 MB of memory, since this is
  166. * the maximum mapped by the Linux kernel during initialization ??
  167. */
  168. #define CONFIG_SYS_BOOTMAPSZ (CONFIG_SYS_SDRAM_BASE + (CONFIG_SYS_SDRAM_SIZE << 20))
  169. #define CONFIG_SYS_BOOTM_LEN (CONFIG_SYS_SDRAM_SIZE << 20)
  170. /*-----------------------------------------------------------------------
  171. * FLASH organization
  172. */
  173. #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
  174. #define CONFIG_SYS_MAX_FLASH_SECT 11 /* max number of sectors on one chip */
  175. #define CONFIG_SYS_FLASH_ERASE_TOUT 1000
  176. #define CONFIG_SYS_FLASH_CFI 1
  177. #define CONFIG_FLASH_CFI_DRIVER 1
  178. #define CONFIG_SYS_FLASH_SIZE 0x200000
  179. /*-----------------------------------------------------------------------
  180. * Cache Configuration
  181. */
  182. #define CONFIG_SYS_CACHELINE_SIZE 16
  183. /*-----------------------------------------------------------------------
  184. * Memory bank definitions
  185. */
  186. #define CONFIG_SYS_CS0_BASE 0xffe00000
  187. #define CONFIG_SYS_CS0_CTRL 0x00001980
  188. #define CONFIG_SYS_CS0_MASK 0x001F0001
  189. #define CONFIG_SYS_CS1_BASE 0x30000000
  190. #define CONFIG_SYS_CS1_CTRL 0x00001900
  191. #define CONFIG_SYS_CS1_MASK 0x00070001
  192. /*-----------------------------------------------------------------------
  193. * Port configuration
  194. */
  195. #define CONFIG_SYS_FECI2C 0x0FA0
  196. #endif /* _M5275EVB_H */