xilinx-ppc.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. *
  6. * (C) Copyright 2008
  7. * Georg Schardt <schardt@team-ctech.de>
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation, either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. #ifndef __CONFIG_XLX_H
  22. #define __CONFIG_XLX_H
  23. /*
  24. #define DEBUG
  25. #define ET_DEBUG
  26. */
  27. /*Mem Map*/
  28. #define CONFIG_SYS_SDRAM_BASE 0x0
  29. #define CONFIG_SYS_MONITOR_BASE TEXT_BASE
  30. #define CONFIG_SYS_MONITOR_LEN (192 * 1024)
  31. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128 * 1024)
  32. /*Cmd*/
  33. #include <config_cmd_default.h>
  34. #define CONFIG_CMD_ASKENV
  35. #define CONFIG_CMD_CACHE
  36. #define CONFIG_CMD_DIAG
  37. #define CONFIG_CMD_ELF
  38. #define CONFIG_CMD_IRQ
  39. #define CONFIG_CMD_REGINFO
  40. #undef CONFIG_CMD_JFFS2
  41. #undef CONFIG_JFFS2_CMDLINE
  42. #undef CONFIG_CMD_SPI
  43. #undef CONFIG_CMD_I2C
  44. #undef CONFIG_CMD_DTT
  45. #undef CONFIG_CMD_NET
  46. #undef CONFIG_CMD_PING
  47. #undef CONFIG_CMD_DHCP
  48. #undef CONFIG_CMD_EEPROM
  49. #undef CONFIG_CMD_IMLS
  50. /*Misc*/
  51. #define CONFIG_BOOTDELAY 5/* autoboot after 5 seconds */
  52. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  53. #if defined(CONFIG_CMD_KGDB)
  54. #define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */
  55. #else
  56. #define CONFIG_SYS_CBSIZE 256/* Console I/O Buffer Size */
  57. #endif
  58. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE +\
  59. sizeof(CONFIG_SYS_PROMPT) + 16)
  60. #define CONFIG_SYS_MAXARGS 16
  61. /* max number of command args */
  62. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  63. /* Boot Argument Buffer Size */
  64. #define CONFIG_SYS_MEMTEST_START 0x00400000
  65. /* memtest works on */
  66. #define CONFIG_SYS_MEMTEST_END 0x00C00000
  67. /* 4 ... 12 MB in DRAM */
  68. #define CONFIG_SYS_LOAD_ADDR 0x00400000
  69. /* default load address */
  70. #define CONFIG_SYS_EXTBDINFO 1
  71. /* Extended board_into (bd_t) */
  72. #define CONFIG_SYS_HZ 1000
  73. /* decrementer freq: 1 ms ticks */
  74. #define CONFIG_CMDLINE_EDITING /* add command line history */
  75. #define CONFIG_AUTO_COMPLETE /* add autocompletion support */
  76. #define CONFIG_LOOPW /* enable loopw command */
  77. #define CONFIG_MX_CYCLIC /* enable mdc/mwc commands */
  78. #define CONFIG_ZERO_BOOTDELAY_CHECK /* check for keypress on bootdelay==0 */
  79. #define CONFIG_VERSION_VARIABLE /* include version env variable */
  80. #define CONFIG_SYS_CONSOLE_INFO_QUIET /* don't print console @ startup */
  81. #define CONFIG_SYS_HUSH_PARSER /* Use the HUSH parser */
  82. #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
  83. #define CONFIG_LOADS_ECHO /* echo on for serial download */
  84. #define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate change */
  85. #define CONFIG_SYS_BOOTMAPSZ (8 << 20)
  86. /* Initial Memory map for Linux */
  87. /*Stack*/
  88. #define CONFIG_SYS_INIT_RAM_ADDR 0x800000/* Initial RAM address */
  89. #define CONFIG_SYS_INIT_RAM_END 0x2000 /* End of used area in RAM */
  90. #define CONFIG_SYS_GBL_DATA_SIZE 128 /* num bytes initial data */
  91. #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END \
  92. - CONFIG_SYS_GBL_DATA_SIZE)
  93. #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
  94. /*Speed*/
  95. #define CONFIG_SYS_CLK_FREQ XPAR_CORE_CLOCK_FREQ_HZ
  96. /*Flash*/
  97. #ifdef XPAR_FLASH_MEM0_BASEADDR
  98. #define CONFIG_SYS_FLASH_BASE XPAR_FLASH_MEM0_BASEADDR
  99. #define CONFIG_SYS_FLASH_CFI 1
  100. #define CONFIG_FLASH_CFI_DRIVER 1
  101. #define CONFIG_SYS_FLASH_EMPTY_INFO 1
  102. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  103. #define CONFIG_SYS_FLASH_PROTECTION
  104. #define CONFIG_CMD_JFFS2
  105. #define CONFIG_JFFS2_CMDLINE
  106. #else
  107. #define CONFIG_ENV_IS_NOWHERE
  108. #define CONFIG_SYS_NO_FLASH
  109. #endif
  110. /* serial communication */
  111. #ifdef XPAR_UARTLITE_0_BASEADDR
  112. #define CONFIG_XILINX_UARTLITE
  113. #define CONFIG_SERIAL_BASE XPAR_UARTLITE_0_BASEADDR
  114. #define CONFIG_BAUDRATE XPAR_UARTLITE_0_BAUDRATE
  115. #define CONFIG_SYS_BAUDRATE_TABLE { CONFIG_BAUDRATE }
  116. #else
  117. #ifdef XPAR_UARTNS550_0_BASEADDR
  118. #define CONFIG_SYS_NS16550
  119. #define CONFIG_SYS_NS16550_SERIAL
  120. #define CONFIG_SYS_NS16550_REG_SIZE 4
  121. #define CONFIG_CONS_INDEX 1
  122. #define CONFIG_SYS_NS16550_COM1 XPAR_UARTNS550_0_BASEADDR
  123. #define CONFIG_SYS_NS16550_CLK XPAR_UARTNS550_0_CLOCK_FREQ_HZ
  124. #define CONFIG_BAUDRATE 115200
  125. #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 115200 }
  126. #endif
  127. #endif
  128. #endif /* __CONFIG_H */