From: Graeme Russ <gruss@tss-engineering.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/5] Enable booting of mx28 without battery
Date: Fri, 23 Jan 2015 11:58:28 +1100 [thread overview]
Message-ID: <54C19CB4.2060308@tss-engineering.com> (raw)
In-Reply-To: <201501220027.54148.marex@denx.de>
Hi Marek,
On 22/01/15 10:27, Marek Vasut wrote:
> On Wednesday, January 21, 2015 at 12:55:15 PM, Graeme Russ wrote:
>> Section 4.1.2 of Freescale Application Note AN4199 describes the
>> configuration required to operate the mx28 from a 5V source without a
>> battery. This patch implements the changes to the Freescale bootlets
>> which allow this configuration to properly boot the mx28 processor
>>
>> Signed-off-by: Graeme Russ <gruss@tss-engineering.com>
>
> I have to admit I don't really like this boatload of new ifdeffery. Isn't it
> possible to detect if the battery is or isn't connected at runtime ?
I doubt it. If you look at the circuit in AN4199, the BATTERY and
DCDC_BATT pins are hooked up to VDD4P2 via 1k resistors. What the mx28
does internally is measure the voltages on the VDD5V and either
BATTERY/DCDC_BATT pins and decides which to use (preferencing the
battery unless it goes below a threshold).
Without this patch, the mx28 sees a good battery voltage and switches to
battery mode which is drawn of DCDC4P2 which is now trying to be driven
by the battery input which, of course, will not work.
So the only way to figure it out at runtime would be to have the battery
inputs at 0v so you could see there is no battery.
The only other option would be to use a GPIO pin
Regards,
Graeme
next prev parent reply other threads:[~2015-01-23 0:58 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-21 11:55 [U-Boot] [PATCH 0/5] Add support for G2C1 mx28 board (which has no battery) Graeme Russ
2015-01-21 11:55 ` [U-Boot] [PATCH 1/5] Add debug output to mx29 SPL source files Graeme Russ
2015-01-21 20:49 ` Fabio Estevam
2015-01-21 23:24 ` Marek Vasut
2015-01-22 4:24 ` Graeme Russ
2015-01-21 11:55 ` [U-Boot] [PATCH 2/5] Enable booting of mx28 without battery Graeme Russ
2015-01-21 12:03 ` Graeme Russ
2015-01-21 21:08 ` Fabio Estevam
2015-01-21 23:27 ` Marek Vasut
2015-01-23 0:58 ` Graeme Russ [this message]
2015-01-22 12:42 ` Fabio Estevam
2015-01-22 13:51 ` Marek Vasut
2015-01-23 2:58 ` Graeme Russ
2015-01-23 3:01 ` Fabio Estevam
2015-01-23 3:27 ` Graeme Russ
2015-01-23 3:49 ` Fabio Estevam
2015-01-23 4:14 ` Graeme Russ
[not found] ` <DB3PR05MB252F1D6A1521E87599A5991CB360@DB3PR05MB252.eurprd05.prod.outlook.com>
2015-01-23 8:11 ` Graeme Russ
2015-01-23 13:01 ` Stefano Babic
2015-01-21 11:55 ` [U-Boot] [PATCH 3/5] Add 'Wait for JTAG user' if booted in JTAG mode Graeme Russ
2015-01-21 15:35 ` Stefan Roese
2015-01-21 11:55 ` [U-Boot] [PATCH 4/5] Move PLL power-up from power init to memory init Graeme Russ
2015-01-21 23:33 ` Marek Vasut
2015-01-21 11:55 ` [U-Boot] [PATCH 5/5] Add support for ReachTech G2C1 board Graeme Russ
2015-01-21 20:53 ` Fabio Estevam
2015-01-21 23:03 ` Marek Vasut
2015-01-22 4:21 ` Graeme Russ
2015-01-21 23:36 ` Marek Vasut
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=54C19CB4.2060308@tss-engineering.com \
--to=gruss@tss-engineering.com \
--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