mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Clocks on Barebox
@ 2015-06-01  8:12 andreas.willig
  2015-06-01 11:41 ` Sascha Hauer
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: andreas.willig @ 2015-06-01  8:12 UTC (permalink / raw)
  To: barebox

Hi all
i just updated from 2014 to latest Barebox and hit the following problem:
of_clk_init from clk.c:451 does not find any entries. matches is set to __clk_of_table start where compatible=0 and data=0,
but from my thoughts the dt is ok on this point:
{
...
clocks {
#address-cells = <0x1>;
#size-cells = <0x0>;
ckil {
compatible = "fsl,imx-ckil", "fixed-clock";
#clock-cells = <0x0>;
clock-frequency = <0x8000>;
};
ckih1 {
compatible = "fsl,imx-ckih1", "fixed-clock";
#clock-cells = <0x0>;
clock-frequency = <0x0>;
};
osc {
compatible = "fsl,imx-osc", "fixed-clock";
#clock-cells = <0x0>;
clock-frequency = <0x16e3600>;
};
clock@0 {
compatible = "fixed-clock";
reg = <0x0>;
#clock-cells = <0x0>;
clock-frequency = <0x16e3600>;
};
}
aips-bus@02000000 {
...
ccm@020c4000 {
compatible = "fsl,imx6q-ccm", "fsl,imx6dl-ccm";
reg = <0x20c4000 0x4000>;
interrupts = <0x0 0x57 0x4 0x0 0x58 0x4>;
#clock-cells = <0x1>;
linux,phandle = <0x3>;
phandle = <0x3>;
};
...
};
...
};
Is there a pretty howto added? Am I missing something?
from arch/arm/mach-imx/clk-imx6.c are removed:
static int imx6_ccm_probe()
{
- unsigned long ckil_rate = 32768;
- unsigned long ckih_rate = 0;
- unsigned long osc_rate = 24000000;
- clks[dummy] = clk_fixed("dummy", 0);
- clks[ckil] = clk_fixed("ckil", ckil_rate);
- clks[ckih] = clk_fixed("ckih", ckih_rate);
- clks[osc] = clk_fixed("osc", osc_rate);
}
and on gpt_probe the clock tree refers to a frequency of 0 while seeking for osc as clk parent which cannot be found and leads to a div by zero and therefore in a panic in further context. This prevents bb from starting (of course).

System is Freescale i.MX6 Solo on our on DIMM module.


Mit freundlichen Grüßen aus Berg/ With kind regards

i.A. Andreas Willig
Dipl.-Ing. (FH)
Entwicklung Elektronik

RAFI GmbH & Co. KG
Postfach 2060
88276 Ravensburg
Tel.: +49 (0) 751 89-6142

mailto:andreas.willig@rafi.de, http://www.rafi.de

Kommanditgesellschaft: Sitz Berg, Amtsgericht Ulm, HRA 550059
Komplementär: RAFI Beteiligungs-GmbH, Sitz Berg, Amtsgericht Ulm HRB 550074
Geschäftsführer: Albert Wasmeier, Dipl.-Kfm. Gerhard Schenk
USt-Ident.-Nr.: DE 146 392 319, Steuer-Nr.: 77079/00291

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-06-11  5:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-01  8:12 Clocks on Barebox andreas.willig
2015-06-01 11:41 ` Sascha Hauer
2015-06-02  3:42   ` andreas.willig
2015-06-03  8:19     ` Sascha Hauer
2015-06-09  5:21     ` andreas.willig
2015-06-09 10:18 ` Sascha Hauer
2015-06-09 11:28 ` andreas.willig
2015-06-10  4:59   ` Sascha Hauer
2015-06-10  5:10   ` andreas.willig
2015-06-11  5:48     ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox