presidio_asic.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2020 Cortina Access Inc.
  4. *
  5. * Configuration for Cortina-Access Presidio board.
  6. */
  7. #ifndef __PRESIDIO_ASIC_H
  8. #define __PRESIDIO_ASIC_H
  9. #define CONFIG_REMAKE_ELF
  10. #define CONFIG_SUPPORT_RAW_INITRD
  11. #define CONFIG_SYS_INIT_SP_ADDR 0x00100000
  12. #define CONFIG_SYS_BOOTM_LEN 0x00c00000
  13. /* Generic Timer Definitions */
  14. #define COUNTER_FREQUENCY 25000000
  15. #define CONFIG_SYS_TIMER_RATE COUNTER_FREQUENCY
  16. #define CONFIG_SYS_TIMER_COUNTER 0xf4321008
  17. /* note: arch/arm/cpu/armv8/start.S which references GICD_BASE/GICC_BASE
  18. * does not yet support DT. Thus define it here.
  19. */
  20. #define CONFIG_GICV2
  21. #define GICD_BASE 0xf7011000
  22. #define GICC_BASE 0xf7012000
  23. /* Size of malloc() pool */
  24. #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (8 << 20))
  25. #define CONFIG_SYS_TIMER_BASE 0xf4321000
  26. /* Use external clock source */
  27. #define PRESIDIO_APB_CLK 125000000
  28. #define CORTINA_PER_IO_FREQ PRESIDIO_APB_CLK
  29. /* Cortina Serial Configuration */
  30. #define CORTINA_UART_CLOCK (PRESIDIO_APB_CLK)
  31. #define CORTINA_SERIAL_PORTS {(void *)CONFIG_SYS_SERIAL0, \
  32. (void *)CONFIG_SYS_SERIAL1}
  33. #define CONFIG_SYS_SERIAL0 PER_UART0_CFG
  34. #define CONFIG_SYS_SERIAL1 PER_UART1_CFG
  35. /* BOOTP options */
  36. #define CONFIG_BOOTP_BOOTFILESIZE
  37. /* Miscellaneous configurable options */
  38. #define CONFIG_SYS_LOAD_ADDR (DDR_BASE + 0x10000000)
  39. #define CONFIG_LAST_STAGE_INIT
  40. /* SDRAM Bank #1 */
  41. #define DDR_BASE 0x00000000
  42. #define PHYS_SDRAM_1 DDR_BASE
  43. #define PHYS_SDRAM_1_SIZE 0x80000000 /* 2GB */
  44. #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
  45. /* Console I/O Buffer Size */
  46. #define CONFIG_SYS_CBSIZE 256
  47. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
  48. sizeof(CONFIG_SYS_PROMPT) + 16)
  49. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  50. /* max command args */
  51. #define CONFIG_SYS_MAXARGS 64
  52. #define CONFIG_EXTRA_ENV_SETTINGS "silent=y\0"
  53. #endif /* __PRESIDIO_ASIC_H */