keymile-common.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /*
  2. * (C) Copyright 2008
  3. * Heiko Schocher, DENX Software Engineering, hs@denx.de.
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. #ifndef __CONFIG_KEYMILE_H
  24. #define __CONFIG_KEYMILE_H
  25. /* Do boardspecific init for all boards */
  26. #define CONFIG_BOARD_EARLY_INIT_R 1
  27. #if defined(CONFIG_MGCOGE) || defined(CONFIG_MGSUVD)
  28. #define CONFIG_BOOTCOUNT_LIMIT
  29. #endif
  30. /*
  31. * Command line configuration.
  32. */
  33. #include <config_cmd_default.h>
  34. #define CONFIG_CMD_ASKENV
  35. #define CONFIG_CMD_DHCP
  36. #define CONFIG_CMD_ECHO
  37. #define CONFIG_CMD_IMMAP
  38. #define CONFIG_CMD_MII
  39. #define CONFIG_CMD_PING
  40. /* should go away, if kmeter I2C support is enabled */
  41. #if defined(CONFIG_MGCOGE) || defined(CONFIG_MGSUVD)
  42. #define CONFIG_CMD_DTT
  43. #define CONFIG_CMD_EEPROM
  44. #define CONFIG_CMD_I2C
  45. #endif
  46. #undef CONFIG_WATCHDOG /* disable platform specific watchdog */
  47. #define CONFIG_BOOTCOMMAND "run net_nfs"
  48. #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
  49. #undef CONFIG_BOOTARGS /* the boot command will set bootargs */
  50. /*
  51. * Miscellaneous configurable options
  52. */
  53. #define CONFIG_SYS_HUSH_PARSER
  54. #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
  55. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  56. #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */
  57. #if defined(CONFIG_CMD_KGDB)
  58. #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
  59. #else
  60. #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
  61. #endif
  62. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
  63. #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
  64. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
  65. #define CONFIG_CMDLINE_EDITING 1 /* add command line history */
  66. /* should go away, if kmeter I2C support is enabled */
  67. #if defined(CONFIG_MGCOGE) || defined(CONFIG_MGSUVD)
  68. #define CONFIG_HUSH_INIT_VAR 1
  69. #endif
  70. #define CONFIG_SYS_ALT_MEMTEST /* memory test, takes time */
  71. #define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */
  72. #define CONFIG_SYS_MEMTEST_END 0x00f00000 /* 1 ... 15 MB in DRAM */
  73. #define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */
  74. #define CONFIG_SYS_HZ 1000 /* decrementer freq: 1 ms ticks */
  75. #define CONFIG_BAUDRATE 115200
  76. #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 }
  77. #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
  78. #define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change */
  79. /*
  80. * How to get access to the slot ID. Put this here to make it easy
  81. * to modify in a centralized location. This is used in the HDLC
  82. * driver to set the MAC.
  83. */
  84. #define CONFIG_CHECK_ETHERNET_PRESENT 1
  85. #define CONFIG_SYS_SLOT_ID_BASE CONFIG_SYS_PIGGY_BASE
  86. #define CONFIG_SYS_SLOT_ID_OFF (0x07) /* register offset */
  87. #define CONFIG_SYS_SLOT_ID_MASK (0x3f) /* mask for slot ID bits */
  88. /*
  89. * BOOTP options
  90. */
  91. #define CONFIG_BOOTP_BOOTFILESIZE
  92. #define CONFIG_BOOTP_BOOTPATH
  93. #define CONFIG_BOOTP_GATEWAY
  94. #define CONFIG_BOOTP_HOSTNAME
  95. #endif /* __CONFIG_KEYMILE_H */