axg-aoclk.h 779 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
  2. /*
  3. * Copyright (c) 2017 BayLibre, SAS
  4. * Author: Neil Armstrong <narmstrong@baylibre.com>
  5. *
  6. * Copyright (c) 2018 Amlogic, inc.
  7. * Author: Qiufang Dai <qiufang.dai@amlogic.com>
  8. */
  9. #ifndef __AXG_AOCLKC_H
  10. #define __AXG_AOCLKC_H
  11. #define NR_CLKS 11
  12. /* AO Configuration Clock registers offsets
  13. * Register offsets from the data sheet must be multiplied by 4.
  14. */
  15. #define AO_RTI_PWR_CNTL_REG1 0x0C
  16. #define AO_RTI_PWR_CNTL_REG0 0x10
  17. #define AO_RTI_GEN_CNTL_REG0 0x40
  18. #define AO_OSCIN_CNTL 0x58
  19. #define AO_CRT_CLK_CNTL1 0x68
  20. #define AO_SAR_CLK 0x90
  21. #define AO_RTC_ALT_CLK_CNTL0 0x94
  22. #define AO_RTC_ALT_CLK_CNTL1 0x98
  23. #include <dt-bindings/clock/axg-aoclkc.h>
  24. #include <dt-bindings/reset/axg-aoclkc.h>
  25. #endif /* __AXG_AOCLKC_H */