spi-gpio: Implement spidelay for busses that need it.
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1101-fix-suspend-gps-tx-level.patch.patch
1 From 0df922c0e1c6cdbfb8b2d2d0f7b474d09d121510 Mon Sep 17 00:00:00 2001
2 From: warmcat <andy@warmcat.com>
3 Date: Sun, 13 Apr 2008 07:25:51 +0100
4 Subject: [PATCH] fix-suspend-gps-tx-level.patch
5
6 We used to drive output high into GPS unit in suspend
7
8 Signed-off-by: Andy Green <andy@openmoko.com>
9 ---
10 arch/arm/plat-s3c24xx/neo1973_pm_gps.c | 14 ++++++++++++++
11 1 files changed, 14 insertions(+), 0 deletions(-)
12
13 diff --git a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
14 index 6bd8054..e8cfb96 100644
15 --- a/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
16 +++ b/arch/arm/plat-s3c24xx/neo1973_pm_gps.c
17 @@ -485,6 +485,12 @@ static int gta01_pm_gps_suspend(struct platform_device *pdev,
18
19 #ifdef CONFIG_MACH_NEO1973_GTA02
20 if (machine_is_neo1973_gta02()) {
21 + /* take care not to power unpowered GPS from GPIO */
22 + s3c2410_gpio_cfgpin(S3C2410_GPH4, S3C2410_GPH4_OUTP);
23 + s3c2410_gpio_setpin(S3C2410_GPH4, 0);
24 + /* don't let RX from unpowered GPS float */
25 + s3c2410_gpio_pullup(S3C2410_GPH5, 1);
26 +
27 /* FIXME */
28 pcf50633_onoff_set(pcf50633_global,
29 PCF50633_REGULATOR_LDO5, 0);
30 @@ -505,6 +511,14 @@ static int gta01_pm_gps_resume(struct platform_device *pdev)
31
32 #ifdef CONFIG_MACH_NEO1973_GTA02
33 if (machine_is_neo1973_gta02()) {
34 + /*
35 + * resume TXD1 function since we power GPS now... er..
36 + * WTF? FIXME We always power GPS on resume ??
37 + */
38 + s3c2410_gpio_cfgpin(S3C2410_GPH4, S3C2410_GPH4_TXD1);
39 + /* remove pulldown now it won't be floating any more */
40 + s3c2410_gpio_pullup(S3C2410_GPH5, 0);
41 +
42 /* FIXME */
43 pcf50633_onoff_set(pcf50633_global,
44 PCF50633_REGULATOR_LDO5, 1);
45 --
46 1.5.6.5
47
This page took 0.043827 seconds and 5 git commands to generate.