From: Sergei Shtylyov <sshtylyov@mvista.com>
To: srinath@mistralsolutions.com
Cc: linux-omap@vger.kernel.org, nm@ti.com, linux@arm.linux.org.uk,
umeshk@mistralsolutions.com, tony@atomide.com,
nagendra@mistralsolutions.com, linux-kernel@vger.kernel.org,
khilman@deeprootsystems.com, jdk@ti.com,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/2] AM35xx-Craneboard:Display: Add DVI and TV Support
Date: Fri, 29 Apr 2011 16:44:44 +0400 [thread overview]
Message-ID: <4DBAB2BC.1090202@ru.mvista.com> (raw)
In-Reply-To: <1304077261-17811-2-git-send-email-srinath@mistralsolutions.com>
Hello.
On 29-04-2011 15:41, srinath@mistralsolutions.com wrote:
> From: Srinath <srinath@mistralsolutions.com>
> Added Display (DVI and TV) support for CraneBoard.
> Signed-off-by: Srinath <srinath@mistralsolutions.com>
[...]
> diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c
> index 05867b5..83fe85b 100644
> --- a/arch/arm/mach-omap2/board-am3517crane.c
> +++ b/arch/arm/mach-omap2/board-am3517crane.c
[...]
> @@ -66,11 +69,83 @@ static struct usbhs_omap_board_data usbhs_bdata __initdata = {
> .reset_gpio_port[2] = -EINVAL
> };
>
> +static void __init am3517_crane_display_init(void)
> +{
> + int ret;
> +
> + ret = omap_mux_init_gpio(GPIO_DVI_ENABLE, OMAP_PIN_OUTPUT);
> + if (ret< 0) {
> + pr_err("Can not configure mux for GPIO_DVI_ENABLE %d\n",
> + GPIO_DVI_ENABLE);
> + return;
> + }
> +
> + ret = gpio_request(GPIO_DVI_ENABLE, "dvi_enable");
> + if (ret< 0) {
> + pr_err("Can not request GPIO %d\n", GPIO_DVI_ENABLE);
> + return;
> + }
> +
> + ret = gpio_direction_output(GPIO_DVI_ENABLE, 1);
> + if (ret< 0) {
> + gpio_free(GPIO_DVI_ENABLE);
> + pr_err("Unable to enable DVI\n");
> + return;
> + }
You can use gpio_request_one() ISO gpio_request()/gpio_direction_output().
WBR, Sergei
WARNING: multiple messages have this Message-ID (diff)
From: sshtylyov@mvista.com (Sergei Shtylyov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] AM35xx-Craneboard:Display: Add DVI and TV Support
Date: Fri, 29 Apr 2011 16:44:44 +0400 [thread overview]
Message-ID: <4DBAB2BC.1090202@ru.mvista.com> (raw)
In-Reply-To: <1304077261-17811-2-git-send-email-srinath@mistralsolutions.com>
Hello.
On 29-04-2011 15:41, srinath at mistralsolutions.com wrote:
> From: Srinath <srinath@mistralsolutions.com>
> Added Display (DVI and TV) support for CraneBoard.
> Signed-off-by: Srinath <srinath@mistralsolutions.com>
[...]
> diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c
> index 05867b5..83fe85b 100644
> --- a/arch/arm/mach-omap2/board-am3517crane.c
> +++ b/arch/arm/mach-omap2/board-am3517crane.c
[...]
> @@ -66,11 +69,83 @@ static struct usbhs_omap_board_data usbhs_bdata __initdata = {
> .reset_gpio_port[2] = -EINVAL
> };
>
> +static void __init am3517_crane_display_init(void)
> +{
> + int ret;
> +
> + ret = omap_mux_init_gpio(GPIO_DVI_ENABLE, OMAP_PIN_OUTPUT);
> + if (ret< 0) {
> + pr_err("Can not configure mux for GPIO_DVI_ENABLE %d\n",
> + GPIO_DVI_ENABLE);
> + return;
> + }
> +
> + ret = gpio_request(GPIO_DVI_ENABLE, "dvi_enable");
> + if (ret< 0) {
> + pr_err("Can not request GPIO %d\n", GPIO_DVI_ENABLE);
> + return;
> + }
> +
> + ret = gpio_direction_output(GPIO_DVI_ENABLE, 1);
> + if (ret< 0) {
> + gpio_free(GPIO_DVI_ENABLE);
> + pr_err("Unable to enable DVI\n");
> + return;
> + }
You can use gpio_request_one() ISO gpio_request()/gpio_direction_output().
WBR, Sergei
next prev parent reply other threads:[~2011-04-29 12:44 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <[PATCH]>
[not found] ` <ata:>
[not found] ` <libata-core:>
[not found] ` <Add>
[not found] ` <quirks>
[not found] ` <for>
[not found] ` <PNY>
[not found] ` <1TB>
[not found] ` <SATA>
[not found] ` <SSD>
2011-04-29 11:41 ` [PATCH 1/2] AM35xx-Craneboard: USB EHCI: Fix USB ECHI PHY reset srinath
2011-04-29 11:41 ` srinath at mistralsolutions.com
2011-04-29 12:39 ` Sergei Shtylyov
2011-04-29 12:39 ` Sergei Shtylyov
2011-04-29 11:41 ` [PATCH 2/2] AM35xx-Craneboard:Display: Add DVI and TV Support srinath
2011-04-29 11:41 ` srinath
2011-04-29 11:41 ` srinath at mistralsolutions.com
2011-04-29 12:44 ` Sergei Shtylyov [this message]
2011-04-29 12:44 ` Sergei Shtylyov
2011-05-02 13:40 ` [Patch v2] AM35xx-Craneboard: USB EHCI: Fix USB ECHI PHY reset srinath
2011-05-02 13:40 ` srinath at mistralsolutions.com
2011-05-02 13:40 ` [Patch v2] AM35xx-Craneboard:Display: Add DVI and TV Support srinath
2011-05-02 13:40 ` srinath at mistralsolutions.com
[not found] <[PATCH] ata: libata-core: Add quirks for PNY 1TB SATA SSD 916a>
2026-10-28 12:42 ` [PATCH] ata: libata-core: Add NOLPM quirk for PNY 1TB SATA SSD Thierry Vignaud
2026-10-28 12:54 ` sashiko-bot
2026-10-28 13:25 ` Thierry Vignaud
2026-10-28 14:54 ` [PATCH] ata: libata-core: Add NOLPM/NONCQ/1.5Gbps " Thierry Vignaud
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DBAB2BC.1090202@ru.mvista.com \
--to=sshtylyov@mvista.com \
--cc=jdk@ti.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=nagendra@mistralsolutions.com \
--cc=nm@ti.com \
--cc=srinath@mistralsolutions.com \
--cc=tony@atomide.com \
--cc=umeshk@mistralsolutions.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.