From: "Trilok Soni" <soni.trilok@gmail.com>
To: "Tony Lindgren" <tony@atomide.com>
Cc: samuel@sortiz.org, linux-kernel@vger.kernel.org,
irda-users@lists.sourceforge.net,
"Andrew Morton" <akpm@linux-foundation.org>,
linux-omap@vger.kernel.org
Subject: Re: [irda-users] [PATCH] OMAP IrDA driver
Date: Mon, 22 Dec 2008 16:50:25 +0530 [thread overview]
Message-ID: <5d5443650812220320q365b97e4hdff226cb8101f6ed@mail.gmail.com> (raw)
In-Reply-To: <20081205203216.GJ9714@atomide.com>
Hi Tony,
>
>> +
>> +/*
>> + * Set the IrDA communications speed.
>> + * Interrupt have to be disabled here.
>> + */
>> +static int omap_irda_startup(struct net_device *dev)
>> +{
>> + struct omap_irda *omap_ir = netdev_priv(dev);
>> +
>> + /* FIXME: use clk_* apis for UART3 clock*/
>> + /* Enable UART3 clock and set UART3 to IrDA mode */
>> + if (machine_is_omap_h2() || machine_is_omap_h3())
>> + omap_writel(omap_readl(MOD_CONF_CTRL_0) | (1 << 31) | (1 << 15),
>> + MOD_CONF_CTRL_0);
This looks like muxing on H3.
>> +
>> + /* Only for H2?
>> + */
>> + if (omap_ir->pdata->transceiver_mode && machine_is_omap_h2()) {
>> + /* Is it select_irda on H2 ? */
>> + omap_writel(omap_readl(FUNC_MUX_CTRL_A) | 7,
>> + FUNC_MUX_CTRL_A);
>> + omap_ir->pdata->transceiver_mode(omap_ir->dev, IR_SIRMODE);
>> + }
>> +
>
I can move this to board-h3.c file instead with platform data flag probably.
--
---Trilok Soni
http://triloksoni.wordpress.com
http://www.linkedin.com/in/triloksoni
next prev parent reply other threads:[~2008-12-22 11:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-05 6:34 Trilok Soni
2008-12-05 9:28 ` [irda-users] " samuel
2008-12-05 9:48 ` Trilok Soni
2008-12-05 20:32 ` Tony Lindgren
2008-12-22 11:20 ` Trilok Soni [this message]
2008-12-05 21:53 ` Felipe Balbi
2008-12-22 11:24 ` Trilok Soni
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=5d5443650812220320q365b97e4hdff226cb8101f6ed@mail.gmail.com \
--to=soni.trilok@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=irda-users@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=samuel@sortiz.org \
--cc=tony@atomide.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®