soc_reset.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * Copyright (c) 2019 Actions Semiconductor Co., Ltd
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @file peripheral reset configuration macros for Actions SoC
  8. */
  9. #ifndef _ACTIONS_SOC_RESET_H_
  10. #define _ACTIONS_SOC_RESET_H_
  11. #define RESET_ID_DMA 0
  12. #define RESET_ID_SD0 1
  13. #define RESET_ID_SD1 2
  14. #define RESET_ID_SPI0 4
  15. #define RESET_ID_SPI1 5
  16. #define RESET_ID_SPI2 6
  17. #define RESET_ID_SPI3 7
  18. #define RESET_ID_SPI0CACHE 8
  19. #define RESET_ID_SPI1CACHE 9
  20. #define RESET_ID_USB 10
  21. #define RESET_ID_USB2 11
  22. #define RESET_ID_DE 12
  23. #define RESET_ID_JPEG 13
  24. #define RESET_ID_LCD 14
  25. #define RESET_ID_GPU 15
  26. #define RESET_ID_SE 16
  27. #define RESET_ID_PWM 17
  28. #define RESET_ID_TIMER 18
  29. #define RESET_ID_LRADC 19
  30. #define RESET_ID_SDMA 21
  31. #define RESET_ID_UART0 24
  32. #define RESET_ID_UART1 25
  33. #define RESET_ID_UART2 26
  34. #define RESET_ID_I2C0 27
  35. #define RESET_ID_I2C1 28
  36. #define RESET_ID_FFT 29
  37. #define RESET_ID_DSP 32
  38. #define RESET_ID_ASRC 33
  39. #define RESET_ID_DAC 34
  40. #define RESET_ID_ADC 35
  41. #define RESET_ID_I2STX 36
  42. #define RESET_ID_I2SRX 37
  43. #define RESET_ID_SPDIFTX 40
  44. #define RESET_ID_SPDIFRX 41
  45. #define RESET_ID_ANC 45
  46. #define RESET_ID_BT 56
  47. #define RESET_ID_SPIMT0 48
  48. #define RESET_ID_SPIMT1 49
  49. #define RESET_ID_I2CMT0 50
  50. #define RESET_ID_I2CMT1 51
  51. #define RESET_ID_MAX_ID 63
  52. #ifndef _ASMLANGUAGE
  53. void acts_reset_peripheral_assert(int reset_id);
  54. void acts_reset_peripheral_deassert(int reset_id);
  55. void acts_reset_peripheral(int reset_id);
  56. #endif /* _ASMLANGUAGE */
  57. #endif /* _ACTIONS_SOC_RESET_H_ */