bcm281xx.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright (C) 2013 Broadcom Corporation
  3. * Copyright 2013 Linaro Limited
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation version 2.
  8. *
  9. * This program is distributed "as is" WITHOUT ANY WARRANTY of any
  10. * kind, whether express or implied; without even the implied warranty
  11. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef _CLOCK_BCM281XX_H
  15. #define _CLOCK_BCM281XX_H
  16. /*
  17. * This file defines the values used to specify clocks provided by
  18. * the clock control units (CCUs) on Broadcom BCM281XX family SoCs.
  19. */
  20. /*
  21. * These are the bcm281xx CCU device tree "compatible" strings.
  22. * We're stuck with using "bcm11351" in the string because wild
  23. * cards aren't allowed, and that name was the first one defined
  24. * in this family of devices.
  25. */
  26. #define BCM281XX_DT_ROOT_CCU_COMPAT "brcm,bcm11351-root-ccu"
  27. #define BCM281XX_DT_AON_CCU_COMPAT "brcm,bcm11351-aon-ccu"
  28. #define BCM281XX_DT_HUB_CCU_COMPAT "brcm,bcm11351-hub-ccu"
  29. #define BCM281XX_DT_MASTER_CCU_COMPAT "brcm,bcm11351-master-ccu"
  30. #define BCM281XX_DT_SLAVE_CCU_COMPAT "brcm,bcm11351-slave-ccu"
  31. /* root CCU clock ids */
  32. #define BCM281XX_ROOT_CCU_FRAC_1M 0
  33. #define BCM281XX_ROOT_CCU_CLOCK_COUNT 1
  34. /* aon CCU clock ids */
  35. #define BCM281XX_AON_CCU_HUB_TIMER 0
  36. #define BCM281XX_AON_CCU_PMU_BSC 1
  37. #define BCM281XX_AON_CCU_PMU_BSC_VAR 2
  38. #define BCM281XX_AON_CCU_CLOCK_COUNT 3
  39. /* hub CCU clock ids */
  40. #define BCM281XX_HUB_CCU_TMON_1M 0
  41. #define BCM281XX_HUB_CCU_CLOCK_COUNT 1
  42. /* master CCU clock ids */
  43. #define BCM281XX_MASTER_CCU_SDIO1 0
  44. #define BCM281XX_MASTER_CCU_SDIO2 1
  45. #define BCM281XX_MASTER_CCU_SDIO3 2
  46. #define BCM281XX_MASTER_CCU_SDIO4 3
  47. #define BCM281XX_MASTER_CCU_USB_IC 4
  48. #define BCM281XX_MASTER_CCU_HSIC2_48M 5
  49. #define BCM281XX_MASTER_CCU_HSIC2_12M 6
  50. #define BCM281XX_MASTER_CCU_CLOCK_COUNT 7
  51. /* slave CCU clock ids */
  52. #define BCM281XX_SLAVE_CCU_UARTB 0
  53. #define BCM281XX_SLAVE_CCU_UARTB2 1
  54. #define BCM281XX_SLAVE_CCU_UARTB3 2
  55. #define BCM281XX_SLAVE_CCU_UARTB4 3
  56. #define BCM281XX_SLAVE_CCU_SSP0 4
  57. #define BCM281XX_SLAVE_CCU_SSP2 5
  58. #define BCM281XX_SLAVE_CCU_BSC1 6
  59. #define BCM281XX_SLAVE_CCU_BSC2 7
  60. #define BCM281XX_SLAVE_CCU_BSC3 8
  61. #define BCM281XX_SLAVE_CCU_PWM 9
  62. #define BCM281XX_SLAVE_CCU_CLOCK_COUNT 10
  63. #endif /* _CLOCK_BCM281XX_H */