Tim Nordell | cdd280b | 2010-09-27 16:05:49 +0000 | [diff] [blame] | 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 | |
| 14 | #ifndef __ASM_ARCH_OMAP_GPMC_SMSC911X_H__ |
| 15 | |
| 16 | struct omap_smsc911x_platform_data { |
Mike Rapoport | 21b4273 | 2011-04-16 22:29:30 +0000 | [diff] [blame] | 17 | int id; |
Tim Nordell | cdd280b | 2010-09-27 16:05:49 +0000 | [diff] [blame] | 18 | int cs; |
| 19 | int gpio_irq; |
| 20 | int gpio_reset; |
| 21 | u32 flags; |
| 22 | }; |
| 23 | |
Igor Grinberg | 11383a9 | 2011-04-26 16:25:56 +0000 | [diff] [blame] | 24 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) |
Tim Nordell | cdd280b | 2010-09-27 16:05:49 +0000 | [diff] [blame] | 25 | |
| 26 | extern void gpmc_smsc911x_init(struct omap_smsc911x_platform_data *d); |
| 27 | |
| 28 | #else |
| 29 | |
| 30 | static inline void gpmc_smsc911x_init(struct omap_smsc911x_platform_data *d) |
| 31 | { |
| 32 | } |
| 33 | |
| 34 | #endif |
| 35 | #endif |