From: cgagneraud@techworks.ie (Christian Gagneraud)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ep93xx: introduce clk parent
Date: Fri, 09 Oct 2009 00:14:41 +0100 [thread overview]
Message-ID: <4ACE7261.1030302@techworks.ie> (raw)
In-Reply-To: <BD79186B4FD85F4B8E60E381CAEE190901DB7CDE@mi8nycmail19.Mi8.com>
H Hartley Sweeten wrote:
> On Thursday, October 08, 2009 2:29 PM, Christian Gagneraud wrote:
>> Hi,
>>
>> What's the status of this patch? It does not appear on the patch
>> tracker, and it's not in linus tree (or I'm missing something).
>>
>> I'm currently working on adding ADC support (no touchscreen for now)
>> and the problem is that touchscreen (ADC) and keypad use the same
>> clock. With this patch applied it would be possible to define the
>> shared ep93xx-keytch clock and add ep93xx-keypad and
>> ep93xx-touchscreen as children.
>
> Christian,
>
> I have a patch for clock.c that adds the keypad clock. This will
> also give you what you need to configure the adc clock. Hopefully
> I will get a chance to post that patch in the next couple days.
>
> As Russell already mentioned, the clk parent patch does not effect
> the adc clock. The common clock between them is actually the external
> crystal.
>
> The only thing they share is the configuration register used to set
> the clock divisor and to enable the clock. For the adc clock you
> will just need to add:
>
> +static struct clk clk_adc = {
> + .parent = &clk_xtali,
> + .sw_locked = 1,
> + .enable_reg = EP93XX_SYSCON_KEYTCHCLKDIV,
> + .enable_mask = EP93XX_SYSCON_KEYTCHCLKDIV_TSEN,
> + .set_rate = set_keytchclk_rate,
> +};
>
> And of course the proper INIT_CK() for clk_adc. The set_rate
> callback will be the same one used for the keypad, which will
> be in my coming patch.
Hartley,
The keypad clock is already in as is the et_keytchclk_rate too.
Can you explain me by the way why the keypad declares the clock with
dev_id="ep93xx-keypad" and no con_id, but the pwm declares the clock
with no dev_id and with con_id="clk_pwm"
Which of dev and con is the consumer and which one is the producer?
I'm a bit confuse between the platform_driver.name, the clock.dev_id
and the clock.con_id
As well I've noticed that the EP93XX keypad input driver does a
clock_get("clk_key"), but this clock doesn't exist. or did I miss
something.
Regards,
Chris
>
> Regards,
> Hartley
next prev parent reply other threads:[~2009-10-08 23:14 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-16 22:57 [PATCH] ep93xx: introduce clk parent H Hartley Sweeten
2009-09-23 22:48 ` H Hartley Sweeten
2009-09-30 19:53 ` Ryan Mallon
2009-09-30 21:30 ` H Hartley Sweeten
2009-10-01 14:59 ` Russell King - ARM Linux
2009-10-01 16:32 ` H Hartley Sweeten
2009-10-08 21:28 ` Christian Gagneraud
2009-10-08 21:34 ` Russell King - ARM Linux
2009-10-08 22:09 ` Christian Gagneraud
2009-10-08 23:05 ` H Hartley Sweeten
2009-10-08 22:32 ` H Hartley Sweeten
2009-10-08 22:38 ` Russell King - ARM Linux
2009-10-08 22:45 ` H Hartley Sweeten
2009-10-08 22:40 ` H Hartley Sweeten
2009-10-08 23:14 ` Christian Gagneraud [this message]
2009-10-08 23:25 ` H Hartley Sweeten
2009-10-09 17:11 ` Christian Gagneraud
2009-10-09 17:30 ` H Hartley Sweeten
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=4ACE7261.1030302@techworks.ie \
--to=cgagneraud@techworks.ie \
--cc=linux-arm-kernel@lists.infradead.org \
/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.