suzaku.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * (C) Copyright 2004 Atmark Techno, Inc.
  3. *
  4. * Yasushi SHOJI <yashi@atmark-techno.com>
  5. *
  6. * See file CREDITS for list of people who contributed to this
  7. * project.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of
  12. * the License, or (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. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  22. * MA 02111-1307 USA
  23. */
  24. #ifndef __CONFIG_H
  25. #define __CONFIG_H
  26. /*
  27. * High Level Configuration Options
  28. * (easy to change)
  29. */
  30. #define CONFIG_MICROBLAZE 1 /* This is an MicroBlaze CPU */
  31. #define CONFIG_SUZAKU 1 /* on an SUZAKU Board */
  32. /*-----------------------------------------------------------------------
  33. * Start addresses for the final memory configuration
  34. * (Set up by the startup code)
  35. * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0
  36. */
  37. #define CONFIG_SYS_SDRAM_BASE 0x80000000
  38. #define CONFIG_SYS_SDRAM_SIZE 0x01000000
  39. #define CONFIG_SYS_FLASH_BASE 0xfff00000
  40. #define CONFIG_SYS_FLASH_SIZE 0x00400000
  41. #define CONFIG_SYS_RESET_ADDRESS 0xfff00100
  42. #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */
  43. #define CONFIG_SYS_MONITOR_BASE (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE - (1024 * 1024))
  44. #define CONFIG_SYS_MALLOC_LEN (256 << 10) /* Reserve 256 kB for malloc */
  45. #define CONFIG_SYS_MALLOC_BASE (CONFIG_SYS_MONITOR_BASE - (1024 * 1024))
  46. #define CONFIG_XILINX_UARTLITE
  47. #define CONFIG_BAUDRATE 115200
  48. #define CONFIG_SYS_BAUDRATE_TABLE { 115200 }
  49. /* System Register (GPIO) */
  50. #define MICROBLAZE_SYSREG_BASE_ADDR 0xFFFFA000
  51. #define MICROBLAZE_SYSREG_RECONFIGURE (1 << 0)
  52. /*
  53. * Command line configuration.
  54. */
  55. #include <config_cmd_default.h>
  56. #undef CONFIG_CMD_BDI
  57. #undef CONFIG_CMD_SAVEENV
  58. #undef CONFIG_CMD_MEMORY
  59. #undef CONFIG_CMD_NET
  60. #undef CONFIG_CMD_MISC
  61. #define CONFIG_SYS_UART1_BASE (0xFFFF2000)
  62. #define CONFIG_SERIAL_BASE CONFIG_SYS_UART1_BASE
  63. /*
  64. * Miscellaneous configurable options
  65. */
  66. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  67. #define CONFIG_SYS_PROMPT "SUZAKU> " /* Monitor Command Prompt */
  68. #define CONFIG_SYS_CBSIZE 256
  69. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
  70. #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
  71. #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE /* default load address */
  72. /*-----------------------------------------------------------------------
  73. * FLASH organization
  74. */
  75. #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */
  76. #define CONFIG_SYS_MAX_FLASH_SECT 1 /* max number of sectors on one chip */
  77. /*-----------------------------------------------------------------------
  78. * NVRAM organization
  79. */
  80. #define CONFIG_ENV_IS_NOWHERE 1
  81. #define CONFIG_ENV_SIZE 0x10000 /* Total Size of Environment Sector */
  82. #define CONFIG_ENV_SECT_SIZE 0x10000 /* see README - env sector total size */
  83. /*-----------------------------------------------------------------------
  84. * Definitions for initial stack pointer and data area (in DPRAM)
  85. */
  86. #define CONFIG_SYS_INIT_RAM_ADDR 0x80000000 /* inside of SDRAM */
  87. #define CONFIG_SYS_INIT_RAM_END 0x2000 /* End of used area in RAM */
  88. #define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
  89. #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
  90. #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
  91. #define XILINX_CLOCK_FREQ 50000000
  92. #define CONFIG_XILINX_CLOCK_FREQ XILINX_CLOCK_FREQ
  93. #endif /* __CONFIG_H */