mvebu_armada-8k.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2016 Stefan Roese <sr@denx.de>
  4. */
  5. #ifndef _CONFIG_MVEBU_ARMADA_8K_H
  6. #define _CONFIG_MVEBU_ARMADA_8K_H
  7. /*
  8. * High Level Configuration Options (easy to change)
  9. */
  10. #define CONFIG_SYS_TCLK 250000000 /* 250MHz */
  11. /* additions for new ARM relocation support */
  12. #define CONFIG_SYS_SDRAM_BASE 0x00000000
  13. /* auto boot */
  14. #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, \
  15. 115200, 230400, 460800, 921600 }
  16. #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buff Size */
  17. /*
  18. * Other required minimal configurations
  19. */
  20. #define CONFIG_SYS_MAXARGS 32 /* max number of command args */
  21. /* End of 16M scrubbed by training in bootrom */
  22. #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + 0xFF0000)
  23. /* When runtime detection fails this is the default */
  24. #define CONFIG_SYS_MAX_NAND_DEVICE 1
  25. /*
  26. * Ethernet Driver configuration
  27. */
  28. #define CONFIG_ARP_TIMEOUT 200
  29. #define CONFIG_NET_RETRY_COUNT 50
  30. #define CONFIG_USB_MAX_CONTROLLER_COUNT (3 + 3)
  31. /* USB ethernet */
  32. /*
  33. * SATA/SCSI/AHCI configuration
  34. */
  35. #define CONFIG_SCSI_AHCI_PLAT
  36. #define CONFIG_LBA48
  37. #define CONFIG_SYS_64BIT_LBA
  38. #define CONFIG_SYS_SCSI_MAX_SCSI_ID 2
  39. #define CONFIG_SYS_SCSI_MAX_LUN 1
  40. /*
  41. * PCI configuration
  42. */
  43. #define BOOT_TARGET_DEVICES(func) \
  44. func(MMC, mmc, 1) \
  45. func(MMC, mmc, 0) \
  46. func(USB, usb, 0) \
  47. func(SCSI, scsi, 0) \
  48. func(PXE, pxe, na) \
  49. func(DHCP, dhcp, na)
  50. #include <config_distro_bootcmd.h>
  51. #define CONFIG_EXTRA_ENV_SETTINGS \
  52. "scriptaddr=0x6d00000\0" \
  53. "pxefile_addr_r=0x6e00000\0" \
  54. "fdt_addr_r=0x6f00000\0" \
  55. "kernel_addr_r=0x7000000\0" \
  56. "ramdisk_addr_r=0xa000000\0" \
  57. "fdtfile=marvell/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
  58. BOOTENV
  59. #endif /* _CONFIG_MVEBU_ARMADA_8K_H */