xilinx-ppc405.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /*
  2. *
  3. * (C) Copyright 2008
  4. * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es
  5. * This work has been supported by: QTechnology http://qtec.com/
  6. *
  7. * (C) Copyright 2008
  8. * Georg Schardt <schardt@team-ctech.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. #ifndef __CONFIG_H
  29. #define __CONFIG_H
  30. /* cpu parameter */
  31. #define CONFIG_4xx 1
  32. #define CONFIG_405 1
  33. #define CONFIG_XILINX_405 1
  34. /* memory map */
  35. #define CONFIG_SYS_SDRAM_BASE 0x0
  36. #define CONFIG_SYS_MONITOR_BASE TEXT_BASE
  37. #define CONFIG_SYS_MONITOR_LEN (192 * 1024)
  38. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128 * 1024)
  39. /* u-boot commands configuration */
  40. #include <config_cmd_default.h>
  41. /*Misc*/
  42. #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
  43. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  44. #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
  45. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE \
  46. + sizeof(CONFIG_SYS_PROMPT) + 16)
  47. #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
  48. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE/* Boot Argument Buffer Size */
  49. #define CONFIG_SYS_MEMTEST_START 0x00400000 /* memtest works on */
  50. #define CONFIG_SYS_MEMTEST_END 0x00C00000 /* 4 ... 12 MB in DRAM */
  51. #define CONFIG_SYS_LOAD_ADDR 0x01000000 /* default load address */
  52. #define CONFIG_SYS_EXTBDINFO 1 /* Extended board_into (bd_t) */
  53. #define CONFIG_SYS_HZ 1000 /* decrementer freq: 1 ms ticks */
  54. #define CONFIG_CMDLINE_EDITING /* add command line history */
  55. #define CONFIG_AUTO_COMPLETE /* add autocompletion support */
  56. #define CONFIG_LOOPW /* enable loopw command */
  57. #define CONFIG_MX_CYCLIC /* enable mdc/mwc commands */
  58. #define CONFIG_ZERO_BOOTDELAY_CHECK /* check for keypress on bootdelay==0 */
  59. #define CONFIG_VERSION_VARIABLE /* include version env variable */
  60. #define CONFIG_SYS_CONSOLE_INFO_QUIET /* don't print console @ startup */
  61. #define CONFIG_SYS_HUSH_PARSER /* Use the HUSH parser */
  62. #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
  63. #define CONFIG_LOADS_ECHO /* echo on for serial download */
  64. #define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate change */
  65. #define CONFIG_SYS_BOOTMAPSZ (8 << 20)
  66. /* Initial Memory map for Linux */
  67. #define CONFIG_SYS_CACHELINE_SIZE 32
  68. #define CONFIG_SYS_CACHELINE_SHIFT 2
  69. /* stack */
  70. #define CONFIG_SYS_INIT_RAM_ADDR 0x800000 /* inside of SDRAM */
  71. #define CONFIG_SYS_INIT_RAM_END 0x2000 /* End of used area in RAM */
  72. #define CONFIG_SYS_GBL_DATA_SIZE 128
  73. #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - \
  74. CONFIG_SYS_GBL_DATA_SIZE)
  75. #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
  76. #define CONFIG_SYS_FLASH_CF 1
  77. #define CONFIG_FLASH_CFI_DRIVER 1
  78. #define CONFIG_SYS_FLASH_EMPTY_INFO 1
  79. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  80. #define CONFIG_SYS_FLASH_PROTECTION
  81. /* serial communication */
  82. #ifdef XPAR_UARTLITE_0_BASEADDR
  83. #define CONFIG_XILINX_UARTLITE
  84. #define CONFIG_SERIAL_BASE XPAR_UARTLITE_0_BASEADDR
  85. #define CONFIG_BAUDRATE XPAR_UARTLITE_0_BAUDRATE
  86. #define CONFIG_SYS_BAUDRATE_TABLE { CONFIG_BAUDRATE }
  87. #else
  88. #ifdef XPAR_UARTNS550_0_BASEADDR
  89. #define CONFIG_SYS_NS16550
  90. #define CONFIG_SYS_NS16550_SERIAL
  91. #define CONFIG_SYS_NS16550_REG_SIZE 4
  92. #define CONFIG_CONS_INDEX 1
  93. #define CONFIG_SYS_NS16550_COM1 XPAR_UARTNS550_0_BASEADDR
  94. #define CONFIG_SYS_NS16550_CLK XPAR_UARTNS550_0_CLOCK_FREQ_HZ
  95. #define CONFIG_BAUDRATE 115200
  96. #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 115200 }
  97. #endif
  98. #endif
  99. /* cmd config */
  100. #define CONFIG_CMD_ASKENV
  101. #define CONFIG_CMD_CACHE
  102. #define CONFIG_CMD_DIAG
  103. #define CONFIG_CMD_ELF
  104. #define CONFIG_CMD_IRQ
  105. #define CONFIG_CMD_REGINFO
  106. #define CONFIG_CMD_JFFS2
  107. #define CONFIG_JFFS2_CMDLINE
  108. #undef CONFIG_CMD_SPI
  109. #undef CONFIG_CMD_I2C
  110. #undef CONFIG_CMD_DTT
  111. #undef CONFIG_CMD_NET
  112. #undef CONFIG_CMD_PING
  113. #undef CONFIG_CMD_DHCP
  114. #undef CONFIG_CMD_EEPROM
  115. #undef CONFIG_CMD_IMLS
  116. #endif