hi6220.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef HI6220_H
  7. #define HI6220_H
  8. #include <hi6220_regs_acpu.h>
  9. #include <hi6220_regs_ao.h>
  10. #include <hi6220_regs_peri.h>
  11. #include <hi6220_regs_pin.h>
  12. #include <hi6220_regs_pmctrl.h>
  13. /*******************************************************************************
  14. * Implementation defined ACTLR_EL2 bit definitions
  15. ******************************************************************************/
  16. #define ACTLR_EL2_L2ACTLR_BIT (1 << 6)
  17. #define ACTLR_EL2_L2ECTLR_BIT (1 << 5)
  18. #define ACTLR_EL2_L2CTLR_BIT (1 << 4)
  19. #define ACTLR_EL2_CPUECTLR_BIT (1 << 1)
  20. #define ACTLR_EL2_CPUACTLR_BIT (1 << 0)
  21. /*******************************************************************************
  22. * Implementation defined ACTLR_EL3 bit definitions
  23. ******************************************************************************/
  24. #define ACTLR_EL3_L2ACTLR_BIT (1 << 6)
  25. #define ACTLR_EL3_L2ECTLR_BIT (1 << 5)
  26. #define ACTLR_EL3_L2CTLR_BIT (1 << 4)
  27. #define ACTLR_EL3_CPUECTLR_BIT (1 << 1)
  28. #define ACTLR_EL3_CPUACTLR_BIT (1 << 0)
  29. /*******************************************************************************
  30. * CCI-400 related constants
  31. ******************************************************************************/
  32. #define CCI400_BASE 0xF6E90000
  33. #define CCI400_SL_IFACE3_CLUSTER_IX 3
  34. #define CCI400_SL_IFACE4_CLUSTER_IX 4
  35. #define DWMMC0_BASE 0xF723D000
  36. #define DWUSB_BASE 0xF72C0000
  37. #define EDMAC_BASE 0xf7370000
  38. #define EDMAC_SEC_CTRL (EDMAC_BASE + 0x694)
  39. #define EDMAC_AXI_CONF(x) (EDMAC_BASE + 0x820 + (x << 6))
  40. #define EDMAC_SEC_CTRL_INTR_SEC (1 << 1)
  41. #define EDMAC_SEC_CTRL_GLOBAL_SEC (1 << 0)
  42. #define EDMAC_CHANNEL_NUMS 16
  43. #define PMUSSI_BASE 0xF8000000
  44. #define SP804_TIMER0_BASE 0xF8008000
  45. #define GPIO0_BASE 0xF8011000
  46. #define GPIO1_BASE 0xF8012000
  47. #define GPIO2_BASE 0xF8013000
  48. #define GPIO3_BASE 0xF8014000
  49. #define GPIO4_BASE 0xF7020000
  50. #define GPIO5_BASE 0xF7021000
  51. #define GPIO6_BASE 0xF7022000
  52. #define GPIO7_BASE 0xF7023000
  53. #define GPIO8_BASE 0xF7024000
  54. #define GPIO9_BASE 0xF7025000
  55. #define GPIO10_BASE 0xF7026000
  56. #define GPIO11_BASE 0xF7027000
  57. #define GPIO12_BASE 0xF7028000
  58. #define GPIO13_BASE 0xF7029000
  59. #define GPIO14_BASE 0xF702A000
  60. #define GPIO15_BASE 0xF702B000
  61. #define GPIO16_BASE 0xF702C000
  62. #define GPIO17_BASE 0xF702D000
  63. #define GPIO18_BASE 0xF702E000
  64. #define GPIO19_BASE 0xF702F000
  65. #endif /* HI6220_H */