lpc2292sodimm.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. /*
  2. * (C) Copyright 2000
  3. * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
  4. * Marius Groeger <mgroeger@sysgo.de>
  5. *
  6. * Configuation settings for the EP7312 board.
  7. *
  8. * Modified to work on Armadillo HT1070 ARM720T board
  9. * (C) Copyright 2005 Rowel Atienza rowel@diwalabs.com
  10. *
  11. * See file CREDITS for list of people who contributed to this
  12. * project.
  13. *
  14. * This program is free software; you can redistribute it and/or
  15. * modify it under the terms of the GNU General Public License as
  16. * published by the Free Software Foundation; either version 2 of
  17. * the License, or (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program; if not, write to the Free Software
  26. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  27. * MA 02111-1307 USA
  28. */
  29. #ifndef __CONFIG_H
  30. #define __CONFIG_H
  31. /*
  32. * If we are developing, we might want to start armboot from ram
  33. * so we MUST NOT initialize critical regs like mem-timing ...
  34. */
  35. #undef CONFIG_INIT_CRITICAL /* undef for developing */
  36. #undef CONFIG_SKIP_LOWLEVEL_INIT
  37. #undef CONFIG_SKIP_RELOCATE_UBOOT
  38. /*
  39. * High Level Configuration Options
  40. * (easy to change)
  41. */
  42. #define CONFIG_ARM7 1 /* This is a ARM7 CPU */
  43. #define CONFIG_ARM_THUMB 1 /* this is an ARM720TDMI */
  44. #define CONFIG_LPC2292
  45. #undef CONFIG_ARM7_REVD /* disable ARM720 REV.D Workarounds */
  46. #undef CONFIG_USE_IRQ /* don't need them anymore */
  47. /*
  48. * Size of malloc() pool
  49. */
  50. #define CFG_MALLOC_LEN (CFG_ENV_SIZE + 128*1024)
  51. #define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
  52. /*
  53. * Hardware drivers
  54. */
  55. /*
  56. * select serial console configuration
  57. */
  58. #define CONFIG_SERIAL1 1 /* we use Serial line 1 */
  59. /* allow to overwrite serial and ethaddr */
  60. #define CONFIG_ENV_OVERWRITE
  61. #define CONFIG_BAUDRATE 115200
  62. #define CONFIG_BOOTP_MASK (CONFIG_BOOTP_DEFAULT|CONFIG_BOOTP_BOOTFILESIZE)
  63. /*
  64. * Supported commands
  65. */
  66. #define CONFIG_COMMANDS (CONFIG_CMD_DFL | \
  67. CFG_CMD_DHCP | \
  68. CFG_CMD_FAT | \
  69. CFG_CMD_MMC | \
  70. CFG_CMD_NET | \
  71. CFG_CMD_PING)
  72. #define CONFIG_MAC_PARTITION
  73. #define CONFIG_DOS_PARTITION
  74. /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
  75. #include <cmd_confdefs.h>
  76. #define CONFIG_BOOTDELAY 5
  77. /*
  78. * Miscellaneous configurable options
  79. */
  80. #define CFG_LONGHELP /* undef to save memory */
  81. #define CFG_PROMPT "LPC2292SODIMM # " /* Monitor Command Prompt */
  82. #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
  83. #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
  84. #define CFG_MAXARGS 16 /* max number of command args */
  85. #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
  86. #define CFG_MEMTEST_START 0x40000000 /* memtest works on */
  87. #define CFG_MEMTEST_END 0x40000000 /* 4 ... 8 MB in DRAM */
  88. #undef CFG_CLKS_IN_HZ /* everything, incl board info, in Hz */
  89. #define CFG_LOAD_ADDR 0x00040000 /* default load address for armadillo: kernel img is here*/
  90. #define CFG_SYS_CLK_FREQ 58982400 /* Hz */
  91. #define CFG_HZ 2048 /* decrementer freq in Hz */
  92. /* valid baudrates */
  93. #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
  94. /*-----------------------------------------------------------------------
  95. * Stack sizes
  96. *
  97. * The stack sizes are set up in start.S using the settings below
  98. */
  99. #define CONFIG_STACKSIZE (128*1024) /* regular stack */
  100. #ifdef CONFIG_USE_IRQ
  101. #define CONFIG_STACKSIZE_IRQ (4*1024) /* IRQ stack */
  102. #define CONFIG_STACKSIZE_FIQ (4*1024) /* FIQ stack */
  103. #endif
  104. /*-----------------------------------------------------------------------
  105. * Physical Memory Map
  106. */
  107. #define CONFIG_NR_DRAM_BANKS 1 /* we have 1 bank of DRAM */
  108. #define PHYS_SDRAM_1 0x81000000 /* SDRAM Bank #1 */
  109. #define PHYS_SDRAM_1_SIZE 0x00800000 /* 8 MB SDRAM */
  110. #define PHYS_FLASH_1 0x80000000 /* Flash Bank #1 */
  111. #define PHYS_FLASH_SIZE 0x00200000 /* 2 MB */
  112. #define CFG_FLASH_BASE PHYS_FLASH_1
  113. /*-----------------------------------------------------------------------
  114. * FLASH and environment organization
  115. */
  116. #define CFG_MAX_FLASH_BANKS 2 /* max number of memory banks */
  117. #define CFG_MAX_FLASH_SECT 1024 /* max number of sectors on one chip */
  118. /* timeout values are in ticks */
  119. #define CFG_FLASH_ERASE_TOUT (2*CFG_HZ) /* Timeout for Flash Erase */
  120. #define CFG_FLASH_WRITE_TOUT (2*CFG_HZ) /* Timeout for Flash Write */
  121. #define CFG_ENV_IS_IN_FLASH 1
  122. #define CFG_ENV_ADDR (0x0 + 0x3C000) /* Addr of Environment Sector */
  123. #define CFG_ENV_SIZE 0x2000 /* Total Size of Environment Sector */
  124. #define CONFIG_CMDLINE_TAG
  125. #define CONFIG_SETUP_MEMORY_TAGS
  126. #define CONFIG_INITRD_TAG
  127. #define CONFIG_MMC 1
  128. #endif /* __CONFIG_H */