summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/include
diff options
context:
space:
mode:
authorMike Dunn <mikedunn@newsguy.com>2012-12-27 10:02:17 -0800
committerHaojian Zhuang <haojian.zhuang@linaro.org>2013-01-23 16:56:32 +0800
commit2c33727a62ac07eed3ae423c209f549394c5c4e9 (patch)
tree051f8fe490a06feac9681f9295469a4f41e7e44f /arch/arm/mach-pxa/include
parent7d1f9aeff1ee4a20b1aeb377dd0f579fe9647619 (diff)
downloadblackbird-op-linux-2c33727a62ac07eed3ae423c209f549394c5c4e9.tar.gz
blackbird-op-linux-2c33727a62ac07eed3ae423c209f549394c5c4e9.zip
ARM: palmtreo: fix lcd initilialization on treo680
This patch gets the LCD working on my Palm Treo680 by adding some code that manages the three gpios interfaced to the lcd on the Treo 680. The precise role of each gpio in the hardware architecture is not entirely clear to me; this patch is the result of trial-and-error and observing how the PalmOS code initializes the lcd. The need for this patch is not evident when Linux is loaded from PalmOS, because at that point the lcd-related gpios have already been configured. But when booting the kernel by other means, this patch is required unless the bootloader has performed the necessary initialializations. Signed-off-by: Mike Dunn <mikedunn@newsguy.com> Acked-by: Tomas Cech <sleep_walker@suse.cz> Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/include')
-rw-r--r--arch/arm/mach-pxa/include/mach/palmtreo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/include/mach/palmtreo.h b/arch/arm/mach-pxa/include/mach/palmtreo.h
index 2d3f14e3be29..32661945d4c3 100644
--- a/arch/arm/mach-pxa/include/mach/palmtreo.h
+++ b/arch/arm/mach-pxa/include/mach/palmtreo.h
@@ -44,6 +44,9 @@
#define GPIO_NR_TREO680_VIBRATE_EN 44
#define GPIO_NR_TREO680_KEYB_BL 24
#define GPIO_NR_TREO680_BT_EN 43
+#define GPIO_NR_TREO680_LCD_POWER 77
+#define GPIO_NR_TREO680_LCD_EN 86
+#define GPIO_NR_TREO680_LCD_EN_N 25
#endif /* CONFIG_MACH_TREO680 */
/* Centro685 specific GPIOs */
OpenPOWER on IntegriCloud