imgtec_xilfpga.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Copyright (C) 2016, Imagination Technologies Ltd.
  3. *
  4. * Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. *
  8. * Imagination Technologies Ltd. MIPSfpga
  9. */
  10. #ifndef __XILFPGA_CONFIG_H
  11. #define __XILFPGA_CONFIG_H
  12. /* BootROM + MIG is pretty smart. DDR and Cache initialized */
  13. #define CONFIG_SKIP_LOWLEVEL_INIT
  14. /*--------------------------------------------
  15. * CPU configuration
  16. */
  17. /* CPU Timer rate */
  18. #define CONFIG_SYS_MIPS_TIMER_FREQ 50000000
  19. /* Cache Configuration */
  20. #define CONFIG_SYS_MIPS_CACHE_MODE CONF_CM_CACHABLE_NONCOHERENT
  21. /*----------------------------------------------------------------------
  22. * Memory Layout
  23. */
  24. /* SDRAM Configuration (for final code, data, stack, heap) */
  25. #define CONFIG_SYS_SDRAM_BASE 0x80000000
  26. #define CONFIG_SYS_SDRAM_SIZE 0x08000000 /* 128 Mbytes */
  27. #define CONFIG_SYS_INIT_SP_ADDR \
  28. (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE - 0x1000)
  29. #define CONFIG_SYS_MALLOC_LEN (256 << 10)
  30. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
  31. #define CONFIG_SYS_LOAD_ADDR 0x80500000 /* default load address */
  32. /*----------------------------------------------------------------------
  33. * Commands
  34. */
  35. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  36. /*-------------------------------------------------
  37. * FLASH configuration
  38. */
  39. #define CONFIG_SYS_NO_FLASH
  40. /*------------------------------------------------------------
  41. * Console Configuration
  42. */
  43. #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
  44. #define CONFIG_SYS_MAXARGS 16 /* max number of command args*/
  45. #define CONFIG_BAUDRATE 115200
  46. /* -------------------------------------------------
  47. * Environment
  48. */
  49. #define CONFIG_ENV_IS_NOWHERE 1
  50. #define CONFIG_ENV_SIZE 0x4000
  51. /* ---------------------------------------------------------------------
  52. * Board boot configuration
  53. */
  54. #define CONFIG_TIMESTAMP /* Print image info with timestamp */
  55. #endif /* __XILFPGA_CONFIG_H */