Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e964252 authored by Charulatha V's avatar Charulatha V Committed by Tony Lindgren
Browse files

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: default avatarCharulatha V <charu@ti.com>
Acked-by: default avatarKevin Hilman <khilman@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent e47c3c0c
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -23,6 +23,7 @@
#define ZOOM_SMSC911X_GPIO	158
#define ZOOM_SMSC911X_GPIO	158
#define ZOOM_QUADUART_CS	3
#define ZOOM_QUADUART_CS	3
#define ZOOM_QUADUART_GPIO	102
#define ZOOM_QUADUART_GPIO	102
#define ZOOM_QUADUART_RST_GPIO	152
#define QUART_CLK		1843200
#define QUART_CLK		1843200
#define DEBUG_BASE		0x08000000
#define DEBUG_BASE		0x08000000
#define ZOOM_ETHR_START	DEBUG_BASE
#define ZOOM_ETHR_START	DEBUG_BASE
@@ -67,6 +68,14 @@ static inline void __init zoom_init_quaduart(void)
	unsigned long cs_mem_base;
	unsigned long cs_mem_base;
	int quart_gpio = 0;
	int quart_gpio = 0;


	if (gpio_request_one(ZOOM_QUADUART_RST_GPIO,
				GPIOF_OUT_INIT_LOW,
				"TL16CP754C GPIO") < 0) {
		pr_err("Failed to request GPIO%d for TL16CP754C\n",
			ZOOM_QUADUART_RST_GPIO);
		return;
	}

	quart_cs = ZOOM_QUADUART_CS;
	quart_cs = ZOOM_QUADUART_CS;


	if (gpmc_cs_request(quart_cs, SZ_1M, &cs_mem_base) < 0) {
	if (gpmc_cs_request(quart_cs, SZ_1M, &cs_mem_base) < 0) {