board: msm8x60: enable ethernet on dragonboard
When dragonboard is detected change ethernet GPIO reset
to appropriate value
Signed-off-by: Terence Hampson <thampson@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-msm8x60.c b/arch/arm/mach-msm/board-msm8x60.c
index 4515df0..4015fc7 100644
--- a/arch/arm/mach-msm/board-msm8x60.c
+++ b/arch/arm/mach-msm/board-msm8x60.c
@@ -123,6 +123,7 @@
#define MDM2AP_SYNC 129
+#define GPIO_ETHERNET_RESET_N_DRAGON 30
#define LCDC_SPI_GPIO_CLK 73
#define LCDC_SPI_GPIO_CS 72
#define LCDC_SPI_GPIO_MOSI 70
@@ -9914,6 +9915,10 @@
fixup_i2c_configs();
register_i2c_devices();
+ if (machine_is_msm8x60_dragon())
+ smsc911x_config.reset_gpio
+ = GPIO_ETHERNET_RESET_N_DRAGON;
+
platform_device_register(&smsc911x_device);
#if (defined(CONFIG_SPI_QUP)) && \