sh_mmcif.h 1008 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * include/linux/mmc/sh_mmcif.h
  3. *
  4. * platform data for eMMC driver
  5. *
  6. * Copyright (C) 2010 Renesas Solutions Corp.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License.
  11. *
  12. */
  13. #ifndef __SH_MMCIF_H__
  14. #define __SH_MMCIF_H__
  15. /*
  16. * MMCIF : CE_CLK_CTRL [19:16]
  17. * 1000 : Peripheral clock / 512
  18. * 0111 : Peripheral clock / 256
  19. * 0110 : Peripheral clock / 128
  20. * 0101 : Peripheral clock / 64
  21. * 0100 : Peripheral clock / 32
  22. * 0011 : Peripheral clock / 16
  23. * 0010 : Peripheral clock / 8
  24. * 0001 : Peripheral clock / 4
  25. * 0000 : Peripheral clock / 2
  26. * 1111 : Peripheral clock (sup_pclk set '1')
  27. */
  28. struct sh_mmcif_plat_data {
  29. void (*set_pwr)(struct platform_device *pdev, int state);
  30. void (*down_pwr)(struct platform_device *pdev);
  31. u8 sup_pclk; /* 1 :SH7757, 0: SH7724/SH7372 */
  32. unsigned long caps;
  33. u32 ocr;
  34. };
  35. #endif /* __SH_MMCIF_H__ */