zynq.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*
  2. * (C) Copyright 2012 Michal Simek <monstr@monstr.eu>
  3. *
  4. * See file CREDITS for list of people who contributed to this
  5. * project.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  20. * MA 02111-1307 USA
  21. */
  22. #ifndef __CONFIG_ZYNQ_H
  23. #define __CONFIG_ZYNQ_H
  24. #define CONFIG_ARMV7 /* This is an ARM V7 CPU core */
  25. #define CONFIG_ZYNQ
  26. /* CPU clock */
  27. #define CONFIG_CPU_FREQ_HZ 800000000
  28. #define CONFIG_SYS_HZ 1000
  29. /* Ram */
  30. #define CONFIG_NR_DRAM_BANKS 1
  31. #define CONFIG_SYS_TEXT_BASE 0
  32. #define CONFIG_SYS_SDRAM_BASE 0
  33. #define CONFIG_SYS_SDRAM_SIZE 0x40000000
  34. #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE
  35. #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x1000)
  36. /* The following table includes the supported baudrates */
  37. #define CONFIG_SYS_BAUDRATE_TABLE \
  38. {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400}
  39. #define CONFIG_BAUDRATE 115200
  40. /* XPSS Serial driver */
  41. #define CONFIG_ZYNQ_SERIAL
  42. #define CONFIG_ZYNQ_SERIAL_BASEADDR0 0xE0001000
  43. #define CONFIG_ZYNQ_SERIAL_BAUDRATE0 CONFIG_BAUDRATE
  44. #define CONFIG_ZYNQ_SERIAL_CLOCK0 50000000
  45. /* SCU timer address is hardcoded */
  46. #define CONFIG_SCUTIMER_BASEADDR 0xF8F00600
  47. /* Ethernet driver */
  48. #define CONFIG_NET_MULTI
  49. #define CONFIG_ZYNQ_GEM
  50. #define CONFIG_ZYNQ_GEM_BASEADDR0 0xE000B000
  51. #define CONFIG_BOOTP_SERVERIP
  52. #define CONFIG_BOOTP_BOOTPATH
  53. #define CONFIG_BOOTP_GATEWAY
  54. #define CONFIG_BOOTP_HOSTNAME
  55. #define CONFIG_BOOTP_MAY_FAIL
  56. /* MII and Phylib */
  57. #define CONFIG_MII
  58. #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
  59. #define CONFIG_PHYLIB
  60. #define CONFIG_PHY_MARVELL
  61. /* Environment */
  62. #define CONFIG_ENV_IS_NOWHERE
  63. #define CONFIG_ENV_SIZE 0x10000
  64. #define CONFIG_SYS_NO_FLASH
  65. #define CONFIG_SYS_MALLOC_LEN 0x400000
  66. #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_SDRAM_BASE
  67. #define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_MALLOC_LEN
  68. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \
  69. CONFIG_SYS_INIT_RAM_SIZE - \
  70. GENERATED_GBL_DATA_SIZE)
  71. #define CONFIG_SYS_PROMPT "U-Boot> "
  72. #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
  73. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
  74. sizeof(CONFIG_SYS_PROMPT) + 16)
  75. #define CONFIG_SYS_LOAD_ADDR 0
  76. #define CONFIG_SYS_MAXARGS 15 /* max number of command args */
  77. #define CONFIG_SYS_LONGHELP
  78. #define CONFIG_AUTO_COMPLETE
  79. #define CONFIG_CMDLINE_EDITING
  80. #define CONFIG_SYS_HUSH_PARSER
  81. #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
  82. /* OF */
  83. #define CONFIG_FIT
  84. #define CONFIG_OF_LIBFDT
  85. /* Commands */
  86. #include <config_cmd_default.h>
  87. #define CONFIG_CMD_PING
  88. #define CONFIG_CMD_DHCP
  89. #define CONFIG_CMD_MII
  90. #endif /* __CONFIG_ZYNQ_H */