dbau1x00.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. /*
  2. * (C) Copyright 2003
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  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. /*
  24. * This file contains the configuration parameters for the dbau1x00 board.
  25. */
  26. #ifndef __CONFIG_H
  27. #define __CONFIG_H
  28. #define CONFIG_MIPS32 1 /* MIPS32 CPU core */
  29. #define CONFIG_DBAU1X00 1
  30. #define CONFIG_SOC_AU1X00 1 /* alchemy series cpu */
  31. #ifdef CONFIG_DBAU1000
  32. /* Also known as Merlot */
  33. #define CONFIG_SOC_AU1000 1
  34. #else
  35. #ifdef CONFIG_DBAU1100
  36. #define CONFIG_SOC_AU1100 1
  37. #else
  38. #ifdef CONFIG_DBAU1500
  39. #define CONFIG_SOC_AU1500 1
  40. #else
  41. #ifdef CONFIG_DBAU1550
  42. /* Cabernet */
  43. #define CONFIG_SOC_AU1550 1
  44. #else
  45. #error "No valid board set"
  46. #endif
  47. #endif
  48. #endif
  49. #endif
  50. #define CONFIG_ETHADDR DE:AD:BE:EF:01:01 /* Ethernet address */
  51. #define CONFIG_BOOTDELAY 2 /* autoboot after 2 seconds */
  52. #define CONFIG_BAUDRATE 115200
  53. /* valid baudrates */
  54. #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
  55. #define CONFIG_TIMESTAMP /* Print image info with timestamp */
  56. #undef CONFIG_BOOTARGS
  57. #define CONFIG_EXTRA_ENV_SETTINGS \
  58. "addmisc=setenv bootargs ${bootargs} " \
  59. "console=ttyS0,${baudrate} " \
  60. "panic=1\0" \
  61. "bootfile=/tftpboot/vmlinux.srec\0" \
  62. "load=tftp 80500000 ${u-boot}\0" \
  63. ""
  64. #ifdef CONFIG_DBAU1550
  65. /* Boot from flash by default, revert to bootp */
  66. #define CONFIG_BOOTCOMMAND "bootm 0xbfc20000; bootp; bootm"
  67. #else /* CONFIG_DBAU1550 */
  68. #define CONFIG_BOOTCOMMAND "bootp;bootm"
  69. #endif /* CONFIG_DBAU1550 */
  70. /*
  71. * BOOTP options
  72. */
  73. #define CONFIG_BOOTP_BOOTFILESIZE
  74. #define CONFIG_BOOTP_BOOTPATH
  75. #define CONFIG_BOOTP_GATEWAY
  76. #define CONFIG_BOOTP_HOSTNAME
  77. /*
  78. * Command line configuration.
  79. */
  80. #include <config_cmd_default.h>
  81. #undef CONFIG_CMD_BDI
  82. #undef CONFIG_CMD_BEDBUG
  83. #undef CONFIG_CMD_ELF
  84. #undef CONFIG_CMD_ENV
  85. #undef CONFIG_CMD_FAT
  86. #undef CONFIG_CMD_FPGA
  87. #undef CONFIG_CMD_MII
  88. #undef CONFIG_CMD_RUN
  89. #ifdef CONFIG_DBAU1550
  90. #define CONFIG_CMD_FLASH
  91. #define CONFIG_CMD_LOADB
  92. #define CONFIG_CMD_NET
  93. #undef CONFIG_CMD_I2C
  94. #undef CONFIG_CMD_IDE
  95. #undef CONFIG_CMD_NFS
  96. #undef CONFIG_CMD_PCMCIA
  97. #else
  98. #define CONFIG_CMD_IDE
  99. #define CONFIG_CMD_DHCP
  100. #undef CONFIG_CMD_FLASH
  101. #undef CONFIG_CMD_LOADB
  102. #undef CONFIG_CMD_LOADS
  103. #endif
  104. /*
  105. * Miscellaneous configurable options
  106. */
  107. #define CFG_LONGHELP /* undef to save memory */
  108. #define CFG_PROMPT "DbAu1xx0 # " /* Monitor Command Prompt */
  109. #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
  110. #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
  111. #define CFG_MAXARGS 16 /* max number of command args*/
  112. #define CFG_MALLOC_LEN 128*1024
  113. #define CFG_BOOTPARAMS_LEN 128*1024
  114. #define CFG_MHZ 396
  115. #if (CFG_MHZ % 12) != 0
  116. #error "Invalid CPU frequency - must be multiple of 12!"
  117. #endif
  118. #define CFG_MIPS_TIMER_FREQ (CFG_MHZ * 1000000)
  119. #define CFG_HZ 1000
  120. #define CFG_SDRAM_BASE 0x80000000 /* Cached addr */
  121. #define CFG_LOAD_ADDR 0x81000000 /* default load address */
  122. #define CFG_MEMTEST_START 0x80100000
  123. #define CFG_MEMTEST_END 0x80800000
  124. /*-----------------------------------------------------------------------
  125. * FLASH and environment organization
  126. */
  127. #ifdef CONFIG_DBAU1550
  128. #define CFG_MAX_FLASH_BANKS 2 /* max number of memory banks */
  129. #define CFG_MAX_FLASH_SECT (512) /* max number of sectors on one chip */
  130. #define PHYS_FLASH_1 0xb8000000 /* Flash Bank #1 */
  131. #define PHYS_FLASH_2 0xbc000000 /* Flash Bank #2 */
  132. #else /* CONFIG_DBAU1550 */
  133. #define CFG_MAX_FLASH_BANKS 2 /* max number of memory banks */
  134. #define CFG_MAX_FLASH_SECT (128) /* max number of sectors on one chip */
  135. #define PHYS_FLASH_1 0xbec00000 /* Flash Bank #1 */
  136. #define PHYS_FLASH_2 0xbfc00000 /* Flash Bank #2 */
  137. #endif /* CONFIG_DBAU1550 */
  138. #define CFG_FLASH_BANKS_LIST {PHYS_FLASH_1, PHYS_FLASH_2}
  139. #define CFG_FLASH_CFI 1
  140. #define CFG_FLASH_CFI_DRIVER 1
  141. /* The following #defines are needed to get flash environment right */
  142. #define CFG_MONITOR_BASE TEXT_BASE
  143. #define CFG_MONITOR_LEN (192 << 10)
  144. #define CFG_INIT_SP_OFFSET 0x400000
  145. /* We boot from this flash, selected with dip switch */
  146. #define CFG_FLASH_BASE PHYS_FLASH_2
  147. /* timeout values are in ticks */
  148. #define CFG_FLASH_ERASE_TOUT (2 * CFG_HZ) /* Timeout for Flash Erase */
  149. #define CFG_FLASH_WRITE_TOUT (2 * CFG_HZ) /* Timeout for Flash Write */
  150. #define CFG_ENV_IS_NOWHERE 1
  151. /* Address and size of Primary Environment Sector */
  152. #define CFG_ENV_ADDR 0xB0030000
  153. #define CFG_ENV_SIZE 0x10000
  154. #define CONFIG_FLASH_16BIT
  155. #define CONFIG_NR_DRAM_BANKS 2
  156. #define CONFIG_NET_MULTI
  157. #ifdef CONFIG_DBAU1550
  158. #define MEM_SIZE 192
  159. #else
  160. #define MEM_SIZE 64
  161. #endif
  162. #define CONFIG_MEMSIZE_IN_BYTES
  163. #ifndef CONFIG_DBAU1550
  164. /*---ATA PCMCIA ------------------------------------*/
  165. #define CFG_PCMCIA_MEM_SIZE 0x4000000 /* Offset to slot 1 FIXME!!! */
  166. #define CFG_PCMCIA_MEM_ADDR 0x20000000
  167. #define CONFIG_PCMCIA_SLOT_A
  168. #define CONFIG_ATAPI 1
  169. #define CONFIG_MAC_PARTITION 1
  170. /* We run CF in "true ide" mode or a harddrive via pcmcia */
  171. #define CONFIG_IDE_PCMCIA 1
  172. /* We only support one slot for now */
  173. #define CFG_IDE_MAXBUS 1 /* max. 1 IDE bus */
  174. #define CFG_IDE_MAXDEVICE 1 /* max. 1 drive per IDE bus */
  175. #undef CONFIG_IDE_LED /* LED for ide not supported */
  176. #undef CONFIG_IDE_RESET /* reset for ide not supported */
  177. #define CFG_ATA_IDE0_OFFSET 0x0000
  178. #define CFG_ATA_BASE_ADDR CFG_PCMCIA_MEM_ADDR
  179. /* Offset for data I/O */
  180. #define CFG_ATA_DATA_OFFSET 8
  181. /* Offset for normal register accesses */
  182. #define CFG_ATA_REG_OFFSET 0
  183. /* Offset for alternate registers */
  184. #define CFG_ATA_ALT_OFFSET 0x0100
  185. #endif /* CONFIG_DBAU1550 */
  186. /*-----------------------------------------------------------------------
  187. * Cache Configuration
  188. */
  189. #define CFG_DCACHE_SIZE 16384
  190. #define CFG_ICACHE_SIZE 16384
  191. #define CFG_CACHELINE_SIZE 32
  192. #endif /* __CONFIG_H */