net: smsc911x: Add GPIO functions to the driver
Add hooks to control the relevant Gpio pin from the Ethernet driver. This allows the driver to drive the GPIO line low or high during suspend and resume for power management. Change-Id: Idfcf547501198d155d314a30923fd4de440840a9 Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
This commit is contained in:
committed by
Stephen Boyd
parent
e61d2b7e6e
commit
66e014b30f
@@ -24,7 +24,14 @@
|
||||
#include <linux/phy.h>
|
||||
|
||||
/* platform_device configuration data, should be assigned to
|
||||
* the platform_device's dev.platform_data */
|
||||
* the platform_device's dev.platform_data
|
||||
* Provides 2 GPIO-related fields
|
||||
* reset_gpio to map the ETHERNET_RESET GPIO pin
|
||||
* has_reset_gpio - to indicate if the GPIO is being set(1) or not(0)
|
||||
* and remain compatible with architectures not using GPIOs
|
||||
* Default would be zero if its not being assigned any value.
|
||||
* Both values would need to set in the appropriate board file
|
||||
*/
|
||||
struct smsc911x_platform_config {
|
||||
unsigned int irq_polarity;
|
||||
unsigned int irq_type;
|
||||
@@ -32,6 +39,8 @@ struct smsc911x_platform_config {
|
||||
unsigned int shift;
|
||||
phy_interface_t phy_interface;
|
||||
unsigned char mac[6];
|
||||
unsigned char has_reset_gpio;
|
||||
unsigned int reset_gpio;
|
||||
};
|
||||
|
||||
/* Constants for platform_device irq polarity configuration */
|
||||
|
||||
Reference in New Issue
Block a user