OMAP4: twl6030 battery charge.

If battery voltage bellow 3.4V don't boot kernel,
stay charging until battery is charged to 3.4V.

Support for voltage measurement ported from u-boot main line:
git://git.denx.de/u-boot

commit 3e664f6d50ea7f5d6ea96a028fc8f099236e99be
Author: Balaji T K <balajitk@ti.com>
Date:   Thu Nov 25 16:22:04 2010 +0530

Change-Id: I899206d62f76b4f8d04f64bd12cfca3adf3f6a76
Signed-off-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Oleksandr Kozaruk <oleksandr.kozaruk@ti.com>
Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@ti.com>
OMAP4: twl6030: add prompt to skip battery charge

This patch adds prompt to skip battery charge if battery
voltage bellow 3.4V. If no user activity for 5 seconds
then don't boot kernel, stay charging until battery is
charged to 3.4V.

Change-Id: Iaecc1ed9559a8b4f1babc570f242355560930b62
Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@ti.com>
OMAP4: uboot: fix detection of the boot source

Previously boot source was determined by state of the SYSBOOT bits
that reflects SYSBOOT jumper settings. In this case if processor
tries to boot from the SD card before the eMMC (tuned by SYSBOOT
jumper), u-boot tries to initialize SD card and always go to the
fastboot mode. Now get_boot_slot function returns real boot device
from which processor was booted.

Change-Id: If8261b74a0d2b69357a3dbf318103b224603e859
Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@ti.com>
omap4: blaze: Move board_late_init() function into board file.

Function board_late_init() is going to be used for tablet platform.
We need to query additional h/w, so it is better to move board_late_init()
into board file.

Change-Id: I0f21d3a9c93f62fdb5529bf01d261c7247e241da
Signed-off-by: Oleg Matcovschi <oleg.matcovschi@ti.com>
booti: omap4: Support for additional boot args.

Sometimes, it is required to add extra boot arguments from uboot
in addition to command line defined by android boot header.
Additional boot arguments could be added via "android.bootargs.extra"
environment variable.

Change-Id: I84a5e2cc0a2aaf39000ebcec49adbc4c22c6744d
Signed-off-by: Oleg Matcovschi <oleg.matcovschi@ti.com>
board: omap4: Pass display board_id string for omap44xx tablet.

Query display board EEPROM information over i2c and pass it
to kernel as command line argument "omapdss.board_id".

Change-Id: Ie0445501e552e7c83d70f5057a03b8556f08009c
Signed-off-by: Oleg Matcovschi <oleg.matcovschi@ti.com>
omap4: fix usb serial number

DIE_ID[3:2] is not unique. DIE_ID[1:0] is unique for a given
OMAP revision and is better suited for the USB serial number.

Change-Id: I7af2ec4649bcb4fe74e0c0dfc8c38406fa355944
Reported-by: Arojit Roychowdhury <aroyc@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
omap4: fix usb serial number

Set unique DIE_ID for the USB serial number.

Change-Id: Ied89c6be32cedab1e26b7799049122aa11108303
Signed-off-by: Igor Ieromin <igor.ieromin@ti.com>
OMAP4: Add dummy GPADC convertion for the TWL6032 at startup

Sometimes first GPADC conversion of the TWL6032 fails. This patch
adds dummy GPADC convertion for the TWL6032 at startup to prevent it.

Change-Id: I29cf8f1629ea8b8af160226498959646ed61be3b
Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@ti.com>
Add u-boot boot delay

Signed-off-by: Darren Landoll <darren.landoll@gmail.com>
uBoot: Add the command 'continue' to uboot for fastboot

This patch implements the ability to continue booting
from fastboot mode.

The fastboot protocol supports the 'continue' command that
means "continue booting as normal (if possible)" and is described at:
http://git.omapzoom.org/?p=platform/bootable/bootloader/legacy.git;
a=blob;f=fastboot_protocol.txt;
h=2248992d26d5077a28d803e32057f83abb315d21;
hb=d3271024770ddcc2fb87dd22f8280764545ab05a

Usage: %fastboot continue

Change-Id: I73d2c1e2b502cdcc95e8fbea1de155113cc02e5f
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>