ARM: OMAP4470: Add OMAP4470 identification

Signed-off-by: Taras Kondratiuk <taras@ti.com>
ARM: OMAP4470: Add voltage and dpll data

OMAP4470 reference design uses TWL6032 PMIC
with a following connection scheme:
  VDD_CORE = TWL6032 SMPS2
  VDD_MPU  = TWL6032 SMPS1
  VDD_IVA  = TWL6032 SMPS5

Set voltage and frequency values according to
OMAP4470 Data Manual Operating Condition Addendum v0.7

Signed-off-by: Taras Kondratiuk <taras@ti.com>
ARM: OMAP4470: Add LPDDR configuration

Signed-off-by: Taras Kondratiuk <taras@ti.com>
ARM: OMAP4460: sdp: Limit TPS mux config to 4460

TPS mux config is 4460 specific, so it should limited to 4460 only.

Signed-off-by: Taras Kondratiuk <taras@ti.com>
The data struct is used to support different
PMIC chip types. It contains the chip type and
the data (e.g. registers addresses, adc multiplier)
which is different for twl6030 and twl6032.

Based on Balaji T K <balajitk@ti.com> patches for TI u-boot.

Signed-off-by: Oleg_Kosheliev <oleg.kosheliev@ti.com>
Added twl603x chip type detection.
Fill the data structure accordingly to the
detected chip type.
Replaced hardcoded data with the structure vars.

Based on Balaji T K <balajitk@ti.com> patches for TI u-boot.

Signed-off-by: Oleg_Kosheliev <oleg.kosheliev@ti.com>
Added twl6032 support in the battery
control and charge functions.

Based on Balaji T K <balajitk@ti.com> patches for TI u-boot.

Signed-off-by: Oleg_Kosheliev <oleg.kosheliev@ti.com>
usb/gadget: add the fastboot gadget

This patch contains an implementation of the fastboot protocol on the
device side and a little of documentation.
The gadget expects the new-style gadget framework.
The gadget implements the getvar, reboot, download and reboot commands.
What is missing is the flash handling i.e. writting the image to media.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>

From u-boot mailing list:
http://lists.denx.de/pipermail/u-boot/2011-September/101557.html
usb/gadget: fastboot: build fixes for u-boot 2013

* add speed parameter for fastboot gadget
* use usb_gadget_connect/disconnect instead of udc_init/udc_exit
* change #if CONFIG_CMD_FASTBOOT to #ifdef CONFIG_CMD_FASTBOOT
* a couple of build fixes

Change-Id: Id6393aefa329f9ea67376a55e68017c8fcbb1fa5
Signed-off-by: Vishveshwar Bhat <vishveshwar.bhat@ti.com>
fastboot: implement fastboot_board_init

Initial implementation for AM335xevm

Some values are hard-coded. Ultimately these would be moved
to the board-specific config file.

Change-Id: Id2cf27986558db8855fb1362e37c01d0b261b885
Signed-off-by: Vishveshwar Bhat <vishveshwar.bhat@ti.com>
usb/gadget: fastboot: do not hardcode VID/PID

These will be defined in the board config.

Change-Id: I73d7b64bd321b7f25789e53d7d7ec095d5962ca6
Signed-off-by: Vishveshwar Bhat <vishveshwar.bhat@ti.com>
am335x config: enable fastboot

Change-Id: I85c7e5c1b210ff80e25ba0fcdd7022fc35cd1533
Signed-off-by: Vishveshwar Bhat <vishveshwar.bhat@ti.com>
omap4: enable fastboot in config

Signed-off-by: Taras Kondratiuk <taras@ti.com>
omap4_common: use new MUSB intstead of the old one

TODO: MUSB configuration is put to SDP4430.
Need to find better omap4 common place for it.

Signed-off-by: Taras Kondratiuk <taras@ti.com>
musb: add debug prints
HACK: musb: filter out SOF interrupts

Currently SOF interrupts are not analyzed in U-Boot MUSB implementation.
It just adds a lot unnecessary calls to musb_interrupt() functions
and floods console with debug prints if you try to debug interrupts.
So filter it.
FASTBOOT: Add mmc partitioning support

Change-Id: I6c36c5a895377ce426b0876140caf4422643b3cf
Signed-off-by: Pankaj Bharadiya <pankaj.bharadiya@ti.com>
FASTBOOT: add SD/MMC/eMMC flashing support

This patch adds the fastboot SD/MMC/eMMC flashing support.

Commands:
fastboot oem format
fastboot flash <partition> <image>

Change-Id: Ic96769cc6441e1ea7cb5a2b3559e3e0d7d5c6ac8
Signed-off-by: Pankaj Bharadiya <pankaj.bharadiya@ti.com>

Conflicts:

	common/cmd_mmc.c
FASTBOOT: Fix fastboot hang issue

Looks like there is a race condition while sending a response for download completion
and receiving new flash command from host. These Tx and Rx operations are getting handled
in same irq handler and Rx queue operations are getting deleted before processing.
Because of this u-boot crashes while sending next response

Re-arrange the Response call to Fix this issue.
Note: This is a hacked approach. proper fix need to be identified.

Change-Id: Ib0768e7379345c9398897bbc06302f2c7314980a
Signed-off-by: Pankaj Bharadiya <pankaj.bharadiya@ti.com>
FASTBOOT: null terminate received command string

Change-Id: Iaa19c1286f2a3674925ae899542748d4723fc3b9
Signed-off-by: Pankaj Bharadiya <pankaj.bharadiya@ti.com>