common.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * (C) Copyright 2009
  3. * Heiko Schocher, DENX Software Engineering, hs@denx.de.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef __MANROLAND_COMMON_H
  8. #define __MANROLAND_COMMON_H
  9. /*
  10. * High Level Configuration Options
  11. * (easy to change)
  12. */
  13. #define CONFIG_BOARD_EARLY_INIT_R
  14. /* Partitions */
  15. #define CONFIG_DOS_PARTITION
  16. /*
  17. * Command line configuration.
  18. */
  19. #define CONFIG_CMD_DATE
  20. #define CONFIG_CMD_DISPLAY
  21. #define CONFIG_CMD_EEPROM
  22. #define CONFIG_CMD_DTT
  23. #define CONFIG_CMD_IDE
  24. /*
  25. * 8-symbol LED display (can be accessed with 'display' command)
  26. */
  27. #define CONFIG_PDSP188x
  28. #define CONFIG_TIMESTAMP 1 /* Print image info with timestamp */
  29. /*
  30. * Autobooting
  31. */
  32. #define CONFIG_PREBOOT "echo;" \
  33. "echo Type \\\"run flash_nfs\\\" to mount root filesystem over NFS;" \
  34. "echo"
  35. #undef CONFIG_BOOTARGS
  36. #define CONFIG_EXTRA_ENV_SETTINGS \
  37. "netdev=eth0\0" \
  38. "nfsargs=setenv bootargs root=/dev/nfs rw " \
  39. "nfsroot=${serverip}:${rootpath}\0" \
  40. "ramargs=setenv bootargs root=/dev/ram rw\0" \
  41. "addwdt=setenv bootargs ${bootargs} wdt=off\0" \
  42. "logval=4\0" \
  43. "addlog=setenv bootargs ${bootargs} loglevel=${logval}\0" \
  44. "addip=setenv bootargs ${bootargs} " \
  45. "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
  46. ":${hostname}:${netdev}:off panic=1\0" \
  47. "kernel_addr=ff810000\0" \
  48. "fdt_addr="__stringify(CONFIG_SYS_FLASH_BASE)"\0" \
  49. "flash_nfs=run nfsargs addip addcon addwdt addlog;" \
  50. "bootm ${kernel_addr} - ${fdt_addr}\0" \
  51. "rootpath=/opt/eldk/ppc_82xx\0" \
  52. "kernel_addr_r=300000\0" \
  53. "fdt_addr_r=200000\0" \
  54. "fdt_file=" __stringify(CONFIG_HOSTNAME) "/" \
  55. __stringify(CONFIG_HOSTNAME) ".dtb\0" \
  56. "kernel_file=" __stringify(CONFIG_HOSTNAME) "/uImage \0" \
  57. "load_fdt=tftp ${fdt_addr_r} ${fdt_file};\0" \
  58. "load_kernel=tftp ${kernel_addr_r} ${kernel_file};\0" \
  59. "addcon=setenv bootargs ${bootargs} console=ttyPSC0,${baudrate}\0"\
  60. "net_nfs=run load_fdt load_kernel; " \
  61. "run nfsargs addip addcon addwdt addlog;" \
  62. "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
  63. "u-boot=" __stringify(CONFIG_HOSTNAME) "/u-boot.bin \0" \
  64. "u-boot_addr_r=200000\0" \
  65. "load=tftp ${u-boot_addr_r} ${u-boot}\0" \
  66. "update=protect off " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize};"\
  67. "erase " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize};"\
  68. "cp.b ${u-boot_addr_r} " __stringify(CONFIG_SYS_TEXT_BASE) \
  69. " ${filesize};" \
  70. "protect on " __stringify(CONFIG_SYS_TEXT_BASE) " +${filesize}\0"\
  71. ""
  72. #define CONFIG_BOOTCOMMAND "run net_nfs"
  73. #define CONFIG_MISC_INIT_R 1
  74. /*
  75. * Miscellaneous configurable options
  76. */
  77. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  78. #if defined(CONFIG_CMD_KGDB)
  79. #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
  80. #else
  81. #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
  82. #endif
  83. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
  84. #define CONFIG_SYS_MAXARGS 16 /* max number of command args*/
  85. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  86. #define CONFIG_CMDLINE_EDITING 1 /* add command line history */
  87. #define CONFIG_AUTO_COMPLETE /* add autocompletion support */
  88. /* Enable an alternate, more extensive memory test */
  89. #define CONFIG_SYS_ALT_MEMTEST
  90. /*
  91. * Enable loopw command.
  92. */
  93. #endif /* __MANROLAND_COMMON_H */