From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/2] ARM: imx6qdl: switch to use macro for clock ID
Date: Sun, 15 Jun 2014 14:12:37 +0100 [thread overview]
Message-ID: <20140615131237.GU23430@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1402837204-30474-1-git-send-email-shawn.guo@freescale.com>
On Sun, Jun 15, 2014 at 09:00:03PM +0800, Shawn Guo wrote:
> Instead of using enum for clock ID, let's switch imx6qdl clock driver to
> use macro. In this case, device tree can reuse these macros to improve
> readability.
Long overdue. I recently needed to find out the clocks for the LDB, and
this is the process I followed:
1. Look up the clock names in the imx6qdl.dtsi file.
2. Convert them to clock index.
3. Look in Documentation/devicetree/bindings/imx6q-clock.txt to translate
the clock index to another name.
4. Look in arch/arm/mach-imx/clk-imx6q.c to find out what register(s) they
access.
5. Look the registers up in the IMX6 reference manuals to convert the
register bits which are being manipulated to names that the manuals
use.
6. Refer to the CCM clock tree diagram to find out where in the heirarchy
the clock actually sits.
This is incredibly time consuming and error-prone, and really, I wish that
the names used in clk-imx6q.c were as close as possible to those used in
the reference manual to cut down on the number of indirections required to
understand this stuff.
Don't get me wrong - your patch is beneficial to that end, removing two
levels of indirection, but I wish we could get rid of more levels while
we're at it.
--
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.
next prev parent reply other threads:[~2014-06-15 13:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-15 13:00 [PATCH v2 1/2] ARM: imx6qdl: switch to use macro for clock ID Shawn Guo
2014-06-15 13:00 ` [PATCH v2 2/2] ARM: dts: imx6qdl: use DT " Shawn Guo
2014-06-15 13:12 ` Russell King - ARM Linux [this message]
2014-06-15 13:50 ` [PATCH v2 1/2] ARM: imx6qdl: switch to use " Shawn Guo
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=20140615131237.GU23430@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--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.