wepep250.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. /*
  2. * Copyright (C) 2003 ETC s.r.o.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License as
  6. * published by the Free Software Foundation; either version 2 of
  7. * the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  17. * MA 02111-1307 USA
  18. *
  19. * Written by Peter Figuli <peposh@etc.sk>, 2003.
  20. *
  21. */
  22. #ifndef __CONFIG_H
  23. #define __CONFIG_H
  24. #define CONFIG_PXA250 1 /* this is an PXA250 CPU */
  25. #define CONFIG_WEPEP250 1 /* config for wepep250 board */
  26. #undef CONFIG_USE_IRQ /* don't need use IRQ/FIQ */
  27. /*
  28. * Select serial console configuration
  29. */
  30. #define CONFIG_BTUART 1 /* BTUART is default on WEP dev board */
  31. #define CONFIG_BAUDRATE 115200
  32. /*
  33. * Definition of u-boot build in commands. Check out CONFIG_CMD_DFL if
  34. * neccessary in include/cmd_confdefs.h file. (Un)comment for getting
  35. * functionality or size of u-boot code.
  36. */
  37. #define CONFIG_COMMANDS (CONFIG_CMD_DFL \
  38. & ~CFG_CMD_NET \
  39. & ~CFG_CMD_LOADS \
  40. & ~CFG_CMD_CONSOLE \
  41. & ~CFG_CMD_AUTOSCRIPT \
  42. /* | CFG_CMD_JFFS2 */ \
  43. )
  44. #include <cmd_confdefs.h>
  45. /*
  46. * Boot options. Setting delay to -1 stops autostart count down.
  47. * NOTE: Sending parameters to kernel depends on kernel version and
  48. * 2.4.19-rmk6-pxa1 patch used while my u-boot coding didn't accept
  49. * parameters at all! Do not get confused by them so.
  50. */
  51. #define CONFIG_BOOTDELAY -1
  52. #define CONFIG_BOOTARGS "root=/dev/mtdblock2 mem=32m console=ttyS01,115200n8"
  53. #define CONFIG_BOOTCOMMAND "bootm 40000"
  54. /*
  55. * General options for u-boot. Modify to save memory foot print
  56. */
  57. #define CFG_LONGHELP /* undef saves memory */
  58. #define CFG_PROMPT "WEP> " /* prompt string */
  59. #define CFG_CBSIZE 256 /* console I/O buffer */
  60. #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* print buffer size */
  61. #define CFG_MAXARGS 16 /* max command args */
  62. #define CFG_BARGSIZE CFG_CBSIZE /* boot args buf size */
  63. #define CFG_MEMTEST_START 0xa0400000 /* memtest test area */
  64. #define CFG_MEMTEST_END 0xa0800000
  65. #undef CFG_CLKS_IN_HZ /* use HZ for freq. display */
  66. #define CFG_HZ 3686400 /* incrementer freq: 3.6864 MHz */
  67. #define CFG_CPUSPEED 0x141 /* core clock - register value */
  68. #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
  69. /*
  70. * Definitions related to passing arguments to kernel.
  71. */
  72. #define CONFIG_CMDLINE_TAG 1 /* send commandline to Kernel */
  73. #define CONFIG_SETUP_MEMORY_TAGS 1 /* send memory definition to kernel */
  74. #undef CONFIG_INITRD_TAG /* do not send initrd params */
  75. #undef CONFIG_VFD /* do not send framebuffer setup */
  76. /*
  77. * Malloc pool need to host env + 128 Kb reserve for other allocations.
  78. */
  79. #define CFG_MALLOC_LEN (CFG_ENV_SIZE + (128<<10) )
  80. #define CONFIG_STACKSIZE (120<<10) /* stack size */
  81. #ifdef CONFIG_USE_IRQ
  82. #define CONFIG_STACKSIZE_IRQ (4<<10) /* IRQ stack */
  83. #define CONFIG_STACKSIZE_FIQ (4<<10) /* FIQ stack */
  84. #endif
  85. /*
  86. * SDRAM Memory Map
  87. */
  88. #define CONFIG_NR_DRAM_BANKS 1 /* we have 1 bank of SDRAM */
  89. #define WEP_SDRAM_1 0xa0000000 /* SDRAM bank #1 */
  90. #define WEP_SDRAM_1_SIZE 0x02000000 /* 32 MB ( 2 chip ) */
  91. #define WEP_SDRAM_2 0xa2000000 /* SDRAM bank #2 */
  92. #define WEP_SDRAM_2_SIZE 0x00000000 /* 0 MB */
  93. #define WEP_SDRAM_3 0xa8000000 /* SDRAM bank #3 */
  94. #define WEP_SDRAM_3_SIZE 0x00000000 /* 0 MB */
  95. #define WEP_SDRAM_4 0xac000000 /* SDRAM bank #4 */
  96. #define WEP_SDRAM_4_SIZE 0x00000000 /* 0 MB */
  97. #define CFG_DRAM_BASE 0xa0000000
  98. #define CFG_DRAM_SIZE 0x02000000
  99. /* Uncomment used SDRAM chip */
  100. #define WEP_SDRAM_K4S281633
  101. /*#define WEP_SDRAM_K4S561633*/
  102. /*
  103. * Configuration for FLASH memory
  104. */
  105. #define CFG_MAX_FLASH_BANKS 1 /* FLASH banks count (not chip count)*/
  106. #define CFG_MAX_FLASH_SECT 128 /* number of sector in FLASH bank */
  107. #define WEP_FLASH_BUS_WIDTH 4 /* we use 32 bit FLASH memory... */
  108. #define WEP_FLASH_INTERLEAVE 2 /* ... made of 2 chips */
  109. #define WEP_FLASH_BANK_SIZE 0x2000000 /* size of one flash bank*/
  110. #define WEP_FLASH_SECT_SIZE 0x0040000 /* size of erase sector */
  111. #define WEP_FLASH_BASE 0x0000000 /* location of flash memory */
  112. #define WEP_FLASH_UNLOCK 1 /* perform hw unlock first */
  113. /* This should be defined if CFI FLASH device is present. Actually benefit
  114. is not so clear to me. In other words we can provide more informations
  115. to user, but this expects more complex flash handling we do not provide
  116. now.*/
  117. #undef CFG_FLASH_CFI
  118. #define CFG_FLASH_ERASE_TOUT (2*CFG_HZ) /* timeout for Erase operation */
  119. #define CFG_FLASH_WRITE_TOUT (2*CFG_HZ) /* timeout for Write operation */
  120. #define CFG_FLASH_BASE WEP_FLASH_BASE
  121. /*
  122. * This is setting for JFFS2 support in u-boot.
  123. * Right now there is no gain for user, but later on booting kernel might be
  124. * possible. Consider using XIP kernel running from flash to save RAM
  125. * footprint.
  126. * NOTE: Enable CFG_CMD_JFFS2 for JFFS2 support.
  127. */
  128. #define CFG_JFFS2_FIRST_BANK 0
  129. #define CFG_JFFS2_FIRST_SECTOR 5
  130. #define CFG_JFFS2_NUM_BANKS 1
  131. /*
  132. * Environment setup. Definitions of monitor location and size with
  133. * definition of environment setup ends up in 2 possibilities.
  134. * 1. Embeded environment - in u-boot code is space for environment
  135. * 2. Environment is read from predefined sector of flash
  136. * Right now we support 2. possiblity, but expecting no env placed
  137. * on mentioned address right now. This also needs to provide whole
  138. * sector for it - for us 256Kb is really waste of memory. U-boot uses
  139. * default env. and until kernel parameters could be sent to kernel
  140. * env. has no sense to us.
  141. */
  142. #define CFG_MONITOR_BASE PHYS_FLASH_1
  143. #define CFG_MONITOR_LEN 0x20000 /* 128kb ( 1 flash sector ) */
  144. #define CFG_ENV_IS_IN_FLASH 1
  145. #define CFG_ENV_ADDR 0x20000 /* absolute address for now */
  146. #define CFG_ENV_SIZE 0x2000
  147. #undef CONFIG_ENV_OVERWRITE /* env is not writable now */
  148. /*
  149. * Well this has to be defined, but on the other hand it is used differently
  150. * one may expect. For instance loadb command do not cares :-)
  151. * So advice is - do not relay on this...
  152. */
  153. #define CFG_LOAD_ADDR 0x40000
  154. #endif /* __CONFIG_H */