db-88f6820-amc.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2014 Stefan Roese <sr@denx.de>
  4. */
  5. #ifndef _CONFIG_DB_88F6820_AMC_H
  6. #define _CONFIG_DB_88F6820_AMC_H
  7. /*
  8. * High Level Configuration Options (easy to change)
  9. */
  10. #define CONFIG_SYS_TCLK 200000000 /* 200MHz */
  11. /* USB/EHCI configuration */
  12. #define CONFIG_EHCI_IS_TDI
  13. /* Environment in SPI NOR flash */
  14. #define PHY_ANEG_TIMEOUT 8000 /* PHY needs a longer aneg time */
  15. /* PCIe support */
  16. #ifndef CONFIG_SPL_BUILD
  17. #define CONFIG_PCI_SCAN_SHOW
  18. #endif
  19. /* NAND */
  20. #define CONFIG_SYS_NAND_ONFI_DETECTION
  21. /* Keep device tree and initrd in lower memory so the kernel can access them */
  22. #define CONFIG_EXTRA_ENV_SETTINGS \
  23. "fdt_high=0x10000000\0" \
  24. "initrd_high=0x10000000\0"
  25. /* SPL */
  26. /*
  27. * Select the boot device here
  28. *
  29. * Currently supported are:
  30. * SPL_BOOT_SPI_NOR_FLASH - Booting via SPI NOR flash
  31. *
  32. * MMC is not populated on this board.
  33. * NAND support may be added in the future.
  34. */
  35. #define SPL_BOOT_SPI_NOR_FLASH 1
  36. #define CONFIG_SPL_BOOT_DEVICE SPL_BOOT_SPI_NOR_FLASH
  37. /* Defines for SPL */
  38. #define CONFIG_SPL_SIZE (140 << 10)
  39. #define CONFIG_SPL_MAX_SIZE (CONFIG_SPL_SIZE - 0x0030)
  40. #define CONFIG_SPL_BSS_START_ADDR (0x40000000 + CONFIG_SPL_SIZE)
  41. #define CONFIG_SPL_BSS_MAX_SIZE (16 << 10)
  42. #ifdef CONFIG_SPL_BUILD
  43. #define CONFIG_SYS_MALLOC_SIMPLE
  44. #endif
  45. #define CONFIG_SPL_STACK (0x40000000 + ((192 - 16) << 10))
  46. #define CONFIG_SPL_BOOTROM_SAVE (CONFIG_SPL_STACK + 4)
  47. #if CONFIG_SPL_BOOT_DEVICE == SPL_BOOT_SPI_NOR_FLASH
  48. /* SPL related SPI defines */
  49. #define CONFIG_SYS_U_BOOT_OFFS CONFIG_SYS_SPI_U_BOOT_OFFS
  50. #endif
  51. /*
  52. * mv-common.h should be defined after CMD configs since it used them
  53. * to enable certain macros
  54. */
  55. #include "mv-common.h"
  56. #undef CONFIG_SYS_MAXARGS
  57. #define CONFIG_SYS_MAXARGS 96
  58. #endif /* _CONFIG_DB_88F6820_AMC_H */