gpmc-smc91x.h 1020 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * arch/arm/plat-omap/include/mach/gpmc-smc91x.h
  3. *
  4. * Copyright (C) 2009 Nokia Corporation
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __ASM_ARCH_OMAP_GPMC_SMC91X_H__
  11. #define GPMC_TIMINGS_SMC91C96 (1 << 4)
  12. #define GPMC_MUX_ADD_DATA (1 << 5) /* GPMC_CONFIG1_MUXADDDATA */
  13. #define GPMC_READ_MON (1 << 6) /* GPMC_CONFIG1_WAIT_READ_MON */
  14. #define GPMC_WRITE_MON (1 << 7) /* GPMC_CONFIG1_WAIT_WRITE_MON */
  15. struct omap_smc91x_platform_data {
  16. int cs;
  17. int gpio_irq;
  18. int gpio_pwrdwn;
  19. int gpio_reset;
  20. int wait_pin; /* Optional GPMC_CONFIG1_WAITPINSELECT */
  21. u32 flags;
  22. int (*retime)(void);
  23. };
  24. #if defined(CONFIG_SMC91X) || \
  25. defined(CONFIG_SMC91X_MODULE)
  26. extern void gpmc_smc91x_init(struct omap_smc91x_platform_data *d);
  27. #else
  28. #define board_smc91x_data NULL
  29. static inline void gpmc_smc91x_init(struct omap_smc91x_platform_data *d)
  30. {
  31. }
  32. #endif
  33. #endif