dbau1x00.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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_AU1X00 1 /* alchemy series cpu */
  31. #ifdef CONFIG_DBAU1000
  32. /* Also known as Merlot */
  33. #define CONFIG_AU1000 1
  34. #else
  35. #ifdef CONFIG_DBAU1100
  36. #define CONFIG_AU1100 1
  37. #else
  38. #ifdef CONFIG_DBAU1500
  39. #define CONFIG_AU1500 1
  40. #else
  41. #ifdef CONFIG_DBAU1550
  42. /* Cabernet */
  43. #define CONFIG_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. * Command line configuration.
  72. */
  73. #include <config_cmd_default.h>
  74. #undef CONFIG_CMD_BDI
  75. #undef CONFIG_CMD_BEDBUG
  76. #undef CONFIG_CMD_ELF
  77. #undef CONFIG_CMD_ENV
  78. #undef CONFIG_CMD_FAT
  79. #undef CONFIG_CMD_FPGA
  80. #undef CONFIG_CMD_MII
  81. #undef CONFIG_CMD_RUN
  82. #ifdef CONFIG_DBAU1550
  83. #define CONFIG_CMD_FLASH
  84. #define CONFIG_CMD_LOADB
  85. #define CONFIG_CMD_NET
  86. #undef CONFIG_CMD_I2C
  87. #undef CONFIG_CMD_IDE
  88. #undef CONFIG_CMD_NFS
  89. #undef CONFIG_CMD_PCMCIA
  90. #else
  91. #define CONFIG_CMD_IDE
  92. #define CONFIG_CMD_DHCP
  93. #undef CONFIG_CMD_FLASH
  94. #undef CONFIG_CMD_LOADB
  95. #undef CONFIG_CMD_LOADS
  96. #endif
  97. /*
  98. * Miscellaneous configurable options
  99. */
  100. #define CFG_LONGHELP /* undef to save memory */
  101. #define CFG_PROMPT "DbAu1xx0 # " /* Monitor Command Prompt */
  102. #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
  103. #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
  104. #define CFG_MAXARGS 16 /* max number of command args*/
  105. #define CFG_MALLOC_LEN 128*1024
  106. #define CFG_BOOTPARAMS_LEN 128*1024
  107. #define CFG_MHZ 396
  108. #if (CFG_MHZ % 12) != 0
  109. #error "Invalid CPU frequency - must be multiple of 12!"
  110. #endif
  111. #define CFG_HZ (CFG_MHZ * 1000000) /* FIXME causes overflow in net.c */
  112. #define CFG_SDRAM_BASE 0x80000000 /* Cached addr */
  113. #define CFG_LOAD_ADDR 0x81000000 /* default load address */
  114. #define CFG_MEMTEST_START 0x80100000
  115. #define CFG_MEMTEST_END 0x80800000
  116. /*-----------------------------------------------------------------------
  117. * FLASH and environment organization
  118. */
  119. #ifdef CONFIG_DBAU1550
  120. #define CFG_MAX_FLASH_BANKS 2 /* max number of memory banks */
  121. #define CFG_MAX_FLASH_SECT (512) /* max number of sectors on one chip */
  122. #define PHYS_FLASH_1 0xb8000000 /* Flash Bank #1 */
  123. #define PHYS_FLASH_2 0xbc000000 /* Flash Bank #2 */
  124. #else /* CONFIG_DBAU1550 */
  125. #define CFG_MAX_FLASH_BANKS 2 /* max number of memory banks */
  126. #define CFG_MAX_FLASH_SECT (128) /* max number of sectors on one chip */
  127. #define PHYS_FLASH_1 0xbec00000 /* Flash Bank #1 */
  128. #define PHYS_FLASH_2 0xbfc00000 /* Flash Bank #2 */
  129. #endif /* CONFIG_DBAU1550 */
  130. #define CFG_FLASH_BANKS_LIST {PHYS_FLASH_1, PHYS_FLASH_2}
  131. #define CFG_FLASH_CFI 1
  132. #define CFG_FLASH_CFI_DRIVER 1
  133. /* The following #defines are needed to get flash environment right */
  134. #define CFG_MONITOR_BASE TEXT_BASE
  135. #define CFG_MONITOR_LEN (192 << 10)
  136. #define CFG_INIT_SP_OFFSET 0x400000
  137. /* We boot from this flash, selected with dip switch */
  138. #define CFG_FLASH_BASE PHYS_FLASH_2
  139. /* timeout values are in ticks */
  140. #define CFG_FLASH_ERASE_TOUT (2 * CFG_HZ) /* Timeout for Flash Erase */
  141. #define CFG_FLASH_WRITE_TOUT (2 * CFG_HZ) /* Timeout for Flash Write */
  142. #define CFG_ENV_IS_NOWHERE 1
  143. /* Address and size of Primary Environment Sector */
  144. #define CFG_ENV_ADDR 0xB0030000
  145. #define CFG_ENV_SIZE 0x10000
  146. #define CONFIG_FLASH_16BIT
  147. #define CONFIG_NR_DRAM_BANKS 2
  148. #define CONFIG_NET_MULTI
  149. #ifdef CONFIG_DBAU1550
  150. #define MEM_SIZE 192
  151. #else
  152. #define MEM_SIZE 64
  153. #endif
  154. #define CONFIG_MEMSIZE_IN_BYTES
  155. #ifndef CONFIG_DBAU1550
  156. /*---ATA PCMCIA ------------------------------------*/
  157. #define CFG_PCMCIA_MEM_SIZE 0x4000000 /* Offset to slot 1 FIXME!!! */
  158. #define CFG_PCMCIA_MEM_ADDR 0x20000000
  159. #define CONFIG_PCMCIA_SLOT_A
  160. #define CONFIG_ATAPI 1
  161. #define CONFIG_MAC_PARTITION 1
  162. /* We run CF in "true ide" mode or a harddrive via pcmcia */
  163. #define CONFIG_IDE_PCMCIA 1
  164. /* We only support one slot for now */
  165. #define CFG_IDE_MAXBUS 1 /* max. 1 IDE bus */
  166. #define CFG_IDE_MAXDEVICE 1 /* max. 1 drive per IDE bus */
  167. #undef CONFIG_IDE_LED /* LED for ide not supported */
  168. #undef CONFIG_IDE_RESET /* reset for ide not supported */
  169. #define CFG_ATA_IDE0_OFFSET 0x0000
  170. #define CFG_ATA_BASE_ADDR CFG_PCMCIA_MEM_ADDR
  171. /* Offset for data I/O */
  172. #define CFG_ATA_DATA_OFFSET 8
  173. /* Offset for normal register accesses */
  174. #define CFG_ATA_REG_OFFSET 0
  175. /* Offset for alternate registers */
  176. #define CFG_ATA_ALT_OFFSET 0x0100
  177. #endif /* CONFIG_DBAU1550 */
  178. /*-----------------------------------------------------------------------
  179. * Cache Configuration
  180. */
  181. #define CFG_DCACHE_SIZE 16384
  182. #define CFG_ICACHE_SIZE 16384
  183. #define CFG_CACHELINE_SIZE 32
  184. #endif /* __CONFIG_H */