From: Gwenhael Goavec-Merou <gwenhael.goavec-merou@armadeus.com>
To: barebox <barebox@lists.infradead.org>
Cc: gwenhael <gwenhael.goavec-merou@armadeus.com>
Subject: [PATCH] [ARM] imx1: add #define to configure frequency for the clk32
Date: Wed, 13 Mar 2013 09:58:58 +0100 [thread overview]
Message-ID: <1363165138-3085-1-git-send-email-gwenhael.goavec-merou@armadeus.com> (raw)
From: gwenhael <gwenhael.goavec-merou@armadeus.com>
i.MX1 allows to use a 32kHz or a 32.768kHz quartz for the 32kHz clock source
(MC9328MXLRM p.177).
This patch adds the ability for the developer to change the default value for
the 32kHz clock source.
Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@armadeus.com>
---
arch/arm/mach-imx/clk-imx1.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-imx/clk-imx1.c b/arch/arm/mach-imx/clk-imx1.c
index 0d04a92..b779ab2 100644
--- a/arch/arm/mach-imx/clk-imx1.c
+++ b/arch/arm/mach-imx/clk-imx1.c
@@ -26,6 +26,10 @@
#include "clk.h"
+#ifndef MX1_CLK32_FREQ
+#define MX1_CLK32_FREQ 32000
+#endif
+
#define CCM_CSCR 0x0
#define CCM_MPCTL0 0x4
#define CCM_SPCTL0 0xc
@@ -91,7 +95,7 @@ static int imx1_ccm_probe(struct device_d *dev)
regs = dev_request_mem_region(dev, 0);
- mx1_clocks_init(regs, 32000);
+ mx1_clocks_init(regs, MX1_CLK32_FREQ);
return 0;
}
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2013-03-13 9:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-13 8:58 Gwenhael Goavec-Merou [this message]
2013-03-15 15:13 ` Sascha Hauer
2013-03-25 11:14 ` gwenhael.goavec
2013-03-25 12:43 ` Sascha Hauer
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=1363165138-3085-1-git-send-email-gwenhael.goavec-merou@armadeus.com \
--to=gwenhael.goavec-merou@armadeus.com \
--cc=barebox@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