From: Eric Nelson <eric.nelson@boundarydevices.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Clock tree in U-Boot
Date: Fri, 17 Apr 2015 09:12:28 -0700 [thread overview]
Message-ID: <553130EC.40504@boundarydevices.com> (raw)
Hi all,
Heiko's recent patch set [1] to control the LDB clock on i.MX5/6 boards
makes it painfully obvious that some semblance of clock tree is needed,
even if it starts off as a shell.
We currently have routines declared in [2] that should be moved into
a more common spot:
void clk_enable(struct clk *clk);
void clk_disable(struct clk *clk);
u32 clk_get_rate(struct clk *clk);
int clk_set_rate(struct clk *clk, unsigned long rate);
long clk_round_rate(struct clk *clk, unsigned long rate);
int clk_set_parent(struct clk *clk, struct clk *parent);
int clk_get_usecount(struct clk *clk);
struct clk *clk_get_parent(struct clk *clk);
Can we get some agreement on a proper subset of [3] that's appropriate
for use in U-Boot?
My thought is that the list above, plus some form of clk_get() and/or
clk_get_sys() would be a good start.
Please advise,
Eric
[1] http://lists.denx.de/pipermail/u-boot/2015-April/thread.html#210677
[2] http://git.denx.de/?p=u-boot.git;a=blob;f=drivers/video/ipu.h#l245
[3]
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/linux/clk.h?id=refs/tags/v4.0
next reply other threads:[~2015-04-17 16:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-17 16:12 Eric Nelson [this message]
2015-04-17 22:49 ` [U-Boot] Clock tree in U-Boot 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=553130EC.40504@boundarydevices.com \
--to=eric.nelson@boundarydevices.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox