octeontx_common.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /* SPDX-License-Identifier: GPL-2.0
  2. *
  3. * Copyright (C) 2018 Marvell International Ltd.
  4. *
  5. * https://spdx.org/licenses
  6. */
  7. #ifndef __OCTEONTX_COMMON_H__
  8. #define __OCTEONTX_COMMON_H__
  9. #define CONFIG_SUPPORT_RAW_INITRD
  10. /** Maximum size of image supported for bootm (and bootable FIT images) */
  11. #define CONFIG_SYS_BOOTM_LEN (256 << 20)
  12. /** Memory base address */
  13. #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_TEXT_BASE
  14. /** Stack starting address */
  15. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0xffff0)
  16. /** Heap size for U-Boot */
  17. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 64 * 1024 * 1024)
  18. #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE
  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. /* AHCI support Definitions */
  30. #ifdef CONFIG_DM_SCSI
  31. /** Enable 48-bit SATA addressing */
  32. # define CONFIG_LBA48
  33. /** Enable 64-bit addressing */
  34. # define CONFIG_SYS_64BIT_LBA
  35. #endif
  36. /***** SPI Defines *********/
  37. #ifdef CONFIG_DM_SPI_FLASH
  38. # define CONFIG_SF_DEFAULT_BUS 0
  39. # define CONFIG_SF_DEFAULT_CS 0
  40. #endif
  41. /** Extra environment settings */
  42. #define CONFIG_EXTRA_ENV_SETTINGS \
  43. "loadaddr=20080000\0" \
  44. "autoload=0\0"
  45. /** Environment defines */
  46. #if defined(CONFIG_ENV_IS_IN_MMC)
  47. #define CONFIG_SYS_MMC_ENV_DEV 0
  48. #endif
  49. /* Monitor Command Prompt */
  50. #define CONFIG_SYS_CBSIZE 1024 /** Console I/O Buffer Size */
  51. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  52. #define CONFIG_SYS_MAXARGS 64 /** max command args */
  53. #define CONFIG_SYS_MMC_MAX_BLK_COUNT 8192
  54. #undef CONFIG_SYS_PROMPT
  55. #define CONFIG_SYS_PROMPT env_get("prompt")
  56. /** EMMC specific defines */
  57. #if defined(CONFIG_MMC_OCTEONTX)
  58. #define CONFIG_SUPPORT_EMMC_BOOT
  59. #define CONFIG_SUPPORT_EMMC_RPMB
  60. #endif
  61. #if defined(CONFIG_NAND_OCTEONTX)
  62. /*#define CONFIG_MTD_CONCAT */
  63. #define CONFIG_SYS_MAX_NAND_DEVICE 8
  64. #define CONFIG_SYS_NAND_ONFI_DETECTION
  65. #endif
  66. #endif /* __OCTEONTX_COMMON_H__ */