summaryrefslogtreecommitdiff
path: root/target/linux/s3c24xx/patches/0075-bugfix-deglitch-gpio-output-enable.patch.patch
diff options
context:
space:
mode:
authormirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-12 00:02:36 +0000
committermirko <mirko@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-12 00:02:36 +0000
commitcc3146824acbf585f487a803b4a2eadf36b9b47d (patch)
treeefab142ef89b35ce42e8a79e028eff15be362af8 /target/linux/s3c24xx/patches/0075-bugfix-deglitch-gpio-output-enable.patch.patch
parent22b3854919b7cb44d725eb7a7efd018ad9aec25c (diff)
add support for target 3c24xx (more known as Openmoko GTA02 "Freerunner") and merge it with the openmoko-target and the work Michael Buesch <mb> did
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13609 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches/0075-bugfix-deglitch-gpio-output-enable.patch.patch')
-rwxr-xr-xtarget/linux/s3c24xx/patches/0075-bugfix-deglitch-gpio-output-enable.patch.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches/0075-bugfix-deglitch-gpio-output-enable.patch.patch b/target/linux/s3c24xx/patches/0075-bugfix-deglitch-gpio-output-enable.patch.patch
new file mode 100755
index 0000000000..a0443e8e05
--- /dev/null
+++ b/target/linux/s3c24xx/patches/0075-bugfix-deglitch-gpio-output-enable.patch.patch
@@ -0,0 +1,43 @@
+From 25a9f8ef682fcc215a345202defb3884c2be080f Mon Sep 17 00:00:00 2001
+From: warmcat <andy@openmoko.com>
+Date: Fri, 25 Jul 2008 23:06:00 +0100
+Subject: [PATCH] bugfix-deglitch-gpio-output-enable.patch
+
+---
+ arch/arm/mach-s3c2440/mach-gta02.c | 10 ++++++++--
+ 1 files changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
+index 3816ea5..e32294b 100644
+--- a/arch/arm/mach-s3c2440/mach-gta02.c
++++ b/arch/arm/mach-s3c2440/mach-gta02.c
+@@ -1258,9 +1258,9 @@ static void __init gta02_machine_init(void)
+ s3c2410_gpio_setpin(GTA02_CHIP_PWD, 0);
+ break;
+ default:
+- s3c2410_gpio_cfgpin(GTA02_GPIO_nWLAN_RESET, S3C2410_GPIO_OUTPUT);
+ /* Chip is in reset state */
+ s3c2410_gpio_setpin(GTA02_GPIO_nWLAN_RESET, 0);
++ s3c2410_gpio_cfgpin(GTA02_GPIO_nWLAN_RESET, S3C2410_GPIO_OUTPUT);
+ mdelay(100);
+ /* Power is up */
+ s3c2410_gpio_setpin(GTA02_CHIP_PWD, 0);
+@@ -1300,8 +1300,14 @@ static void __init gta02_machine_init(void)
+ s3c2410_pm_init();
+
+ /* Set LCD_RESET / XRES to high */
+- s3c2410_gpio_cfgpin(GTA01_GPIO_LCD_RESET, S3C2410_GPIO_OUTPUT);
+ s3c2410_gpio_setpin(GTA01_GPIO_LCD_RESET, 1);
++ s3c2410_gpio_cfgpin(GTA01_GPIO_LCD_RESET, S3C2410_GPIO_OUTPUT);
++
++ s3c2410_gpio_setpin(S3C2410_GPD12, 1);
++ s3c2410_gpio_cfgpin(S3C2410_GPD12, S3C2410_GPIO_OUTPUT);
++
++ s3c2410_gpio_setpin(S3C2410_GPD13, 1);
++ s3c2410_gpio_cfgpin(S3C2410_GPD13, S3C2410_GPIO_OUTPUT);
+
+ /* Make sure the modem can wake us up */
+ set_irq_type(GTA02_IRQ_MODEM, IRQT_RISING);
+--
+1.5.6.3
+