Hello, Sasha. It's a new version of patch, considering most of your remarks. But I still have some questions. > + > + /* Get clock */ > + clk_rate = clk_get_rate(clk_lookup("ipg")); > + if (clk_rate == -1) { > + printf("ERROR: imx6_get_gptclk failed\n"); > + return -1; > + } > + > + relax = clk_rate / (1000000000 / DEF_RELAX) - 1; I tried use clk_get(), as you proposed, but didn't understand, how to get clk rate value in this case. clkdev_add_physbase() just creates structure clk_lookup, but how to get pointer to it, to be able to use its ->clk? -- With regards, Uladzimir Bely. 09.04.2014 15:11, Uladzimir Bely пишет: _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox