db-88f6820-gp.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. #define CONFIG_SYS_TCLK 250000000 /* 250MHz */
  11. /* I2C */
  12. #define CONFIG_SYS_I2C
  13. #define CONFIG_SYS_I2C_MVTWSI
  14. #define CONFIG_I2C_MVTWSI_BASE0 MVEBU_TWSI_BASE
  15. #define CONFIG_SYS_I2C_SLAVE 0x0
  16. #define CONFIG_SYS_I2C_SPEED 100000
  17. /*
  18. * SDIO/MMC Card Configuration
  19. */
  20. #define CONFIG_SYS_MMC_BASE MVEBU_SDIO_BASE
  21. /*
  22. * SATA/SCSI/AHCI configuration
  23. */
  24. #define CONFIG_SCSI_AHCI_PLAT
  25. #define CONFIG_SYS_SCSI_MAX_SCSI_ID 2
  26. #define CONFIG_SYS_SCSI_MAX_LUN 1
  27. #define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \
  28. CONFIG_SYS_SCSI_MAX_LUN)
  29. /* USB/EHCI configuration */
  30. #define CONFIG_EHCI_IS_TDI
  31. /* Environment in SPI NOR flash */
  32. #define PHY_ANEG_TIMEOUT 8000 /* PHY needs a longer aneg time */
  33. /* PCIe support */
  34. #ifndef CONFIG_SPL_BUILD
  35. #define CONFIG_PCI_SCAN_SHOW
  36. #endif
  37. /* Keep device tree and initrd in lower memory so the kernel can access them */
  38. #define CONFIG_EXTRA_ENV_SETTINGS \
  39. "fdt_high=0x10000000\0" \
  40. "initrd_high=0x10000000\0"
  41. /* SPL */
  42. /*
  43. * Select the boot device here
  44. *
  45. * Currently supported are:
  46. * SPL_BOOT_SPI_NOR_FLASH - Booting via SPI NOR flash
  47. * SPL_BOOT_SDIO_MMC_CARD - Booting via SDIO/MMC card (partition 1)
  48. */
  49. #define SPL_BOOT_SPI_NOR_FLASH 1
  50. #define SPL_BOOT_SDIO_MMC_CARD 2
  51. #define CONFIG_SPL_BOOT_DEVICE SPL_BOOT_SPI_NOR_FLASH
  52. /* Defines for SPL */
  53. #define CONFIG_SPL_SIZE (140 << 10)
  54. #define CONFIG_SPL_MAX_SIZE (CONFIG_SPL_SIZE - 0x0030)
  55. #define CONFIG_SPL_BSS_START_ADDR (0x40000000 + CONFIG_SPL_SIZE)
  56. #define CONFIG_SPL_BSS_MAX_SIZE (16 << 10)
  57. #ifdef CONFIG_SPL_BUILD
  58. #define CONFIG_SYS_MALLOC_SIMPLE
  59. #endif
  60. #define CONFIG_SPL_STACK (0x40000000 + ((192 - 16) << 10))
  61. #define CONFIG_SPL_BOOTROM_SAVE (CONFIG_SPL_STACK + 4)
  62. #if CONFIG_SPL_BOOT_DEVICE == SPL_BOOT_SPI_NOR_FLASH
  63. /* SPL related SPI defines */
  64. #define CONFIG_SYS_U_BOOT_OFFS CONFIG_SYS_SPI_U_BOOT_OFFS
  65. #endif
  66. #if CONFIG_SPL_BOOT_DEVICE == SPL_BOOT_SDIO_MMC_CARD
  67. /* SPL related MMC defines */
  68. #define CONFIG_SYS_MMC_U_BOOT_OFFS (160 << 10)
  69. #define CONFIG_SYS_U_BOOT_OFFS CONFIG_SYS_MMC_U_BOOT_OFFS
  70. #ifdef CONFIG_SPL_BUILD
  71. #define CONFIG_FIXED_SDHCI_ALIGNED_BUFFER 0x00180000 /* in SDRAM */
  72. #endif
  73. #endif
  74. /*
  75. * mv-common.h should be defined after CMD configs since it used them
  76. * to enable certain macros
  77. */
  78. #include "mv-common.h"
  79. #endif /* _CONFIG_DB_88F6820_GP_H */