db-88f6820-amc.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /*
  2. * Copyright (C) 2014 Stefan Roese <sr@denx.de>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef _CONFIG_DB_88F6820_AMC_H
  7. #define _CONFIG_DB_88F6820_AMC_H
  8. /*
  9. * High Level Configuration Options (easy to change)
  10. */
  11. #define CONFIG_DISPLAY_BOARDINFO_LATE
  12. /*
  13. * TEXT_BASE needs to be below 16MiB, since this area is scrubbed
  14. * for DDR ECC byte filling in the SPL before loading the main
  15. * U-Boot into it.
  16. */
  17. #define CONFIG_SYS_TEXT_BASE 0x00800000
  18. #define CONFIG_SYS_TCLK 200000000 /* 200MHz */
  19. /*
  20. * Commands configuration
  21. */
  22. #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
  23. #define CONFIG_CMD_ENV
  24. #define CONFIG_CMD_PCI
  25. /* I2C */
  26. #define CONFIG_SYS_I2C
  27. #define CONFIG_SYS_I2C_MVTWSI
  28. #define CONFIG_I2C_MVTWSI_BASE0 MVEBU_TWSI_BASE
  29. #define CONFIG_SYS_I2C_SLAVE 0x0
  30. #define CONFIG_SYS_I2C_SPEED 100000
  31. /* SPI NOR flash default params, used by sf commands */
  32. #define CONFIG_SF_DEFAULT_BUS 1
  33. #define CONFIG_SF_DEFAULT_SPEED 1000000
  34. #define CONFIG_SF_DEFAULT_MODE SPI_MODE_3
  35. /* Partition support */
  36. #define CONFIG_DOS_PARTITION
  37. #define CONFIG_EFI_PARTITION
  38. /* Additional FS support/configuration */
  39. #define CONFIG_SUPPORT_VFAT
  40. /* USB/EHCI configuration */
  41. #define CONFIG_EHCI_IS_TDI
  42. /* Environment in SPI NOR flash */
  43. #define CONFIG_ENV_IS_IN_SPI_FLASH
  44. #define CONFIG_ENV_SPI_BUS 1
  45. #define CONFIG_ENV_OFFSET (1 << 20) /* 1MiB in */
  46. #define CONFIG_ENV_SIZE (64 << 10) /* 64KiB */
  47. #define CONFIG_ENV_SECT_SIZE (256 << 10) /* 256KiB sectors */
  48. #define CONFIG_PHY_MARVELL /* there is a marvell phy */
  49. #define PHY_ANEG_TIMEOUT 8000 /* PHY needs a longer aneg time */
  50. /* PCIe support */
  51. #ifndef CONFIG_SPL_BUILD
  52. #define CONFIG_PCI_MVEBU
  53. #define CONFIG_PCI_SCAN_SHOW
  54. #endif
  55. /* NAND */
  56. #define CONFIG_SYS_NAND_USE_FLASH_BBT
  57. #define CONFIG_SYS_NAND_ONFI_DETECTION
  58. #define CONFIG_SYS_ALT_MEMTEST
  59. /* Keep device tree and initrd in lower memory so the kernel can access them */
  60. #define CONFIG_EXTRA_ENV_SETTINGS \
  61. "fdt_high=0x10000000\0" \
  62. "initrd_high=0x10000000\0"
  63. /* SPL */
  64. /*
  65. * Select the boot device here
  66. *
  67. * Currently supported are:
  68. * SPL_BOOT_SPI_NOR_FLASH - Booting via SPI NOR flash
  69. *
  70. * MMC is not populated on this board.
  71. * NAND support may be added in the future.
  72. */
  73. #define SPL_BOOT_SPI_NOR_FLASH 1
  74. #define CONFIG_SPL_BOOT_DEVICE SPL_BOOT_SPI_NOR_FLASH
  75. /* Defines for SPL */
  76. #define CONFIG_SPL_FRAMEWORK
  77. #define CONFIG_SPL_SIZE (140 << 10)
  78. #define CONFIG_SPL_TEXT_BASE 0x40000030
  79. #define CONFIG_SPL_MAX_SIZE (CONFIG_SPL_SIZE - 0x0030)
  80. #define CONFIG_SPL_BSS_START_ADDR (0x40000000 + CONFIG_SPL_SIZE)
  81. #define CONFIG_SPL_BSS_MAX_SIZE (16 << 10)
  82. #ifdef CONFIG_SPL_BUILD
  83. #define CONFIG_SYS_MALLOC_SIMPLE
  84. #endif
  85. #define CONFIG_SPL_STACK (0x40000000 + ((192 - 16) << 10))
  86. #define CONFIG_SPL_BOOTROM_SAVE (CONFIG_SPL_STACK + 4)
  87. #if CONFIG_SPL_BOOT_DEVICE == SPL_BOOT_SPI_NOR_FLASH
  88. /* SPL related SPI defines */
  89. #define CONFIG_SPL_SPI_LOAD
  90. #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x24000
  91. #define CONFIG_SYS_U_BOOT_OFFS CONFIG_SYS_SPI_U_BOOT_OFFS
  92. #endif
  93. /*
  94. * mv-common.h should be defined after CMD configs since it used them
  95. * to enable certain macros
  96. */
  97. #include "mv-common.h"
  98. #undef CONFIG_SYS_MAXARGS
  99. #define CONFIG_SYS_MAXARGS 96
  100. #endif /* _CONFIG_DB_88F6820_AMC_H */