octeontx2_common.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* SPDX-License-Identifier: GPL-2.0
  2. * Copyright (C) 2018 Marvell International Ltd.
  3. *
  4. * https://spdx.org/licenses
  5. */
  6. #ifndef __OCTEONTX2_COMMON_H__
  7. #define __OCTEONTX2_COMMON_H__
  8. #define CONFIG_SUPPORT_RAW_INITRD
  9. /** Maximum size of image supported for bootm (and bootable FIT images) */
  10. #define CONFIG_SYS_BOOTM_LEN (256 << 20)
  11. /** Memory base address */
  12. #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_TEXT_BASE
  13. /** Stack starting address */
  14. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0xffff0)
  15. /** Heap size for U-Boot */
  16. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 64 * 1024 * 1024)
  17. #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE
  18. #define CONFIG_LAST_STAGE_INIT
  19. /* Allow environment variable to be overwritten */
  20. #define CONFIG_ENV_OVERWRITE
  21. /** Reduce hashes printed out */
  22. #define CONFIG_TFTP_TSIZE
  23. /* Autoboot options */
  24. #define CONFIG_RESET_TO_RETRY
  25. #define CONFIG_BOOT_RETRY_TIME -1
  26. #define CONFIG_BOOT_RETRY_MIN 30
  27. /* BOOTP options */
  28. #define CONFIG_BOOTP_BOOTFILESIZE
  29. /** Extra environment settings */
  30. #define CONFIG_EXTRA_ENV_SETTINGS \
  31. "loadaddr=20080000\0" \
  32. "ethrotate=yes\0" \
  33. "autoload=0\0"
  34. /** Environment defines */
  35. #if defined(CONFIG_ENV_IS_IN_MMC)
  36. #define CONFIG_SYS_MMC_ENV_DEV 0
  37. #endif
  38. /* Monitor Command Prompt */
  39. #define CONFIG_SYS_CBSIZE 1024 /** Console I/O Buffer Size */
  40. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  41. #define CONFIG_SYS_MAXARGS 64 /** max command args */
  42. #define CONFIG_SYS_MMC_MAX_BLK_COUNT 8192
  43. #undef CONFIG_SYS_PROMPT
  44. #define CONFIG_SYS_PROMPT env_get("prompt")
  45. #if defined(CONFIG_MMC_OCTEONTX)
  46. #define MMC_SUPPORTS_TUNING
  47. /** EMMC specific defines */
  48. #define CONFIG_SUPPORT_EMMC_BOOT
  49. #define CONFIG_SUPPORT_EMMC_RPMB
  50. #endif
  51. #endif /* __OCTEONTX2_COMMON_H__ */