From: mkl@pengutronix.de (Marc Kleine-Budde)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM i.MX5: set CAN peripheral clock to 24 MHz parent
Date: Mon, 25 Nov 2013 18:48:11 +0100 [thread overview]
Message-ID: <52938D5B.6030002@pengutronix.de> (raw)
In-Reply-To: <1385400467.906340545@f177.i.mail.ru>
On 11/25/2013 06:27 PM, Alexander Shiyan wrote:
>> This patch sets the parent of CAN peripheral clock (a.k.a. CPI clock) to the
>> lp_apm clock, which has a rate of 24 MHz.
>>
>> In the CAN world a base clock with multiple of 8 MHz is suited best for all CIA
>> recommented bit rates. Without this patch the CAN peripheral clock on i.MX53
>> has a rate of 66.666 MHz which produces quite large bit rate errors.
>>
>> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
>> ---
>> arch/arm/mach-imx/clk-imx51-imx53.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/arch/arm/mach-imx/clk-imx51-imx53.c b/arch/arm/mach-imx/clk-imx51-imx53.c
>> index e349fd5..28f7f3f 100644
>> --- a/arch/arm/mach-imx/clk-imx51-imx53.c
>> +++ b/arch/arm/mach-imx/clk-imx51-imx53.c
>> @@ -306,6 +306,9 @@ static void __init mx5_clocks_common_init(unsigned long rate_ckil,
>> /* move usb phy clk to 24MHz */
>> clk_set_parent(clk[IMX5_CLK_USB_PHY_SEL], clk[IMX5_CLK_OSC]);
>>
>> + /* move can bus clk to 24MHz */
>> + clk_set_parent(clk[IMX5_CLK_CAN_SEL], clk[IMX5_CLK_LP_APM]);
>> +
>> clk_prepare_enable(clk[IMX5_CLK_GPC_DVFS]);
>> clk_prepare_enable(clk[IMX5_CLK_AHB_MAX]); /* esdhc3 */
>> clk_prepare_enable(clk[IMX5_CLK_AIPS_TZ1]);
>> --
>
> Again, CAN is missing on i.MX51, so this should be moved from common_init function.
Doh, will fix.
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131125/0e9eb91c/attachment.sig>
prev parent reply other threads:[~2013-11-25 17:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-25 17:15 [PATCH 0/2] can + ARM i.MX53: use 24 MHz clock parent on i.MX53 Marc Kleine-Budde
2013-11-25 17:15 ` [PATCH 1/2] can: flexcan: use correct clock as base for bit rate calculation Marc Kleine-Budde
2013-11-25 17:15 ` [PATCH 2/2] ARM i.MX5: set CAN peripheral clock to 24 MHz parent Marc Kleine-Budde
2013-11-25 17:27 ` Alexander Shiyan
2013-11-25 17:48 ` Marc Kleine-Budde [this message]
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=52938D5B.6030002@pengutronix.de \
--to=mkl@pengutronix.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).