db-88f6820-amc.h 1.8 KB

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