db-88f6820-gp.h 2.5 KB

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