vocore2.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2019 Mauro Condarelli <mc5686@mclink.it>
  4. */
  5. #ifndef __VOCORE2_CONFIG_H__
  6. #define __VOCORE2_CONFIG_H__
  7. /* CPU */
  8. #define CONFIG_SYS_MIPS_TIMER_FREQ 290000000
  9. /* RAM */
  10. #define CONFIG_SYS_SDRAM_BASE 0x80000000
  11. #define CONFIG_SYS_LOAD_ADDR CONFIG_SYS_SDRAM_BASE + 0x100000
  12. #define CONFIG_SYS_INIT_SP_OFFSET 0x400000
  13. /* SPL */
  14. #if defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)
  15. #define CONFIG_SKIP_LOWLEVEL_INIT
  16. #endif
  17. #define CONFIG_SYS_UBOOT_START CONFIG_SYS_TEXT_BASE
  18. #define CONFIG_SPL_BSS_START_ADDR 0x80010000
  19. #define CONFIG_SPL_BSS_MAX_SIZE 0x10000
  20. #define CONFIG_SPL_MAX_SIZE 0x10000
  21. /* Dummy value */
  22. #define CONFIG_SYS_UBOOT_BASE 0
  23. /* Serial SPL */
  24. #define CONFIG_SYS_NS16550_MEM32
  25. #define CONFIG_SYS_NS16550_CLK 40000000
  26. #define CONFIG_SYS_NS16550_REG_SIZE -4
  27. #define CONFIG_SYS_NS16550_COM3 0xb0000e00
  28. #define CONFIG_CONS_INDEX 3
  29. /* RAM */
  30. #define CONFIG_SYS_MEMTEST_START 0x80100000
  31. #define CONFIG_SYS_MEMTEST_END 0x80400000
  32. /* Memory usage */
  33. #define CONFIG_SYS_MAXARGS 64
  34. #define CONFIG_SYS_MALLOC_LEN (1024 * 1024)
  35. #define CONFIG_SYS_BOOTPARAMS_LEN (128 * 1024)
  36. #define CONFIG_SYS_CBSIZE 512
  37. /* U-Boot */
  38. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
  39. /* Environment settings */
  40. #endif //__VOCORE2_CONFIG_H__