ml507.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /*
  2. * (C) Copyright 2008
  3. * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es
  4. * This work has been supported by: QTechnology http://qtec.com/
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef __CONFIG_H
  18. #define __CONFIG_H
  19. /*
  20. #define DEBUG
  21. #define ET_DEBUG
  22. */
  23. /*CPU*/
  24. #define CONFIG_XILINX_ML507 1
  25. #define CONFIG_XILINX_440 1
  26. #define CONFIG_440 1
  27. #define CONFIG_4xx 1
  28. #include "../board/xilinx/ml507/xparameters.h"
  29. /*Mem Map*/
  30. #define CFG_SDRAM_BASE 0x0
  31. #define CFG_SDRAM_SIZE_MB 256
  32. #define CFG_MONITOR_BASE TEXT_BASE
  33. #define CFG_MONITOR_LEN ( 192 * 1024 )
  34. #define CFG_MALLOC_LEN ( CFG_ENV_SIZE + 128 * 1024 )
  35. /*Uart*/
  36. #define CONFIG_XILINX_UARTLITE
  37. #define CONFIG_BAUDRATE XPAR_UARTLITE_0_BAUDRATE
  38. #define CFG_BAUDRATE_TABLE { XPAR_UARTLITE_0_BAUDRATE }
  39. #define CONFIG_SERIAL_BASE XPAR_UARTLITE_0_BASEADDR
  40. /*Cmd*/
  41. #include <config_cmd_default.h>
  42. #define CONFIG_CMD_ASKENV
  43. #define CONFIG_CMD_CACHE
  44. #define CONFIG_CMD_DIAG
  45. #define CONFIG_CMD_ELF
  46. #define CONFIG_CMD_IRQ
  47. #define CONFIG_CMD_REGINFO
  48. #define CONFIG_CMD_JFFS2
  49. #define CONFIG_JFFS2_CMDLINE
  50. #undef CONFIG_CMD_I2C
  51. #undef CONFIG_CMD_DTT
  52. #undef CONFIG_CMD_NET
  53. #undef CONFIG_CMD_PING
  54. #undef CONFIG_CMD_DHCP
  55. #undef CONFIG_CMD_EEPROM
  56. #undef CONFIG_CMD_IMLS
  57. /*Env*/
  58. #define CFG_ENV_IS_IN_FLASH
  59. #define CFG_ENV_SIZE 0x20000
  60. #define CFG_ENV_SECT_SIZE 0x20000
  61. #define CFG_ENV_OFFSET 0x340000
  62. #define CFG_ENV_ADDR (XPAR_FLASH_MEM0_BASEADDR+CFG_ENV_OFFSET)
  63. /*Misc*/
  64. #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
  65. #define CFG_LONGHELP /* undef to save memory */
  66. #define CFG_PROMPT "board:/# " /* Monitor Command Prompt */
  67. #if defined(CONFIG_CMD_KGDB)
  68. #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
  69. #else
  70. #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
  71. #endif
  72. #define CFG_PBSIZE ( CFG_CBSIZE + sizeof( CFG_PROMPT ) + 16 )
  73. #define CFG_MAXARGS 16 /* max number of command args */
  74. #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
  75. #define CFG_MEMTEST_START 0x00400000 /* memtest works on */
  76. #define CFG_MEMTEST_END 0x00C00000 /* 4 ... 12 MB in DRAM */
  77. #define CFG_LOAD_ADDR 0x00400000 /* default load address */
  78. #define CFG_EXTBDINFO 1 /* Extended board_into (bd_t) */
  79. #define CFG_HZ 1000 /* decrementer freq: 1 ms ticks */
  80. #define CONFIG_CMDLINE_EDITING /* add command line history */
  81. #define CONFIG_AUTO_COMPLETE /* add autocompletion support */
  82. #define CONFIG_LOOPW /* enable loopw command */
  83. #define CONFIG_MX_CYCLIC /* enable mdc/mwc commands */
  84. #define CONFIG_ZERO_BOOTDELAY_CHECK /* check for keypress on bootdelay==0 */
  85. #define CONFIG_VERSION_VARIABLE /* include version env variable */
  86. #define CFG_CONSOLE_INFO_QUIET /* don't print console @ startup */
  87. #define CFG_HUSH_PARSER /* Use the HUSH parser */
  88. #define CFG_PROMPT_HUSH_PS2 "> "
  89. #define CONFIG_LOADS_ECHO /* echo on for serial download */
  90. #define CFG_LOADS_BAUD_CHANGE /* allow baudrate change */
  91. #define CFG_BOOTMAPSZ ( 8 << 20 ) /* Initial Memory map for Linux */
  92. #define CONFIG_PREBOOT "echo U-Boot is up and runnining;"
  93. /*Stack*/
  94. #define CFG_INIT_RAM_ADDR 0x800000 /* Initial RAM address */
  95. #define CFG_INIT_RAM_END 0x2000 /* End of used area in RAM */
  96. #define CFG_GBL_DATA_SIZE 128 /* num bytes initial data */
  97. #define CFG_GBL_DATA_OFFSET ( CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE )
  98. #define CFG_INIT_SP_OFFSET CFG_GBL_DATA_OFFSET
  99. /*Speed*/
  100. #define CONFIG_SYS_CLK_FREQ XPAR_CORE_CLOCK_FREQ_HZ
  101. /*Flash*/
  102. #define CFG_FLASH_BASE XPAR_FLASH_MEM0_BASEADDR
  103. #define CFG_FLASH_SIZE (32*1024*1024)
  104. #define CFG_FLASH_CFI 1
  105. #define CFG_FLASH_CFI_DRIVER 1
  106. #define CFG_FLASH_EMPTY_INFO 1
  107. #define CFG_MAX_FLASH_BANKS 1
  108. #define CFG_MAX_FLASH_SECT 259
  109. #define CFG_FLASH_PROTECTION
  110. #define MTDIDS_DEFAULT "nor0=ml507-flash"
  111. #define MTDPARTS_DEFAULT "mtdparts=ml507-flash:-(user)"
  112. #endif /* __CONFIG_H */