diff options
author | Charulatha V <charu@ti.com> | 2011-07-04 07:08:46 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-07-04 07:11:08 -0400 |
commit | 4e9642528cf5d8b5dee5818d796a4535b1748554 (patch) | |
tree | 7263d6d06b2e09906141a21d88d77563acccc69b /arch/arm/mach-omap2/board-zoom-debugboard.c | |
parent | e47c3c0c105a87837019535b3d9502ec40b4db43 (diff) |
omap: ZOOM: QUART: Request reset GPIO
Reset GPIO (OMAP_GPIO_152) for QUART in zoom2/zoom3 debug-board is
not requested at all. This would lead to problems if this GPIO is
wrongly requested. Hence request OMAP GPIO 152 for QUART RESET but
do not apply a reset pulse as it would reset QUART and
disturb the QUART settings.
Signed-off-by: Charulatha V <charu@ti.com>
Acked-by: Kevin Hilman <khilman@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-zoom-debugboard.c')
-rw-r--r-- | arch/arm/mach-omap2/board-zoom-debugboard.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-zoom-debugboard.c b/arch/arm/mach-omap2/board-zoom-debugboard.c index 6402e781c458..369c2eb7715b 100644 --- a/arch/arm/mach-omap2/board-zoom-debugboard.c +++ b/arch/arm/mach-omap2/board-zoom-debugboard.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #define ZOOM_SMSC911X_GPIO 158 | 23 | #define ZOOM_SMSC911X_GPIO 158 |
24 | #define ZOOM_QUADUART_CS 3 | 24 | #define ZOOM_QUADUART_CS 3 |
25 | #define ZOOM_QUADUART_GPIO 102 | 25 | #define ZOOM_QUADUART_GPIO 102 |
26 | #define ZOOM_QUADUART_RST_GPIO 152 | ||
26 | #define QUART_CLK 1843200 | 27 | #define QUART_CLK 1843200 |
27 | #define DEBUG_BASE 0x08000000 | 28 | #define DEBUG_BASE 0x08000000 |
28 | #define ZOOM_ETHR_START DEBUG_BASE | 29 | #define ZOOM_ETHR_START DEBUG_BASE |
@@ -67,6 +68,14 @@ static inline void __init zoom_init_quaduart(void) | |||
67 | unsigned long cs_mem_base; | 68 | unsigned long cs_mem_base; |
68 | int quart_gpio = 0; | 69 | int quart_gpio = 0; |
69 | 70 | ||
71 | if (gpio_request_one(ZOOM_QUADUART_RST_GPIO, | ||
72 | GPIOF_OUT_INIT_LOW, | ||
73 | "TL16CP754C GPIO") < 0) { | ||
74 | pr_err("Failed to request GPIO%d for TL16CP754C\n", | ||
75 | ZOOM_QUADUART_RST_GPIO); | ||
76 | return; | ||
77 | } | ||
78 | |||
70 | quart_cs = ZOOM_QUADUART_CS; | 79 | quart_cs = ZOOM_QUADUART_CS; |
71 | 80 | ||
72 | if (gpmc_cs_request(quart_cs, SZ_1M, &cs_mem_base) < 0) { | 81 | if (gpmc_cs_request(quart_cs, SZ_1M, &cs_mem_base) < 0) { |