All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: mxs: fix VDDD brownout setting
Date: Mon, 16 Nov 2015 12:01:36 +0100	[thread overview]
Message-ID: <201511161201.36280.marex@denx.de> (raw)
In-Reply-To: <1447624032-16503-1-git-send-email-mhei@heimpold.de>

On Sunday, November 15, 2015 at 10:47:12 PM, Michael Heimpold wrote:
> At the moment, the desired brownout is at 1.0V. However,
> this setting cannot be realized by hardware since we have
> only 3 bits to represent the voltage difference from the
> target value.
> 
> Target value is 1500 mV, brownout target is 1000 mV,
> voltage steps are 25 mV.
> 
> Register content calculation:
>   (1500 [mV] - 1000 [mV]) / 25 [mV] = 20 (decimal) = 0x14
> 
>   Register takes only 3 bits, that is 0x4.
> 
> But 0x4 * 25 [mV] = 100 [mV], that means that actual
> brownout level is 1500 [mV] - 100 [mV] = 1.4 V.
> 
> Minimum possible BO level is
>   1500 [mV] - 0x7 * 25 [mV] = 1315 [mV].
> 
> So lets use this value as desired BO value (which is
> also the same as FSL bootlets use).
> 
> Signed-off-by: Michael Heimpold <mhei@heimpold.de>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Otavio Salvador <otavio@ossystems.com.br>
> Cc: Fabio Estevam <fabio.estevam@freescale.com>

Uh, nice find. How did you find it?

Acked-by: Marek Vasut <marex@denx.de>

Best regards,
Marek Vasut

  reply	other threads:[~2015-11-16 11:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-15 21:47 [U-Boot] [PATCH] ARM: mxs: fix VDDD brownout setting Michael Heimpold
2015-11-16 11:01 ` Marek Vasut [this message]
2015-11-16 19:47   ` Michael Heimpold
2015-11-17  8:05     ` Marek Vasut
2015-12-01 15:07 ` Stefano Babic

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=201511161201.36280.marex@denx.de \
    --to=marex@denx.de \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.