lpd7a404.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. * See file CREDITS for list of people who contributed to this
  3. * project.
  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 __LPD7A404_H_
  21. #define __LPD7A404_H_
  22. #define CONFIG_LPD7A404 /* Logic LH7A400 SDK */
  23. #undef CONFIG_USE_IRQ
  24. /*
  25. * This board uses the logic LH7A404-10 card engine
  26. */
  27. #include <configs/lpd7a404-10.h>
  28. #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
  29. #define CONFIG_SETUP_MEMORY_TAGS 1
  30. #define CONFIG_INITRD_TAG 1
  31. /*
  32. * Size of malloc() pool
  33. */
  34. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024)
  35. #define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
  36. /*
  37. * select serial console configuration
  38. */
  39. #define CONFIG_CONSOLE_UART2 /* UART2 LH7A40x for console */
  40. /* allow to overwrite serial and ethaddr */
  41. #define CONFIG_ENV_OVERWRITE
  42. #define CONFIG_BAUDRATE 115200
  43. #define CONFIG_IPADDR 192.168.1.100
  44. #define CONFIG_NETMASK 255.255.1.0
  45. #define CONFIG_SERVERIP 192.168.1.1
  46. #define CONFIG_TIMESTAMP 1 /* Print timestamp info for images */
  47. /*
  48. * BOOTP options
  49. */
  50. #define CONFIG_BOOTP_BOOTFILESIZE
  51. #define CONFIG_BOOTP_BOOTPATH
  52. #define CONFIG_BOOTP_GATEWAY
  53. #define CONFIG_BOOTP_HOSTNAME
  54. /*
  55. * Command line configuration.
  56. */
  57. #include <config_cmd_default.h>
  58. #ifndef USE_920T_MMU
  59. #define CONFIG_CMD_PING)
  60. #undef CONFIG_CMD_CACHE
  61. #else
  62. #define CONFIG_CMD_DATE
  63. #endif
  64. #define CONFIG_BOOTDELAY 3
  65. #if defined(CONFIG_CMD_KGDB)
  66. #define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port */
  67. /* what's this ? it's not used anywhere */
  68. #define CONFIG_KGDB_SER_INDEX 1 /* which serial port to use */
  69. #endif
  70. /*
  71. * Miscellaneous configurable options
  72. */
  73. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  74. #define CONFIG_SYS_PROMPT "LPD7A404> " /* Monitor Command Prompt */
  75. #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
  76. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
  77. #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
  78. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
  79. #define CONFIG_SYS_MEMTEST_START 0xc0300000 /* memtest works on */
  80. #define CONFIG_SYS_MEMTEST_END 0xc0500000 /* 2 MB in DRAM */
  81. #define CONFIG_SYS_LOAD_ADDR 0xc0f00000 /* default load address */
  82. /* valid baudrates */
  83. #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
  84. /* size and location of u-boot in flash */
  85. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
  86. #define CONFIG_SYS_MONITOR_LEN (256<<10)
  87. #define CONFIG_ENV_IS_IN_FLASH 1
  88. /* Address and size of Primary Environment Sector */
  89. #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0xFC0000)
  90. #define CONFIG_ENV_SIZE 0x40000
  91. #endif /* __LPD7A404_H_ */