db-88f6720.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * Copyright (C) 2016 Stefan Roese <sr@denx.de>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef _CONFIG_DB_88F6720_H
  7. #define _CONFIG_DB_88F6720_H
  8. /*
  9. * High Level Configuration Options (easy to change)
  10. */
  11. #define CONFIG_DISPLAY_BOARDINFO_LATE
  12. /*
  13. * TEXT_BASE needs to be below 16MiB, since this area is scrubbed
  14. * for DDR ECC byte filling in the SPL before loading the main
  15. * U-Boot into it.
  16. */
  17. #define CONFIG_SYS_TCLK 200000000 /* 200MHz */
  18. /*
  19. * Commands configuration
  20. */
  21. /* I2C */
  22. #define CONFIG_SYS_I2C
  23. #define CONFIG_SYS_I2C_MVTWSI
  24. #define CONFIG_I2C_MVTWSI_BASE0 MVEBU_TWSI_BASE
  25. #define CONFIG_SYS_I2C_SLAVE 0x0
  26. #define CONFIG_SYS_I2C_SPEED 100000
  27. /* USB/EHCI configuration */
  28. #define CONFIG_EHCI_IS_TDI
  29. #define CONFIG_USB_MAX_CONTROLLER_COUNT 3
  30. /* SPI NOR flash default params, used by sf commands */
  31. #define CONFIG_SF_DEFAULT_SPEED 1000000
  32. #define CONFIG_SF_DEFAULT_MODE SPI_MODE_3
  33. /* Environment in SPI NOR flash */
  34. #define CONFIG_ENV_OFFSET (1 << 20) /* 1MiB in */
  35. #define CONFIG_ENV_SIZE (64 << 10) /* 64KiB */
  36. #define CONFIG_ENV_SECT_SIZE (64 << 10) /* 64KiB sectors */
  37. #define CONFIG_PHY_MARVELL /* there is a marvell phy */
  38. #define PHY_ANEG_TIMEOUT 8000 /* PHY needs a longer aneg time */
  39. /*
  40. * mv-common.h should be defined after CMD configs since it used them
  41. * to enable certain macros
  42. */
  43. #include "mv-common.h"
  44. /*
  45. * Memory layout while starting into the bin_hdr via the
  46. * BootROM:
  47. *
  48. * 0x4000.4000 - 0x4003.4000 headers space (192KiB)
  49. * 0x4000.4030 bin_hdr start address
  50. * 0x4003.4000 - 0x4004.7c00 BootROM memory allocations (15KiB)
  51. * 0x4007.fffc BootROM stack top
  52. *
  53. * The address space between 0x4007.fffc and 0x400f.fff is not locked in
  54. * L2 cache thus cannot be used.
  55. */
  56. /* SPL */
  57. /* Defines for SPL */
  58. #define CONFIG_SPL_TEXT_BASE 0x40004030
  59. #define CONFIG_SPL_MAX_SIZE ((128 << 10) - 0x4030)
  60. #define CONFIG_SPL_BSS_START_ADDR (0x40000000 + (128 << 10))
  61. #define CONFIG_SPL_BSS_MAX_SIZE (16 << 10)
  62. #ifdef CONFIG_SPL_BUILD
  63. #define CONFIG_SYS_MALLOC_SIMPLE
  64. #endif
  65. #define CONFIG_SPL_STACK (0x40000000 + ((192 - 16) << 10))
  66. #define CONFIG_SPL_BOOTROM_SAVE (CONFIG_SPL_STACK + 4)
  67. /* SPL related SPI defines */
  68. #define CONFIG_SPL_SPI_LOAD
  69. #define CONFIG_SYS_SPI_U_BOOT_OFFS 0x20000
  70. #define CONFIG_SYS_U_BOOT_OFFS CONFIG_SYS_SPI_U_BOOT_OFFS
  71. #endif /* _CONFIG_DB_88F6720_H */