hardware_am43xx.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * hardware_am43xx.h
  4. *
  5. * AM43xx hardware specific header
  6. *
  7. * Copyright (C) 2013, Texas Instruments, Incorporated - http://www.ti.com/
  8. */
  9. #ifndef __AM43XX_HARDWARE_AM43XX_H
  10. #define __AM43XX_HARDWARE_AM43XX_H
  11. /* Module base addresses */
  12. /* L3 Fast Configuration Bandwidth Limiter Base Address */
  13. #define L3F_CFG_BWLIMITER 0x44005200
  14. /* UART Base Address */
  15. #define UART0_BASE 0x44E09000
  16. /* GPIO Base address */
  17. #define GPIO2_BASE 0x481AC000
  18. /* Watchdog Timer */
  19. #define WDT_BASE 0x44E35000
  20. /* Control Module Base Address */
  21. #define CTRL_BASE 0x44E10000
  22. #define CTRL_DEVICE_BASE 0x44E10600
  23. /* PRCM Base Address */
  24. #define PRCM_BASE 0x44DF0000
  25. #define CM_WKUP 0x44DF2800
  26. #define CM_PER 0x44DF8800
  27. #define CM_DPLL 0x44DF4200
  28. #define CM_RTC 0x44DF8500
  29. #define PRM_RSTCTRL (PRCM_BASE + 0x4000)
  30. #define PRM_RSTST (PRM_RSTCTRL + 4)
  31. /* VTP Base address */
  32. #define VTP0_CTRL_ADDR 0x44E10E0C
  33. #define VTP1_CTRL_ADDR 0x48140E10
  34. /* USB CTRL Base Address */
  35. #define USB1_CTRL 0x44e10628
  36. #define USB1_CTRL_CM_PWRDN BIT(0)
  37. #define USB1_CTRL_OTG_PWRDN BIT(1)
  38. /* DDR Base address */
  39. #define DDR_PHY_CMD_ADDR 0x44E12000
  40. #define DDR_PHY_DATA_ADDR 0x44E120C8
  41. #define DDR_PHY_CMD_ADDR2 0x47C0C800
  42. #define DDR_PHY_DATA_ADDR2 0x47C0C8C8
  43. #define DDR_DATA_REGS_NR 2
  44. /* CPSW Config space */
  45. #define CPSW_MDIO_BASE 0x4A101000
  46. /* RTC base address */
  47. #define RTC_BASE 0x44E3E000
  48. /* USB OTG */
  49. #define USB_OTG_SS1_BASE 0x48390000
  50. #define USB_OTG_SS1_GLUE_BASE 0x48380000
  51. #define USB2_PHY1_POWER 0x44E10620
  52. #define USB_OTG_SS2_BASE 0x483D0000
  53. #define USB_OTG_SS2_GLUE_BASE 0x483C0000
  54. #define USB2_PHY2_POWER 0x44E10628
  55. /* USB Clock Control */
  56. #define PRM_PER_USB_OTG_SS0_CLKCTRL (CM_PER + 0x260)
  57. #define PRM_PER_USB_OTG_SS1_CLKCTRL (CM_PER + 0x268)
  58. #define USBOTGSSX_CLKCTRL_MODULE_EN (1 << 1)
  59. #define USBOTGSSX_CLKCTRL_OPTFCLKEN_REFCLK960 (1 << 8)
  60. #define PRM_PER_USBPHYOCP2SCP0_CLKCTRL (CM_PER + 0x5b8)
  61. #define PRM_PER_USBPHYOCP2SCP1_CLKCTRL (CM_PER + 0x5c0)
  62. #define USBPHYOCPSCP_MODULE_EN (1 << 1)
  63. #define CM_DEVICE_INST 0x44df4100
  64. #define PRM_DEVICE_INST 0x44df4000
  65. #define USBOTGSSX_CLKCTRL_OPTFCLKEN_REFCLK960 (1 << 8)
  66. #define USBPHY0_CLKCTRL_OPTFCLKEN_CLK32K (1 << 8)
  67. /* EDMA3 Base Address */
  68. #define EDMA3_BASE 0x49000000
  69. #endif /* __AM43XX_HARDWARE_AM43XX_H */