mtd-davinci-aemif.h 769 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * TI DaVinci AEMIF support
  3. *
  4. * Copyright 2010 (C) Texas Instruments, Inc. http://www.ti.com/
  5. *
  6. * This file is licensed under the terms of the GNU General Public License
  7. * version 2. This program is licensed "as is" without any warranty of any
  8. * kind, whether express or implied.
  9. */
  10. #ifndef _MACH_DAVINCI_AEMIF_H
  11. #define _MACH_DAVINCI_AEMIF_H
  12. #include <linux/platform_device.h>
  13. #define NRCSR_OFFSET 0x00
  14. #define AWCCR_OFFSET 0x04
  15. #define A1CR_OFFSET 0x10
  16. #define ACR_ASIZE_MASK 0x3
  17. #define ACR_EW_MASK BIT(30)
  18. #define ACR_SS_MASK BIT(31)
  19. /* All timings in nanoseconds */
  20. struct davinci_aemif_timing {
  21. u8 wsetup;
  22. u8 wstrobe;
  23. u8 whold;
  24. u8 rsetup;
  25. u8 rstrobe;
  26. u8 rhold;
  27. u8 ta;
  28. };
  29. int davinci_aemif_setup(struct platform_device *pdev);
  30. #endif