hardware_ti816x.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * hardware_ti816x.h
  3. *
  4. * TI816x hardware specific header
  5. *
  6. * Copyright (C) 2013, Adeneo Embedded <www.adeneo-embedded.com>
  7. * Antoine Tenart, <atenart@adeneo-embedded.com>
  8. * Based on TI-PSP-04.00.02.14
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of
  13. * the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR /PURPOSE. See the
  18. * GNU General Public License for more details.
  19. */
  20. #ifndef __AM33XX_HARDWARE_TI816X_H
  21. #define __AM33XX_HARDWARE_TI816X_H
  22. /* UART */
  23. #define UART0_BASE 0x48020000
  24. #define UART1_BASE 0x48022000
  25. #define UART2_BASE 0x48024000
  26. /* Watchdog Timer */
  27. #define WDT_BASE 0x480C2000
  28. /* Control Module Base Address */
  29. #define CTRL_BASE 0x48140000
  30. #define CTRL_DEVICE_BASE 0x48140600
  31. /* PRCM Base Address */
  32. #define PRCM_BASE 0x48180000
  33. #define PRM_RSTCTRL (PRCM_BASE + 0x00A0)
  34. #define PRM_RSTST (PRM_RSTCTRL + 8)
  35. /* VTP Base address */
  36. #define VTP0_CTRL_ADDR 0x48198358
  37. #define VTP1_CTRL_ADDR 0x4819A358
  38. /* DDR Base address */
  39. #define DDR_PHY_CMD_ADDR 0x48198000
  40. #define DDR_PHY_DATA_ADDR 0x481980C8
  41. #define DDR_PHY_CMD_ADDR2 0x4819A000
  42. #define DDR_PHY_DATA_ADDR2 0x4819A0C8
  43. #define DDR_DATA_REGS_NR 4
  44. #define DDRPHY_0_CONFIG_BASE 0x48198000
  45. #define DDRPHY_1_CONFIG_BASE 0x4819A000
  46. #define DDRPHY_CONFIG_BASE ((emif == 0) ? \
  47. DDRPHY_0_CONFIG_BASE : DDRPHY_1_CONFIG_BASE)
  48. /* RTC base address */
  49. #define RTC_BASE 0x480C0000
  50. #endif /* __AM33XX_HARDWARE_TI816X_H */