gpmc-smsc911x.h 739 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * arch/arm/plat-omap/include/plat/gpmc-smsc911x.h
  3. *
  4. * Copyright (C) 2009 Li-Pro.Net
  5. * Stephan Linz <linz@li-pro.net>
  6. *
  7. * Modified from arch/arm/plat-omap/include/plat/gpmc-smc91x.h
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #ifndef __ASM_ARCH_OMAP_GPMC_SMSC911X_H__
  14. struct omap_smsc911x_platform_data {
  15. int id;
  16. int cs;
  17. int gpio_irq;
  18. int gpio_reset;
  19. u32 flags;
  20. };
  21. #if IS_ENABLED(CONFIG_SMSC911X)
  22. extern void gpmc_smsc911x_init(struct omap_smsc911x_platform_data *d);
  23. #else
  24. static inline void gpmc_smsc911x_init(struct omap_smsc911x_platform_data *d)
  25. {
  26. }
  27. #endif
  28. #endif