bcm281xx.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2013 Broadcom Corporation
  4. * Copyright 2013 Linaro Limited
  5. */
  6. #ifndef _CLOCK_BCM281XX_H
  7. #define _CLOCK_BCM281XX_H
  8. /*
  9. * This file defines the values used to specify clocks provided by
  10. * the clock control units (CCUs) on Broadcom BCM281XX family SoCs.
  11. */
  12. /*
  13. * These are the bcm281xx CCU device tree "compatible" strings.
  14. * We're stuck with using "bcm11351" in the string because wild
  15. * cards aren't allowed, and that name was the first one defined
  16. * in this family of devices.
  17. */
  18. #define BCM281XX_DT_ROOT_CCU_COMPAT "brcm,bcm11351-root-ccu"
  19. #define BCM281XX_DT_AON_CCU_COMPAT "brcm,bcm11351-aon-ccu"
  20. #define BCM281XX_DT_HUB_CCU_COMPAT "brcm,bcm11351-hub-ccu"
  21. #define BCM281XX_DT_MASTER_CCU_COMPAT "brcm,bcm11351-master-ccu"
  22. #define BCM281XX_DT_SLAVE_CCU_COMPAT "brcm,bcm11351-slave-ccu"
  23. /* root CCU clock ids */
  24. #define BCM281XX_ROOT_CCU_FRAC_1M 0
  25. #define BCM281XX_ROOT_CCU_CLOCK_COUNT 1
  26. /* aon CCU clock ids */
  27. #define BCM281XX_AON_CCU_HUB_TIMER 0
  28. #define BCM281XX_AON_CCU_PMU_BSC 1
  29. #define BCM281XX_AON_CCU_PMU_BSC_VAR 2
  30. #define BCM281XX_AON_CCU_CLOCK_COUNT 3
  31. /* hub CCU clock ids */
  32. #define BCM281XX_HUB_CCU_TMON_1M 0
  33. #define BCM281XX_HUB_CCU_CLOCK_COUNT 1
  34. /* master CCU clock ids */
  35. #define BCM281XX_MASTER_CCU_SDIO1 0
  36. #define BCM281XX_MASTER_CCU_SDIO2 1
  37. #define BCM281XX_MASTER_CCU_SDIO3 2
  38. #define BCM281XX_MASTER_CCU_SDIO4 3
  39. #define BCM281XX_MASTER_CCU_USB_IC 4
  40. #define BCM281XX_MASTER_CCU_HSIC2_48M 5
  41. #define BCM281XX_MASTER_CCU_HSIC2_12M 6
  42. #define BCM281XX_MASTER_CCU_CLOCK_COUNT 7
  43. /* slave CCU clock ids */
  44. #define BCM281XX_SLAVE_CCU_UARTB 0
  45. #define BCM281XX_SLAVE_CCU_UARTB2 1
  46. #define BCM281XX_SLAVE_CCU_UARTB3 2
  47. #define BCM281XX_SLAVE_CCU_UARTB4 3
  48. #define BCM281XX_SLAVE_CCU_SSP0 4
  49. #define BCM281XX_SLAVE_CCU_SSP2 5
  50. #define BCM281XX_SLAVE_CCU_BSC1 6
  51. #define BCM281XX_SLAVE_CCU_BSC2 7
  52. #define BCM281XX_SLAVE_CCU_BSC3 8
  53. #define BCM281XX_SLAVE_CCU_PWM 9
  54. #define BCM281XX_SLAVE_CCU_CLOCK_COUNT 10
  55. #endif /* _CLOCK_BCM281XX_H */