jornada.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. /*
  2. * Copyright 2010 (C)
  3. * Kristoffer Ericson <kristoffer.ericson@gmail.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  18. * MA 02111-1307 USA
  19. */
  20. #ifndef __CONFIG_H
  21. #define __CONFIG_H
  22. /*
  23. * High Level Configuration Options
  24. * (easy to change)
  25. */
  26. #define CONFIG_SA1110 1 /* This is an SA110 CPU */
  27. #define CONFIG_JORNADA700 1 /* on an HP Jornada 700 series */
  28. #define CONFIG_SYS_FLASH_PROTECTION 1
  29. #define CONFIG_SYS_TEXT_BASE 0xC1F00000
  30. /* we will never enable dcache, because we have to setup MMU first */
  31. #define CONFIG_SYS_NO_DCACHE
  32. #undef CONFIG_USE_IRQ
  33. /* Console setting */
  34. #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
  35. #define CONFIG_SETUP_MEMORY_TAGS 1
  36. #define CONFIG_INITRD_TAG 1
  37. /*
  38. * Size of malloc() pool
  39. */
  40. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
  41. /*
  42. * select serial console configuration
  43. */
  44. #define CONFIG_SA1100_SERIAL 1
  45. #define CONFIG_SERIAL3 1 /* we use serial 3 */
  46. #define CONFIG_BAUDRATE 19200
  47. #define CONFIG_LOADS_ECHO 1
  48. /*
  49. * Command line configuration.
  50. */
  51. #include <config_cmd_default.h>
  52. #define CONFIG_CMD_FLASH
  53. #define CONFIG_CMD_JFFS2
  54. #undef CONFIG_CMD_NET
  55. #undef CONFIG_CMD_NFS
  56. #undef CONFIG_CMD_FPGA
  57. #undef CONFIG_CMD_MISC
  58. #undef CONFIG_CMD_SETGETDCR
  59. #undef CONFIG_CMD_XIMG
  60. #define CONFIG_BOOTDELAY 5
  61. #define CONFIG_BOOTARGS "root=/dev/hda1 console=ttySA0,19200n8 console=tty1"
  62. #define CONFIG_BOOTCOMMAND "run boot_kernel"
  63. #define CONFIG_SYS_AUTOLOAD "n" /* No autoload */
  64. #define CONFIG_SYS_LOAD_ADDR 0xc0000000
  65. /*
  66. * Miscellaneous configurable options
  67. */
  68. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  69. #define CONFIG_SYS_PROMPT "HP Jornada# "
  70. #define CONFIG_SYS_CBSIZE 256 /* console buffsize */
  71. #define CONFIG_SYS_PBSIZE (256+sizeof(CONFIG_SYS_PROMPT)+16)
  72. #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
  73. #define CONFIG_SYS_BARGSIZE 256 /* Boot Argument Buffer Size */
  74. #define CONFIG_SYS_MEMTEST_START 0xc0040000 /* memtest works on */
  75. #define CONFIG_SYS_MEMTEST_END 0xc2000000 /* 4..128 MB */
  76. #define CONFIG_SYS_HZ 1000
  77. #define CONFIG_SYS_CPUSPEED 0x0a /* core clock 206MHz */
  78. #define CONFIG_SYS_BAUDRATE_TABLE { 19200, 38400, 57600, 115200 }
  79. /*-----------------------------------------------------------------------
  80. * Stack sizes
  81. *
  82. * The stack sizes are set up in start.S using the settings below
  83. */
  84. #define CONFIG_STACKSIZE (128*1024) /* regular stack */
  85. #define CONFIG_SYS_FLASH_CFI 1
  86. #define CONFIG_FLASH_CFI_DRIVER 1
  87. #define CONFIG_FLASH_CFI_WIDTH FLASH_CFI_32BIT
  88. #define CONFIG_SYS_FLASH_BASE 0x00000000
  89. #define CONFIG_SYS_FLASH_ERASE_TOUT (4096)
  90. #define CONFIG_SYS_FLASH_WRITE_TOUT (4096)
  91. #define CONFIG_SYS_FLASH_INCREMENT 0x02000000
  92. #define PHYS_FLASH_1 0x00000000 /* starts at 0x0 */
  93. #define PHYS_FLASH_SIZE 0x04000000 /* 64MB */
  94. #define PHYS_FLASH_SECT_SIZE 0x00040000 /* 256KB Sectors */
  95. #define CONFIG_SYS_MAX_FLASH_BANKS 1
  96. #define CONFIG_SYS_MAX_FLASH_SECT 260
  97. #define CONFIG_SYS_FLASH_BANKS_LIST { PHYS_FLASH_1 }
  98. #define CONFIG_SYS_FLASH_EMPTY_INFO 1
  99. #define CONFIG_SYS_MONITOR_LEN 0x00040000
  100. #define CONFIG_SYS_MONITOR_BASE 0x00000000
  101. #define CONFIG_FLASH_SHOW_PROGRESS 1
  102. /* Environment */
  103. #define CONFIG_ENV_IS_IN_FLASH 1
  104. #define CONFIG_ENV_ADDR 0x00040000
  105. #define CONFIG_ENV_OFFSET 0x00040000
  106. #define CONFIG_ENV_SIZE 0x00040000
  107. #define CONFIG_ENV_SECT_SIZE 0x00040000
  108. #define CONFIG_ENV_OVERWRITE 1
  109. /*
  110. Monitor - 0x00000000 - 0x00040000 (256kb)
  111. Environment - 0x00040000 - 0x00080000 (256kb)
  112. Kernel - 0x00080000 - 0x00380000 (3mb)
  113. Rootfs - 0x00380000 - 0x........ (rest)
  114. */
  115. #define CONFIG_NR_DRAM_BANKS 2
  116. #define CONFIG_SYS_SDRAM_BASE 0x00000000
  117. #define CONFIG_SYS_INTRAM_BASE INTERNAL_SRAM_BASE
  118. #define CONFIG_SYS_INTRAM_SIZE INTERNAL_SRAM_SIZE
  119. #define CONFIG_SYS_INIT_SP_ADDR 0x0
  120. #define PHYS_SDRAM_1 0xc0000000 /* SDRAM Bank #1 */
  121. #define PHYS_SDRAM_2 0xc4000000 /* SDRAM Bank #2 */
  122. #define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */
  123. #define PHYS_SDRAM_2_SIZE 0x04000000 /* 64 MB */
  124. #define CONFIG_CMD_MTDPARTS
  125. #define CONFIG_MTD_DEVICE
  126. #define CONFIG_FLASH_CFI_MTD
  127. #define MTDIDS_DEFAULT "nor0=jornada7xx-0"
  128. #define MTDPARTS_DEFAULT "mtdparts=jornada7xx-0:256k(u-boot),256k(env),"\
  129. "3m(kernel),-(user);"
  130. #define CONFIG_EXTRA_ENV_SETTINGS \
  131. "flash_kernel=protect off all; " \
  132. "erase 00080000 0037ffff;cp.b c0000000 00080000 00300000;\0" \
  133. "flash_uboot=protect off all; " \
  134. "erase 00000000 0003ffff;cp.b c0000000 00000000 00040000;\0" \
  135. "boot_kernel=cp.b 00080000 c0000000 00300000;bootm;\0"
  136. #endif /* __CONFIG_H */