mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Uladzimir Bely <u.bely@sam-solutions.net>
To: barebox@lists.infradead.org
Subject: Re: Re: [PATCH] imx6: ocotp: Add On-Chip OTP registers write support
Date: Wed, 9 Apr 2014 15:39:31 +0300	[thread overview]
Message-ID: <53453F83.90901@sam-solutions.net> (raw)
In-Reply-To: <1397045518-27913-1-git-send-email-u.bely@sam-solutions.net>

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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2014-04-09 12:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3C20140403064122.GC17250@pengutronix.de>
2014-04-09 12:11 ` Uladzimir Bely
2014-04-09 12:39   ` Uladzimir Bely [this message]
2014-04-10  6:16   ` Sascha Hauer
2014-04-10 14:07     ` Uladzimir Bely
2014-04-11  7:39       ` Sascha Hauer
2014-04-11 12:06         ` Uladzimir Bely
2014-04-24 11:07           ` Sascha Hauer
2014-04-11  7:39     ` Uladzimir Bely
2014-04-03  6:41 Sascha Hauer
2014-04-03  7:07 ` Uladzimir Bely

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=53453F83.90901@sam-solutions.net \
    --to=u.bely@sam-solutions.net \
    --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