dm814.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright 2017 Texas Instruments, Inc.
  3. *
  4. * This software is licensed under the terms of the GNU General Public
  5. * License version 2, as published by the Free Software Foundation, and
  6. * may be copied, distributed, and modified under those terms.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef __DT_BINDINGS_CLK_DM814_H
  14. #define __DT_BINDINGS_CLK_DM814_H
  15. #define DM814_CLKCTRL_OFFSET 0x0
  16. #define DM814_CLKCTRL_INDEX(offset) ((offset) - DM814_CLKCTRL_OFFSET)
  17. /* default clocks */
  18. #define DM814_USB_OTG_HS_CLKCTRL DM814_CLKCTRL_INDEX(0x58)
  19. /* alwon clocks */
  20. #define DM814_UART1_CLKCTRL DM814_CLKCTRL_INDEX(0x150)
  21. #define DM814_UART2_CLKCTRL DM814_CLKCTRL_INDEX(0x154)
  22. #define DM814_UART3_CLKCTRL DM814_CLKCTRL_INDEX(0x158)
  23. #define DM814_GPIO1_CLKCTRL DM814_CLKCTRL_INDEX(0x15c)
  24. #define DM814_GPIO2_CLKCTRL DM814_CLKCTRL_INDEX(0x160)
  25. #define DM814_I2C1_CLKCTRL DM814_CLKCTRL_INDEX(0x164)
  26. #define DM814_I2C2_CLKCTRL DM814_CLKCTRL_INDEX(0x168)
  27. #define DM814_WD_TIMER_CLKCTRL DM814_CLKCTRL_INDEX(0x18c)
  28. #define DM814_MCSPI1_CLKCTRL DM814_CLKCTRL_INDEX(0x190)
  29. #define DM814_GPMC_CLKCTRL DM814_CLKCTRL_INDEX(0x1d0)
  30. #define DM814_CPGMAC0_CLKCTRL DM814_CLKCTRL_INDEX(0x1d4)
  31. #define DM814_MPU_CLKCTRL DM814_CLKCTRL_INDEX(0x1dc)
  32. #define DM814_RTC_CLKCTRL DM814_CLKCTRL_INDEX(0x1f0)
  33. #define DM814_TPCC_CLKCTRL DM814_CLKCTRL_INDEX(0x1f4)
  34. #define DM814_TPTC0_CLKCTRL DM814_CLKCTRL_INDEX(0x1f8)
  35. #define DM814_TPTC1_CLKCTRL DM814_CLKCTRL_INDEX(0x1fc)
  36. #define DM814_TPTC2_CLKCTRL DM814_CLKCTRL_INDEX(0x200)
  37. #define DM814_TPTC3_CLKCTRL DM814_CLKCTRL_INDEX(0x204)
  38. #define DM814_MMC1_CLKCTRL DM814_CLKCTRL_INDEX(0x21c)
  39. #define DM814_MMC2_CLKCTRL DM814_CLKCTRL_INDEX(0x220)
  40. #define DM814_MMC3_CLKCTRL DM814_CLKCTRL_INDEX(0x224)
  41. #endif