bcm_ep_board.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * Copyright 2014 Broadcom Corporation.
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef __BCM_EP_BOARD_H
  7. #define __BCM_EP_BOARD_H
  8. #include <asm/arch/configs.h>
  9. #define CONFIG_SKIP_LOWLEVEL_INIT
  10. /*
  11. * Memory configuration
  12. * (these must be defined elsewhere)
  13. */
  14. #ifndef CONFIG_SYS_TEXT_BASE
  15. #error CONFIG_SYS_TEXT_BASE must be defined!
  16. #endif
  17. #ifndef CONFIG_SYS_SDRAM_BASE
  18. #error CONFIG_SYS_SDRAM_BASE must be defined!
  19. #endif
  20. #ifndef CONFIG_SYS_SDRAM_SIZE
  21. #error CONFIG_SYS_SDRAM_SIZE must be defined!
  22. #endif
  23. #define CONFIG_NR_DRAM_BANKS 1
  24. #define CONFIG_SYS_MALLOC_LEN (4 * 1024 * 1024)
  25. #define CONFIG_STACKSIZE (256 * 1024)
  26. /* Some commands use this as the default load address */
  27. #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE
  28. /*
  29. * This is the initial SP which is used only briefly for relocating the u-boot
  30. * image to the top of SDRAM. After relocation u-boot moves the stack to the
  31. * proper place.
  32. */
  33. #define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_TEXT_BASE
  34. /* allow to overwrite serial and ethaddr */
  35. #define CONFIG_ENV_OVERWRITE
  36. /* Serial Info */
  37. #define CONFIG_SYS_NS16550_SERIAL
  38. #define CONFIG_BAUDRATE 115200
  39. #define CONFIG_ENV_SIZE 0x2000
  40. #define CONFIG_ENV_IS_NOWHERE
  41. #define CONFIG_SYS_NO_FLASH /* Not using NAND/NOR unmanaged flash */
  42. /* console configuration */
  43. #define CONFIG_SYS_CBSIZE 1024 /* Console buffer size */
  44. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
  45. sizeof(CONFIG_SYS_PROMPT) + 16) /* Printbuffer size */
  46. #define CONFIG_SYS_MAXARGS 64
  47. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  48. /*
  49. * One partition type must be defined for part.c
  50. * This is necessary for the fatls command to work on an SD card
  51. * for example.
  52. */
  53. #define CONFIG_DOS_PARTITION
  54. /* version string, parser, etc */
  55. #define CONFIG_AUTO_COMPLETE
  56. #define CONFIG_CMDLINE_EDITING
  57. #define CONFIG_COMMAND_HISTORY
  58. #define CONFIG_SYS_LONGHELP
  59. #define CONFIG_CRC32_VERIFY
  60. #define CONFIG_MX_CYCLIC
  61. /* Commands */
  62. #define CONFIG_FAT_WRITE
  63. /* SHA hashing */
  64. #define CONFIG_CMD_HASH
  65. #define CONFIG_HASH_VERIFY
  66. #define CONFIG_SHA1
  67. #define CONFIG_SHA256
  68. /* Enable Time Command */
  69. /* Misc utility code */
  70. #define CONFIG_BOUNCE_BUFFER
  71. #define CONFIG_CRC32_VERIFY
  72. #endif /* __BCM_EP_BOARD_H */