axs10x.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2013-2016 Synopsys, Inc. All rights reserved.
  4. */
  5. #ifndef _CONFIG_AXS10X_H_
  6. #define _CONFIG_AXS10X_H_
  7. #include <linux/sizes.h>
  8. /*
  9. * CPU configuration
  10. */
  11. #define ARC_FPGA_PERIPHERAL_BASE 0xE0000000
  12. #define ARC_APB_PERIPHERAL_BASE 0xF0000000
  13. #define ARC_DWMMC_BASE (ARC_FPGA_PERIPHERAL_BASE + 0x15000)
  14. #define ARC_DWGMAC_BASE (ARC_FPGA_PERIPHERAL_BASE + 0x18000)
  15. /*
  16. * Memory configuration
  17. */
  18. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
  19. #define CONFIG_SYS_DDR_SDRAM_BASE 0x80000000
  20. #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
  21. #define CONFIG_SYS_SDRAM_SIZE SZ_512M
  22. #define CONFIG_SYS_INIT_SP_ADDR \
  23. (CONFIG_SYS_SDRAM_BASE + 0x1000 - GENERATED_GBL_DATA_SIZE)
  24. #define CONFIG_SYS_MALLOC_LEN SZ_2M
  25. #define CONFIG_SYS_BOOTM_LEN SZ_128M
  26. #define CONFIG_SYS_LOAD_ADDR 0x82000000
  27. /*
  28. * UART configuration
  29. */
  30. #define CONFIG_SYS_NS16550_SERIAL
  31. #define CONFIG_SYS_NS16550_CLK 33333333
  32. #define CONFIG_SYS_NS16550_MEM32
  33. /*
  34. * Ethernet PHY configuration
  35. */
  36. /*
  37. * USB 1.1 configuration
  38. */
  39. #define CONFIG_USB_OHCI_NEW
  40. #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1
  41. /*
  42. * Environment settings
  43. */
  44. #define CONFIG_EXTRA_ENV_SETTINGS \
  45. "upgrade=if mmc rescan && " \
  46. "fatload mmc 0:1 ${loadaddr} u-boot-update.img && " \
  47. "iminfo ${loadaddr} && source ${loadaddr}; then; else echo " \
  48. "\"Fail to upgrade.\n" \
  49. "Do you have u-boot-update.img and u-boot.head on first (FAT) SD card partition?\"" \
  50. "; fi\0"
  51. /*
  52. * Environment configuration
  53. */
  54. #define CONFIG_BOOTFILE "uImage"
  55. #define CONFIG_LOADADDR CONFIG_SYS_LOAD_ADDR
  56. /*
  57. * Console configuration
  58. */
  59. #endif /* _CONFIG_AXS10X_H_ */