All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dinh Nguyen <dinguyen@opensource.altera.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] placement for new clock drivers
Date: Tue, 1 Mar 2016 16:16:25 -0600	[thread overview]
Message-ID: <56D614B9.5090202@opensource.altera.com> (raw)
In-Reply-To: <CAPnjgZ1iU12P7Lrthbo=c9pfSje3vK2-mMBAjvrhgmHrF_aqFA@mail.gmail.com>

Hi Simon,

On 02/29/2016 08:03 PM, Simon Glass wrote:
>>
>> I think going forward, it would make sense to place the driver to be of
>> UCLASS_CLK and would go into drivers/clk/, instead of under
>> arch/arm/mach-socfpga directory, Am I correct in assuming that?
> 
> Yes.
> 

Do you see any benefits to moving an existing clock driver that is in
arch/ to drivers/clk and making it UCLASS_CLK?

> 
> Do you have a driver for altr,clk-mgr? If not you could add a driver,
> or maybe "simple-bus" to the compatible string.
> 
> If you add a driver, see simple_bus_post_bind() for the function you
> need to call to bind devices in sub-nodes.
> 

The reason I ask is that I think I will have to create a driver for
"altr,clk-mgr" for the Arria10 platform, so I'm just wondering if I
should do the same for a legacy clock manager.

Thanks,
Dinh

  reply	other threads:[~2016-03-01 22:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-29 16:56 [U-Boot] placement for new clock drivers Dinh Nguyen
2016-03-01  2:03 ` Simon Glass
2016-03-01 22:16   ` Dinh Nguyen [this message]
2016-03-02  4:25     ` Simon Glass

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=56D614B9.5090202@opensource.altera.com \
    --to=dinguyen@opensource.altera.com \
    --cc=u-boot@lists.denx.de \
    /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.