bcm21664.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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_BCM21664_H
  15. #define _CLOCK_BCM21664_H
  16. /*
  17. * This file defines the values used to specify clocks provided by
  18. * the clock control units (CCUs) on Broadcom BCM21664 family SoCs.
  19. */
  20. /* bcm21664 CCU device tree "compatible" strings */
  21. #define BCM21664_DT_ROOT_CCU_COMPAT "brcm,bcm21664-root-ccu"
  22. #define BCM21664_DT_AON_CCU_COMPAT "brcm,bcm21664-aon-ccu"
  23. #define BCM21664_DT_MASTER_CCU_COMPAT "brcm,bcm21664-master-ccu"
  24. #define BCM21664_DT_SLAVE_CCU_COMPAT "brcm,bcm21664-slave-ccu"
  25. /* root CCU clock ids */
  26. #define BCM21664_ROOT_CCU_FRAC_1M 0
  27. #define BCM21664_ROOT_CCU_CLOCK_COUNT 1
  28. /* aon CCU clock ids */
  29. #define BCM21664_AON_CCU_HUB_TIMER 0
  30. #define BCM21664_AON_CCU_CLOCK_COUNT 1
  31. /* master CCU clock ids */
  32. #define BCM21664_MASTER_CCU_SDIO1 0
  33. #define BCM21664_MASTER_CCU_SDIO2 1
  34. #define BCM21664_MASTER_CCU_SDIO3 2
  35. #define BCM21664_MASTER_CCU_SDIO4 3
  36. #define BCM21664_MASTER_CCU_SDIO1_SLEEP 4
  37. #define BCM21664_MASTER_CCU_SDIO2_SLEEP 5
  38. #define BCM21664_MASTER_CCU_SDIO3_SLEEP 6
  39. #define BCM21664_MASTER_CCU_SDIO4_SLEEP 7
  40. #define BCM21664_MASTER_CCU_CLOCK_COUNT 8
  41. /* slave CCU clock ids */
  42. #define BCM21664_SLAVE_CCU_UARTB 0
  43. #define BCM21664_SLAVE_CCU_UARTB2 1
  44. #define BCM21664_SLAVE_CCU_UARTB3 2
  45. #define BCM21664_SLAVE_CCU_BSC1 3
  46. #define BCM21664_SLAVE_CCU_BSC2 4
  47. #define BCM21664_SLAVE_CCU_BSC3 5
  48. #define BCM21664_SLAVE_CCU_BSC4 6
  49. #define BCM21664_SLAVE_CCU_CLOCK_COUNT 7
  50. #endif /* _CLOCK_BCM21664_H */