devkit3250.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. * Embest/Timll DevKit3250 board configuration file
  3. *
  4. * Copyright (C) 2011 Vladimir Zapolskiy <vz@mleia.com>
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version 2
  9. * of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  19. * MA 02110-1301, USA.
  20. */
  21. #ifndef __CONFIG_DEVKIT3250_H__
  22. #define __CONFIG_DEVKIT3250_H__
  23. /* SoC and board defines */
  24. #include <asm/sizes.h>
  25. #include <asm/arch/cpu.h>
  26. /*
  27. * Define DevKit3250 machine type by hand until it lands in mach-types
  28. */
  29. #define MACH_TYPE_DEVKIT3250 3697
  30. #define CONFIG_MACH_TYPE MACH_TYPE_DEVKIT3250
  31. #define CONFIG_SYS_ICACHE_OFF
  32. #define CONFIG_SYS_DCACHE_OFF
  33. #define CONFIG_SKIP_LOWLEVEL_INIT
  34. #define CONFIG_BOARD_EARLY_INIT_F
  35. /*
  36. * Memory configurations
  37. */
  38. #define CONFIG_NR_DRAM_BANKS 1
  39. #define CONFIG_STACKSIZE SZ_32K
  40. #define CONFIG_SYS_MALLOC_LEN SZ_1M
  41. #define CONFIG_SYS_GBL_DATA_SIZE 128
  42. #define CONFIG_SYS_SDRAM_BASE EMC_DYCS0_BASE
  43. #define CONFIG_SYS_SDRAM_SIZE SZ_64M
  44. #define CONFIG_SYS_TEXT_BASE 0x83FA0000
  45. #define CONFIG_SYS_MEMTEST_START (CONFIG_SYS_SDRAM_BASE + SZ_32K)
  46. #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_TEXT_BASE - SZ_1M)
  47. #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_32K)
  48. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_4K \
  49. - GENERATED_GBL_DATA_SIZE)
  50. /*
  51. * Serial Driver
  52. */
  53. #define CONFIG_SYS_LPC32XX_UART 2 /* UART2 */
  54. #define CONFIG_BAUDRATE 115200
  55. /*
  56. * NOR Flash
  57. */
  58. #define CONFIG_CMD_FLASH
  59. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  60. #define CONFIG_SYS_MAX_FLASH_SECT 71
  61. #define CONFIG_SYS_FLASH_BASE EMC_CS0_BASE
  62. #define CONFIG_SYS_FLASH_SIZE SZ_4M
  63. #define CONFIG_SYS_FLASH_CFI
  64. /*
  65. * U-Boot General Configurations
  66. */
  67. #define CONFIG_SYS_LONGHELP
  68. #define CONFIG_SYS_PROMPT "=> "
  69. #define CONFIG_SYS_CBSIZE 1024
  70. #define CONFIG_SYS_PBSIZE \
  71. (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
  72. #define CONFIG_SYS_MAXARGS 16
  73. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  74. #define CONFIG_AUTO_COMPLETE
  75. #define CONFIG_CMDLINE_EDITING
  76. #define CONFIG_VERSION_VARIABLE
  77. #define CONFIG_DISPLAY_CPUINFO
  78. #define CONFIG_DOS_PARTITION
  79. #define CONFIG_ENV_IS_NOWHERE
  80. #define CONFIG_ENV_SIZE SZ_128K
  81. /*
  82. * U-Boot Commands
  83. */
  84. #include <config_cmd_default.h>
  85. #define CONFIG_CMD_CACHE
  86. /*
  87. * Boot Linux
  88. */
  89. #define CONFIG_CMDLINE_TAG
  90. #define CONFIG_SETUP_MEMORY_TAGS
  91. #define CONFIG_ZERO_BOOTDELAY_CHECK
  92. #define CONFIG_BOOTDELAY 3
  93. #define CONFIG_BOOTFILE "uImage"
  94. #define CONFIG_BOOTARGS "console=ttyS2,115200n8"
  95. #define CONFIG_LOADADDR 0x80008000
  96. /*
  97. * Include SoC specific configuration
  98. */
  99. #include <asm/arch/config.h>
  100. #endif /* __CONFIG_DEVKIT3250_H__*/