From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Ben Dooks <ben-linux@fluff.org>, Marek Va??ut <marek.vasut@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.arm.linux.org.uk
Subject: Re: [PATCH] PalmTX initial support
Date: Wed, 2 Jul 2008 23:03:56 +0100 [thread overview]
Message-ID: <20080702220356.GE19143@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20080702204110.GA22107@fluff.org.uk>
On Wed, Jul 02, 2008 at 09:41:10PM +0100, Ben Dooks wrote:
> hmm, why isn't the pxa sdmmc driver doing something about the
> detection for the cards?
Because there's no standard way to detect MMC cards on PXA hardware.
> > +/******************************************************************************
> > + * GPIO keys
> > + ******************************************************************************/
> > +#ifdef CONFIG_KEYBOARD_GPIO
> > +static struct gpio_keys_button palmtx_pxa_buttons[] = {
> > + {KEY_F8, GPIO_NR_PALMTX_HOTSYNC_BUTTON_N, 1, "HotSync Button" },
> > +};
>
> I've never seen the pooint of #ifdefs for platform data, just bung
> the lot in, it is always possible to build and an insert a new driver
> module to support this after building the zImage.
And this initialiser should be using named initialisers.
> > +static struct generic_bl_info palmtx_bl_info = {
> > + .max_intensity = PALMTX_MAX_INTENSITY,
> > + .default_intensity = PALMTX_MAX_INTENSITY,
> > + .set_bl_intensity = palmtx_set_bl_intensity,
> > + .limit_mask = PALMTX_LIMIT_MASK,
> > +};
>
> go and have a look at the new pwm stuff.
It's found in the 'pxa' branch of my git tree. See the website for a link
to it.
> > +static void palmtx_irda_transceiver_mode(struct device *dev, int mode)
> > +{
> > + unsigned long flags;
> > +
> > + local_irq_save(flags);
> > +
> > + if (mode & IR_SIRMODE)
> > + printk(KERN_INFO "IrDA: setting mode to SIR\n");
> > + else if (mode & IR_FIRMODE)
> > + printk(KERN_INFO "IrDA: setting mode to FIR\n");
Are these useful?
> > +
> > + if (mode & IR_OFF) {
> > + printk(KERN_INFO "IrDA: turning transceiver OFF\n");
Ditto.
> > + gpio_set_value(GPIO_NR_PALMTX_IR_DISABLE, 1);
> > + } else {
> > + printk(KERN_INFO "IrDA: turning transceiver ON\n");
Ditto.
> > + gpio_set_value(GPIO_NR_PALMTX_IR_DISABLE, 0);
> > + gpio_set_value(GPIO47_ICPTXD_MD, 1);
> > + mdelay(30);
> > + gpio_set_value(GPIO47_ICPTXD_MD, 0);
Don't you have to configure GPIO47 as a GPIO to change its state?
Since you don't, and I assume you've tested this, I think you've
proven that you can delete the fiddling with GPIO47.
> > +/******************************************************************************
> > + * AC97
> > + ******************************************************************************/
> > +static struct platform_device palmtx_ac97 = {
> > + .name = "pxa2xx-ac97",
> > + .id = 0,
> > +};
There's an AC97 device now in the pxa branch.
next prev parent reply other threads:[~2008-07-02 22:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-02 20:32 [PATCH] PalmTX initial support Marek Vašut
2008-07-02 20:41 ` Ben Dooks
2008-07-02 22:03 ` Russell King - ARM Linux [this message]
2008-07-02 22:52 ` Marek Vasut
2008-07-02 23:14 ` Russell King - ARM Linux
2008-07-02 23:24 ` Marek Vasut
2008-07-03 7:45 ` Russell King - ARM Linux
2008-07-03 15:17 ` Marek Vasut
2008-07-03 17:01 ` Russell King - ARM Linux
2008-07-03 18:19 ` Marek Vasut
2008-07-04 16:11 ` Dmitry Baryshkov
2008-07-04 21:13 ` Mark Brown
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=20080702220356.GE19143@flint.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=ben-linux@fluff.org \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=marek.vasut@gmail.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