db-88f6820-gp.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2014 Stefan Roese <sr@denx.de>
  4. */
  5. #ifndef _CONFIG_DB_88F6820_GP_H
  6. #define _CONFIG_DB_88F6820_GP_H
  7. /*
  8. * High Level Configuration Options (easy to change)
  9. */
  10. /* I2C */
  11. #define CONFIG_I2C_MVTWSI_BASE0 MVEBU_TWSI_BASE
  12. /* Environment in SPI NOR flash */
  13. #define PHY_ANEG_TIMEOUT 8000 /* PHY needs a longer aneg time */
  14. /* PCIe support */
  15. #ifndef CONFIG_SPL_BUILD
  16. #define CONFIG_PCI_SCAN_SHOW
  17. #endif
  18. /* Keep device tree and initrd in lower memory so the kernel can access them */
  19. #define CONFIG_EXTRA_ENV_SETTINGS \
  20. "fdt_high=0x10000000\0" \
  21. "initrd_high=0x10000000\0"
  22. /* SPL */
  23. /*
  24. * Select the boot device here
  25. *
  26. * Currently supported are:
  27. * SPL_BOOT_SPI_NOR_FLASH - Booting via SPI NOR flash
  28. * SPL_BOOT_SDIO_MMC_CARD - Booting via SDIO/MMC card (partition 1)
  29. */
  30. #define SPL_BOOT_SPI_NOR_FLASH 1
  31. #define SPL_BOOT_SDIO_MMC_CARD 2
  32. #define CONFIG_SPL_BOOT_DEVICE SPL_BOOT_SPI_NOR_FLASH
  33. /* Defines for SPL */
  34. #define CONFIG_SPL_SIZE (140 << 10)
  35. #define CONFIG_SPL_MAX_SIZE (CONFIG_SPL_SIZE - (CONFIG_SPL_TEXT_BASE - 0x40000000))
  36. #define CONFIG_SPL_BSS_START_ADDR (0x40000000 + CONFIG_SPL_SIZE)
  37. #define CONFIG_SPL_BSS_MAX_SIZE (16 << 10)
  38. #ifdef CONFIG_SPL_BUILD
  39. #define CONFIG_SYS_MALLOC_SIMPLE
  40. #endif
  41. #define CONFIG_SPL_STACK (0x40000000 + ((192 - 16) << 10))
  42. #define CONFIG_SPL_BOOTROM_SAVE (CONFIG_SPL_STACK + 4)
  43. #if CONFIG_SPL_BOOT_DEVICE == SPL_BOOT_SDIO_MMC_CARD
  44. /* SPL related MMC defines */
  45. #ifdef CONFIG_SPL_BUILD
  46. #define CONFIG_FIXED_SDHCI_ALIGNED_BUFFER 0x00180000 /* in SDRAM */
  47. #endif
  48. #endif
  49. /*
  50. * mv-common.h should be defined after CMD configs since it used them
  51. * to enable certain macros
  52. */
  53. #include "mv-common.h"
  54. #endif /* _CONFIG_DB_88F6820_GP_H */