aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-armadillo800eva.c
diff options
context:
space:
mode:
authorBastian Hecht <hechtb@gmail.com>2013-04-15 12:40:59 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-04-15 13:05:27 -0400
commitcbaf7f808081e10bd2a1d57cc9ef0c5138ca23ce (patch)
tree2338fb12cb52793fb742ca1eed79dc78a0871edb /arch/arm/mach-shmobile/board-armadillo800eva.c
parente6a90810559cc3755a5b1629d1fd0b914462f98c (diff)
ARM - shmobile: Armadillo800EVA: Move st1232 reset pin handling
We no longer need to set up the reset pin for the st1232 in the board code, but can pass the GPIO number via the platform data to the driver. This results in a cleaner grouping of the device setup. Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'arch/arm/mach-shmobile/board-armadillo800eva.c')
-rw-r--r--arch/arm/mach-shmobile/board-armadillo800eva.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c
index f2ec0777cfbe..5dc09358fedd 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva.c
@@ -24,6 +24,7 @@
24#include <linux/err.h> 24#include <linux/err.h>
25#include <linux/kernel.h> 25#include <linux/kernel.h>
26#include <linux/input.h> 26#include <linux/input.h>
27#include <linux/platform_data/st1232_pdata.h>
27#include <linux/irq.h> 28#include <linux/irq.h>
28#include <linux/platform_device.h> 29#include <linux/platform_device.h>
29#include <linux/gpio.h> 30#include <linux/gpio.h>
@@ -878,10 +879,15 @@ static struct platform_device i2c_gpio_device = {
878}; 879};
879 880
880/* I2C */ 881/* I2C */
882static struct st1232_pdata st1232_i2c0_pdata = {
883 .reset_gpio = 166,
884};
885
881static struct i2c_board_info i2c0_devices[] = { 886static struct i2c_board_info i2c0_devices[] = {
882 { 887 {
883 I2C_BOARD_INFO("st1232-ts", 0x55), 888 I2C_BOARD_INFO("st1232-ts", 0x55),
884 .irq = evt2irq(0x0340), 889 .irq = evt2irq(0x0340),
890 .platform_data = &st1232_i2c0_pdata,
885 }, 891 },
886 { 892 {
887 I2C_BOARD_INFO("wm8978", 0x1a), 893 I2C_BOARD_INFO("wm8978", 0x1a),
@@ -1005,7 +1011,6 @@ static void __init eva_init(void)
1005 1011
1006 /* Touchscreen */ 1012 /* Touchscreen */
1007 gpio_request(GPIO_FN_IRQ10, NULL); /* TP_INT */ 1013 gpio_request(GPIO_FN_IRQ10, NULL); /* TP_INT */
1008 gpio_request_one(GPIO_PORT166, GPIOF_OUT_INIT_HIGH, NULL); /* TP_RST_B */
1009 1014
1010 /* GETHER */ 1015 /* GETHER */
1011 gpio_request(GPIO_FN_ET_CRS, NULL); 1016 gpio_request(GPIO_FN_ET_CRS, NULL);