Thread (1 message) 1 message, 1 author, 2010-05-18
DORMANTno replies

[PATCH v2 3/9] ARM: SAMSUNG: Implements cfg_gpio function for Samsung touchscreen

From: Arnaud Patard Rtp <hidden>
Date: 2010-05-18 08:13:31
Also in: linux-samsung-soc

Kukjin Kim [off-list ref] writes:

Hi,

[...]
+
+/**
+ * s3c24xx_ts_cfg_gpio - configure gpio for s3c2410 systems
+ *
+ * Configure the GPIO for the S3C2410 system, where we have external FETs
+ * connected to the device (later systems such as the S3C2440 integrate
+ * these into the device).
+ */
+void s3c24xx_ts_cfg_gpio(struct platform_device *dev)
+{
+	s3c2410_gpio_cfgpin(S3C2410_GPG(12), S3C2410_GPG12_XMON);
+	s3c2410_gpio_cfgpin(S3C2410_GPG(13), S3C2410_GPG13_nXPON);
+	s3c2410_gpio_cfgpin(S3C2410_GPG(14), S3C2410_GPG14_YMON);
+	s3c2410_gpio_cfgpin(S3C2410_GPG(15), S3C2410_GPG15_nYPON);
+}
hmm... thinking more about this, why don't you put that in the
arch/arm/plat-s3c24xx/devs.c file and then set the cfg_gpio hook in
s3c24xx_ts_set_platdata() for 2410 platforms ? 
This should be smaller change and will set it for all s3c2410 platforms
using the touchscreen once for all and "hide" it  instead of having to
set it in all machine files using the touchscreen.

Arnaud
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help