bcm21664.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2013 Broadcom Corporation
  4. * Copyright 2013 Linaro Limited
  5. */
  6. #ifndef _CLOCK_BCM21664_H
  7. #define _CLOCK_BCM21664_H
  8. /*
  9. * This file defines the values used to specify clocks provided by
  10. * the clock control units (CCUs) on Broadcom BCM21664 family SoCs.
  11. */
  12. /* bcm21664 CCU device tree "compatible" strings */
  13. #define BCM21664_DT_ROOT_CCU_COMPAT "brcm,bcm21664-root-ccu"
  14. #define BCM21664_DT_AON_CCU_COMPAT "brcm,bcm21664-aon-ccu"
  15. #define BCM21664_DT_MASTER_CCU_COMPAT "brcm,bcm21664-master-ccu"
  16. #define BCM21664_DT_SLAVE_CCU_COMPAT "brcm,bcm21664-slave-ccu"
  17. /* root CCU clock ids */
  18. #define BCM21664_ROOT_CCU_FRAC_1M 0
  19. #define BCM21664_ROOT_CCU_CLOCK_COUNT 1
  20. /* aon CCU clock ids */
  21. #define BCM21664_AON_CCU_HUB_TIMER 0
  22. #define BCM21664_AON_CCU_CLOCK_COUNT 1
  23. /* master CCU clock ids */
  24. #define BCM21664_MASTER_CCU_SDIO1 0
  25. #define BCM21664_MASTER_CCU_SDIO2 1
  26. #define BCM21664_MASTER_CCU_SDIO3 2
  27. #define BCM21664_MASTER_CCU_SDIO4 3
  28. #define BCM21664_MASTER_CCU_SDIO1_SLEEP 4
  29. #define BCM21664_MASTER_CCU_SDIO2_SLEEP 5
  30. #define BCM21664_MASTER_CCU_SDIO3_SLEEP 6
  31. #define BCM21664_MASTER_CCU_SDIO4_SLEEP 7
  32. #define BCM21664_MASTER_CCU_CLOCK_COUNT 8
  33. /* slave CCU clock ids */
  34. #define BCM21664_SLAVE_CCU_UARTB 0
  35. #define BCM21664_SLAVE_CCU_UARTB2 1
  36. #define BCM21664_SLAVE_CCU_UARTB3 2
  37. #define BCM21664_SLAVE_CCU_BSC1 3
  38. #define BCM21664_SLAVE_CCU_BSC2 4
  39. #define BCM21664_SLAVE_CCU_BSC3 5
  40. #define BCM21664_SLAVE_CCU_BSC4 6
  41. #define BCM21664_SLAVE_CCU_CLOCK_COUNT 7
  42. #endif /* _CLOCK_BCM21664_H */