From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] ARM: mxs: Enable DCDC converter for battery boot
Date: Tue, 29 Oct 2013 16:28:09 +0100 [thread overview]
Message-ID: <201310291628.09469.marex@denx.de> (raw)
In-Reply-To: <CAOMZO5DRFVbP-XZ6LMjB_65tDARgTr_ic82ak9H4AvZDd5VgBg@mail.gmail.com>
Dear Fabio Estevam,
> Hi Marek,
>
> On Mon, Oct 28, 2013 at 9:29 AM, Marek Vasut <marex@denx.de> wrote:
> > In case the board detected sufficient voltage for battery boot,
> > make sure the DCDC converter is ON and the board is not running
> > only from linregs, otherwise an instability will be observed.
> >
> > Signed-off-by: Marek Vasut <marex@denx.de>
> > Cc: Stefano Babic <sbabic@denx.de>
> > Cc: Fabio Estevam <fabio.estevam@freescale.com>
> > ---
> >
> > arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c
> > b/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c index 8ea45be..d25019a
> > 100644
> > --- a/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c
> > +++ b/arch/arm/cpu/arm926ejs/mxs/spl_power_init.c
> > @@ -654,6 +654,8 @@ static void mxs_batt_boot(void)
> >
> > clrsetbits_le32(&power_regs->hw_power_5vctrl,
> >
> > POWER_5VCTRL_CHARGE_4P2_ILIMIT_MASK,
> > 0x8 << POWER_5VCTRL_CHARGE_4P2_ILIMIT_OFFSET);
> >
> > +
> > + mxs_power_enable_4p2();
>
> Shouldn't this be conditional?
>
> #if defined CONFIG_MXS_ENABLE_4P2
> mxs_power_enable_4p2();
> #endif
>
> Then the boards that need this power supply enable
> CONFIG_MXS_ENABLE_4P2 in its config file.
No, we want to start the DCDC converter unconditionally when running on battery
power to increase efficiency.
Best regards,
Marek Vasut
next prev parent reply other threads:[~2013-10-29 15:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-28 11:29 [U-Boot] [PATCH 1/2] ARM: mxs: Enable DCDC converter for battery boot Marek Vasut
2013-10-28 11:29 ` [U-Boot] [PATCH 2/2] ARM: mxs: Configure 2 Gbit DDR2 RAM for BG0900 Marek Vasut
2013-10-31 17:03 ` Stefano Babic
2013-10-29 1:46 ` [U-Boot] [PATCH 1/2] ARM: mxs: Enable DCDC converter for battery boot Fabio Estevam
2013-10-29 15:28 ` Marek Vasut [this message]
2014-10-23 7:07 ` Michael Thalmeier
2014-10-25 21:43 ` Fabio Estevam
2014-10-25 22:42 ` Marek Vasut
2013-10-31 17:02 ` 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=201310291628.09469.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox