syscfg_defs.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Copyright (C) 2011
  3. * Heiko Schocher, DENX Software Engineering, hs@denx.de.
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. #ifndef _DV_SYSCFG_DEFS_H_
  24. #define _DV_SYSCFG_DEFS_H_
  25. #ifndef CONFIG_SOC_DA8XX
  26. /* System Control Module register structure for DM365 */
  27. struct dv_sys_module_regs {
  28. unsigned int pinmux[5]; /* 0x00 */
  29. unsigned int bootcfg; /* 0x14 */
  30. unsigned int arm_intmux; /* 0x18 */
  31. unsigned int edma_evtmux; /* 0x1C */
  32. unsigned int ddr_slew; /* 0x20 */
  33. unsigned int clkout; /* 0x24 */
  34. unsigned int device_id; /* 0x28 */
  35. unsigned int vdac_config; /* 0x2C */
  36. unsigned int timer64_ctl; /* 0x30 */
  37. unsigned int usbbphy_ctl; /* 0x34 */
  38. unsigned int misc; /* 0x38 */
  39. unsigned int mstpri[2]; /* 0x3C */
  40. unsigned int vpss_clkctl; /* 0x44 */
  41. unsigned int peri_clkctl; /* 0x48 */
  42. unsigned int deepsleep; /* 0x4C */
  43. unsigned int dft_enable; /* 0x50 */
  44. unsigned int debounce[8]; /* 0x54 */
  45. unsigned int vtpiocr; /* 0x74 */
  46. unsigned int pupdctl0; /* 0x78 */
  47. unsigned int pupdctl1; /* 0x7C */
  48. unsigned int hdimcopbt; /* 0x80 */
  49. unsigned int pll0_config; /* 0x84 */
  50. unsigned int pll1_config; /* 0x88 */
  51. };
  52. #define VPTIO_RDY (1 << 15)
  53. #define VPTIO_IOPWRDN (1 << 14)
  54. #define VPTIO_CLRZ (1 << 13)
  55. #define VPTIO_LOCK (1 << 7)
  56. #define VPTIO_PWRDN (1 << 6)
  57. #define VPSS_CLK_CTL_VPSS_CLKMD (1 << 7)
  58. #define dv_sys_module_regs \
  59. ((struct dv_sys_module_regs *)DAVINCI_SYSTEM_MODULE_BASE)
  60. #endif /* !CONFIG_SOC_DA8XX */
  61. #endif /* _DV_SYSCFG_DEFS_H_ */