mmc_host_def.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * (C) Copyright 2008
  3. * Texas Instruments, <www.ti.com>
  4. * Syed Mohammed Khasim <khasim@ti.com>
  5. *
  6. * See file CREDITS for list of people who contributed to this
  7. * project.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation's version 2 of
  12. * the License.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  22. * MA 02111-1307 USA
  23. */
  24. #ifndef MMC_HOST_DEF_H
  25. #define MMC_HOST_DEF_H
  26. #include <asm/omap_mmc.h>
  27. /* T2 Register definitions */
  28. #define T2_BASE 0x48002000
  29. typedef struct t2 {
  30. unsigned char res1[0x274]; /* 0x000 */
  31. unsigned int devconf0; /* 0x274 */
  32. unsigned char res2[0x060]; /* 0x278 */
  33. unsigned int devconf1; /* 0x2D8 */
  34. unsigned char res3[0x16C]; /* 0x2DC */
  35. unsigned int ctl_prog_io1; /* 0x448 */
  36. unsigned char res4[0x0D4]; /* 0x44C */
  37. unsigned int pbias_lite; /* 0x520 */
  38. } t2_t;
  39. #define MMCSDIO1ADPCLKISEL (1 << 24)
  40. #define MMCSDIO2ADPCLKISEL (1 << 6)
  41. #define EN_MMC1 (1 << 24)
  42. #define EN_MMC2 (1 << 25)
  43. #define EN_MMC3 (1 << 30)
  44. #define PBIASLITEPWRDNZ0 (1 << 1)
  45. #define PBIASSPEEDCTRL0 (1 << 2)
  46. #define PBIASLITEPWRDNZ1 (1 << 9)
  47. #define CTLPROGIO1SPEEDCTRL (1 << 20)
  48. /*
  49. * OMAP HSMMC register definitions
  50. */
  51. #define OMAP_HSMMC1_BASE 0x4809C000
  52. #define OMAP_HSMMC2_BASE 0x480B4000
  53. #define OMAP_HSMMC3_BASE 0x480AD000
  54. #endif /* MMC_HOST_DEF_H */