rowboat:dvachevs-dvachevs-u-boot.git
5 years agoam335x: Disable USB gadget/ether gadget mode rowboat-ics-am335x-4.0.3 rowboat-jb-am335x-4.1.2
Vishveshwar Bhat [Mon, 15 Oct 2012 09:43:38 +0000 (15:13 +0530)]
am335x: Disable USB gadget/ether gadget mode

This conflicts with USB fastboot feature in android.

Signed-off-by: Vishveshwar Bhat <vishveshwar.bhat@ti.com>
5 years agoRemove delay from fastboot and fix file download hang issue.
Pankaj Bharadiya [Thu, 13 Sep 2012 12:31:47 +0000 (18:01 +0530)]
Remove delay from fastboot and fix file download hang issue.

Endpoint rx count register value will be zero if it is read before
receive packet ready bit (PERI_RXCSR:RXPKTRDY) is set.

Check for the receive packet ready bit (PERI_RXCSR:RXPKTRDY) before
reading endpoint rx count register. Proceed with rx count read and
FIFO read only if RXPKTRDY bit is set.

Signed-off-by: Pankaj Bharadiya <pankaj.bharadiya@ti.com>
5 years agoam335x USB SPL: Add documentation, new build targets
Tom Rini [Thu, 13 Sep 2012 15:55:12 +0000 (08:55 -0700)]
am335x USB SPL: Add documentation, new build targets

Signed-off-by: Tom Rini <trini@ti.com>
5 years agousb-spl: add hack to load SPL via serial
Ilya Yanok [Wed, 8 Aug 2012 22:10:14 +0000 (02:10 +0400)]
usb-spl: add hack to load SPL via serial

Just for testing.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agoam335x_evm: enable usb_ether in SPL
Ilya Yanok [Wed, 8 Aug 2012 22:07:41 +0000 (02:07 +0400)]
am335x_evm: enable usb_ether in SPL

Enable new USB SPL support for am335x based boards. We use some fake
dev/host eth addresses. Probably will need to fix them.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agoOMAP: spl: usb booting support
Ilya Yanok [Wed, 8 Aug 2012 21:55:53 +0000 (01:55 +0400)]
OMAP: spl: usb booting support

Enable support for booting via USB device. For now it's
only supported on AM33xx.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agoam335x_evm: init OTG hardware and new musb gadget driver
Ilya Yanok [Fri, 10 Aug 2012 20:44:33 +0000 (00:44 +0400)]
am335x_evm: init OTG hardware and new musb gadget driver

AM335x has support for dual port MUSB OTG controller. This patch
adds initialization for the controller using new MUSB gadget
driver and ether gadget.

Enable musb gadget in Ethernet mode on port 0.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agoam335x: add USB-related defines
Ilya Yanok [Fri, 10 Aug 2012 20:08:20 +0000 (00:08 +0400)]
am335x: add USB-related defines

Define USB-related registers offsets.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agomusb-new: dsps backend driver
Ilya Yanok [Wed, 8 Aug 2012 20:27:01 +0000 (00:27 +0400)]
musb-new: dsps backend driver

Backend driver for MUSB OTG controllers found on TI AM33xx and
TI81xx SoCs (tested with AM33xx only).

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agomusb-new: port of Linux musb gadget driver
Ilya Yanok [Wed, 8 Aug 2012 20:24:58 +0000 (00:24 +0400)]
musb-new: port of Linux musb gadget driver

Existing U-Boot musb driver has no support for the new gadget framework
and also seems to have other limitations. As gadget framework is ported
from Linux it seems pretty natural to port musb gadget driver as well.

This is not a replacement for current musb driver (at least now) as
host mode is not supported and there are still some consumers of the
old UDC interface.

No DMA operation support included, CONFIG_MUSB_PIO_ONLY should be
defined.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agoRename CONFIG_USB_AM335X to CONFIG_USB_MUSB_AM335X
Vishveshwar Bhat [Mon, 15 Oct 2012 09:41:14 +0000 (15:11 +0530)]
Rename CONFIG_USB_AM335X to CONFIG_USB_MUSB_AM335X

Make way for musb-new implementation

Signed-off-by: Vishveshwar Bhat <vishveshwar.bhat@ti.com>
5 years agolinux/usb/ch9.h: update with the version from Linux tree
Ilya Yanok [Mon, 30 Jul 2012 15:47:43 +0000 (19:47 +0400)]
linux/usb/ch9.h: update with the version from Linux tree

Update the linux/usb/ch9.h header.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agonet-spl: disable extra commands support in SPL
Ilya Yanok [Tue, 14 Aug 2012 18:32:20 +0000 (22:32 +0400)]
net-spl: disable extra commands support in SPL

Undefine related CONFIG_CMD_* while compiling for SPL to save
some space.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agoOMAP: spl: rename spl_eth to spl_net
Ilya Yanok [Tue, 14 Aug 2012 18:16:10 +0000 (22:16 +0400)]
OMAP: spl: rename spl_eth to spl_net

Rename spl_eth.c to spl_net.c (spl_eth_load_image() to
spl_net_load_image() resp.) Also add argument to spl_net_load_image()
to make it possible to specify the active network device (used to
set ethact environment variable before calling NetLoop).

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agoAM33XX: boot commands for booting from emmc on mmc1
Joel A Fernandes [Thu, 9 Aug 2012 14:45:09 +0000 (10:45 -0400)]
AM33XX: boot commands for booting from emmc on mmc1

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
5 years agoFix fetching of mmc1 bootmode from bootrom for AM33XX
Joel A Fernandes [Thu, 9 Aug 2012 14:42:01 +0000 (10:42 -0400)]
Fix fetching of mmc1 bootmode from bootrom for AM33XX

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
5 years agoam335x: Switch to get_ram_size() to detect how much SDRAM we have
Tom Rini [Fri, 3 Aug 2012 17:07:38 +0000 (10:07 -0700)]
am335x: Switch to get_ram_size() to detect how much SDRAM we have

Rather than hard-coding a size of 256MB use get_ram_size to dynamically
determine the amount of SDRAM.  This is important as the 1.1A and later
GP EVM baseboards have 512MB of SDRAM.

Signed-off-by: Tom Rini <trini@ti.com>
5 years agoam335x evm: Update secure_emif_sdram_config during ddr init
Satyanarayana, Sandhya [Thu, 2 Aug 2012 05:42:03 +0000 (11:12 +0530)]
am335x evm: Update secure_emif_sdram_config during ddr init

This patch updates secure_emif_sdram_config with the
same value written to sdram_config during ddr3 initialization
for evm-sk.

During suspend/resume, this value is copied into sdram_config.
With this, a write to sdram_config at the end of resume sequence
which triggers an init sequence can be avoided.

Without this register write in place, the DDR_RESET line goes
low for a few cycles during resume which is a violation of the
JEDEC spec.

This has been tested on EVM-SK, EVM, BBB.

Signed-off-by: Satyanarayana, Sandhya <sandhya.satyanarayana@ti.com>
5 years agoAM335x Uboot: Support for MMC0 and MMC1 eMMC raw boot
Umakanta Patro [Mon, 16 Jul 2012 13:14:17 +0000 (18:44 +0530)]
AM335x Uboot: Support for MMC0 and MMC1 eMMC raw boot

This patch adds support for selection of eMMC raw boot
either from SD/MMC0 or SD/MMC1 by enabling the respective
macro CONFIG_USE_MMC0 or CONFIG_USE_MMC1 from config file
include/configs/am335x_evm.h

* The General purpose Daughter card should be interfaced to the
  base board for MMC1 booting.
* The boot mode of the AM335xEVM should be set to
  SW3 [8:1]: 11100011  (SYSBOOT[4:0]: 11100)
* The boot from MMC1 is tested with AM335xEVM on Profile 2.

Change-Id: I7c0d760d4636af706580452fc727ff17c80694b2
Signed-off-by: Umakanta Patro <umakanta.patro@ti.com>
5 years agoFastboot: Move boot device selection to board file
Umakanta Patro [Tue, 10 Jul 2012 12:19:25 +0000 (17:49 +0530)]
Fastboot: Move boot device selection to board file

This u-boot has support for Fastboot on NAND flash or Fastboot on eMMC,
but not both.

The CONFIG_STORAGE_EMMC and FASTBOOT_PORT_OMAPZOOM_NAND_FLASHING
macros are defined in the same board file (only for AM335x),
in order for the selection of one macro between  the two modes.

By default FASTBOOT_PORT_OMAPZOOM_NAND_FLASHING is enabled, so fastboot
will use NAND device.

Change-Id: I3d228bab05ab5285f8e3678073f9d1da112fcbe2
Signed-off-by: Umakanta Patro <umakanta.patro@ti.com>
5 years agoAM335xEVM Raw boot support CONFIG_STORAGE_EMMC
Umakanta Patro [Mon, 9 Jul 2012 09:30:36 +0000 (15:00 +0530)]
AM335xEVM Raw boot support CONFIG_STORAGE_EMMC

The raw boot suppport is added for AM335xEVM
(with the CONFIG_STORAGE_EMMC macro enabled).

It adds a "booti" command, which performs the raw boot, when
CONFIG_STORAGE_EMMC is enabled.
Only boot from eMMC0(booti mmc0) is currently supported.

Modified the CONFIG_FASTBOOT_TRANSFER_BUFFER_SIZE to 192MB.

Change-Id: I2d628c480cb1f492264b5be064c79ffdbab19ec4
Signed-off-by: Umakanta Patro <umakanta.patro@ti.com>
5 years agoAM335xEVM Fastboot support for eMMC partition
Umakanta Patro [Mon, 9 Jul 2012 09:02:45 +0000 (14:32 +0530)]
AM335xEVM Fastboot support for eMMC partition

1.Create an eMMC GPT partition using
%fastboot oem format
2.Update individual partition using
%fastboot flash <partition> <file name>

If FASTBOOT_PORT_OMAPZOOM_NAND_FLASHING is enabled, the NAND handlers will be
used and if CONFIG_STORAGE_EMMC is enabled, the eMMC handlers will be used.

NOTE: Only one flag can be enabled at any time.

Change-Id: I7fd86e1849b05fb807be90e479517178cf130226
Signed-off-by: Umakanta Patro <umakanta.patro@ti.com>
5 years agoAM335xEVM GPT partition creation
Umakanta Patro [Mon, 9 Jul 2012 08:48:36 +0000 (14:18 +0530)]
AM335xEVM GPT partition creation

Handlers for GUID Partition Table (GPT) creation.
This can be invoked from Fastboot, using
%fastboot oem format

Change-Id: I4cfeee035e0b58d1870033141c9925725a274b51
Signed-off-by: Umakanta Patro <umakanta.patro@ti.com>
5 years agoAM335x eMMC raw boot support is added in spl
Umakanta Patro [Mon, 9 Jul 2012 08:32:52 +0000 (14:02 +0530)]
AM335x eMMC raw boot support is added in spl

The default boot support will be FAT boot.
If the FAT boot fails, RAW boot will be executed.

Change-Id: Ia0556e7afb2e3e369d3490fb3c61cefcf6a0b1b1
Signed-off-by: Umakanta Patro <umakanta.patro@ti.com>
5 years agoam335x evm: Rework gpio0_7 DDR3 enable for EVM-SK check
Tom Rini [Tue, 24 Jul 2012 17:50:13 +0000 (10:50 -0700)]
am335x evm: Rework gpio0_7 DDR3 enable for EVM-SK check

Always enable gpio0_7.  This does no harm on 1.1A boards and means that
1.2A and 1.2B and future revs will also work without further changes.
This mirrors the behavior of the kernel in AM335XPSP_04.06.00.08.

Signed-off-by: Tom Rini <trini@ti.com>
5 years agocpsw: Add a workaround for a mysterious NAND issue
Tom Rini [Fri, 20 Jul 2012 16:11:08 +0000 (09:11 -0700)]
cpsw: Add a workaround for a mysterious NAND issue

In certain build environments the changes in d04833c expose a very
random problem (possibly toolchain, possibly other) where in when
booting from NAND an attempt to check the NAND sector for bad blocks
correctly returns that we have found a valid block but the return
address we get for the function is '0x15' rather than a valid address
leading to a data abort and failed boot.

Signed-off-by: Tom Rini <trini@ti.com>
5 years agomux: Fix mmc1 pinmux
Joel A Fernandes [Tue, 17 Jul 2012 08:46:16 +0000 (04:46 -0400)]
mux: Fix mmc1 pinmux

Credit to Steve Kipisz for the fix

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
5 years agodrivers: net: cpsw: halt cpsw properly to stop receiving properly
Mugunthan V N [Wed, 4 Jul 2012 08:16:03 +0000 (13:46 +0530)]
drivers: net: cpsw: halt cpsw properly to stop receiving properly

During cpsw driver halt, cpdma and cpsw must be stopped from processing
network packets to ensure that hardware doesn't modify any DDR data where
kernel may have its own data structures

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
5 years agonet-spl: add README file and sample debrick scripts for NAND and SPI
Ilya Yanok [Thu, 28 Jun 2012 15:08:07 +0000 (19:08 +0400)]
net-spl: add README file and sample debrick scripts for NAND and SPI

Added README file with the description of required netboot /
restore_flash setup as well as sample debrick scripts for NAND and SPI
flash.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
Signed-off-by: Tom Rini <trini@ti.com>
5 years agoam335x_evm: add restore_flash config option
Ilya Yanok [Thu, 28 Jun 2012 15:05:55 +0000 (19:05 +0400)]
am335x_evm: add restore_flash config option

Add new am335x_evm_restore_flash configuration (to be used with
netboot SPL). In this configuration U-Boot will try to load and
run debrick.img script automatically after boot.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
Signed-off-by: Tom Rini <trini@ti.com>
5 years agoDo not initialize fastboot for SPL build
Vishveshwar Bhat [Thu, 28 Jun 2012 09:24:53 +0000 (14:54 +0530)]
Do not initialize fastboot for SPL build

Commit a09faba618d176cc7c31e598102cb417b7c56efb causes the build for am335x_evm
to fail with the following error when building SPL:
    board/ti/am335x/evm.c:894: undefined reference to `fastboot_flash_add_ptn'

Fastboot initialization should not be part of SPL build,
so put it under #ifndef CONFIG_SPL_BUILD for am335x_evm and omap3evm

Signed-off-by: Vishveshwar Bhat <vishveshwar.bhat@ti.com>
5 years agoam335x_evm: set Vendor Class Identifier for SPL
Ilya Yanok [Wed, 27 Jun 2012 21:31:30 +0000 (01:31 +0400)]
am335x_evm: set Vendor Class Identifier for SPL

Set Vendor Class Identifier used by SPL during BOOTP to be
"AM335x U-Boot SPL".

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agonet-spl: add support for setting Vendor Class Identifier
Ilya Yanok [Wed, 27 Jun 2012 21:28:07 +0000 (01:28 +0400)]
net-spl: add support for setting Vendor Class Identifier

Add support for setting the Vendor Class field in the BOOTP
request so that DHCP server could distinguish requests from SPL
and main U-Boot.
To set Vendor Class Identifier used by SPL just define
CONFIG_SPL_NET_VCI_STRING to desired string.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agonet-spl: use BOOTP in SPL regardless of CONFIG_CMD_DHCP
Ilya Yanok [Wed, 27 Jun 2012 21:19:58 +0000 (01:19 +0400)]
net-spl: use BOOTP in SPL regardless of CONFIG_CMD_DHCP

We don't want netboot protocol used by SPL to depend on CONFIG_CMD_DCHP
setting (it's supposed to be for main U-Boot, right?). Probably
it's better to make it selectable but for now just always use BOOTP.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembeded.com>
5 years agonet-spl: fix "Bad ebvironment CRC" error
Ilya Yanok [Tue, 26 Jun 2012 07:22:47 +0000 (11:22 +0400)]
net-spl: fix "Bad ebvironment CRC" error

In SPL we always use RAM based environment so we should behave
as if CONFIG_ENV_IS_NOWHERE is defined.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agoam335x: evm: add missing header include
Hebbar, Gururaja [Tue, 26 Jun 2012 05:36:19 +0000 (11:06 +0530)]
am335x: evm: add missing header include

gpio related warning is seen during compilation due to missing header

evm.c:714:4: warning: implicit declaration of function 'gpio_request'
evm.c:715:4: warning: implicit declaration of function
'gpio_direction_output'

Fix this by adding proper include file (asm/gpio.h)

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Tested-by: Satyanarayana, Sandhya <sandhya.satyanarayana@ti.com>
5 years agoam335x: Correct MMC1 pinmux data
Tom Rini [Tue, 26 Jun 2012 17:57:07 +0000 (10:57 -0700)]
am335x: Correct MMC1 pinmux data

The 1.2 and later revision am335x-evms changed the pinmux for mmc1.  In
addition after checking the kernel we were missing PULLUP_EN on the rest
of the pins.

Signed-off-by: Tom Rini <trini@ti.com>
5 years agospl: don't mark __u_boot_cmd* as undefined
Ilya Yanok [Mon, 25 Jun 2012 21:27:24 +0000 (01:27 +0400)]
spl: don't mark __u_boot_cmd* as undefined

__u_boot_cmd* symbols are not used in SPL so there is no need
to tell the linker that they are undefined. With these symbols
marked as undefined linker fails to garbage collect some unused
functions and even fails to build the resulting image.

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agoam335x_evm: enable networking in SPL
Ilya Yanok [Wed, 20 Jun 2012 15:56:46 +0000 (19:56 +0400)]
am335x_evm: enable networking in SPL

This patch adds support for networking in SPL on TI AM335x based
boards.

CC: Tom Rini <trini@ti.com>
Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agoOMAP: networking support for SPL
Ilya Yanok [Wed, 20 Jun 2012 15:56:02 +0000 (19:56 +0400)]
OMAP: networking support for SPL

This patch adds support for networking in SPL. Some devices are
capable of loading SPL via network so it makes sense to load the
main U-Boot binary via network too. This patch tries to use
existing network code as much as possible. Unfortunately, it depends
on environment which in turn depends on other code so SPL size
is increased significantly. No effort was done to decouple network
code and environment so far.

CC: Tom Rini <trini@ti.com>
Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
5 years agou-boot add gpio support and enable ddr_vtt
Steve Kipisz [Fri, 22 Jun 2012 11:23:57 +0000 (06:23 -0500)]
u-boot add gpio support and enable ddr_vtt

Add gpio support in order to use gpio_request, gpio_direction_output.
These were the only two routines used and tested. Full support should
work for the rest of the routines. The code was derived from Steve
Sakoman's patch here http://patchwork.ozlabs.org/patch/162818/

Set pin mux so that the pin gpio0_7 is a gpio.

Use the gpio routines so to set gpio0_7 high to enable ddr_vtt.

Signed-off-by: Steve Kipisz <s-kipisz2@ti.com>
6 years agoAM335x: CPSW: Update Auto negotiation failure debug message.
Philip, Avinash [Thu, 7 Jun 2012 12:04:35 +0000 (17:34 +0530)]
AM335x: CPSW: Update Auto negotiation failure debug message.

When 2 ports in AM335x EVM-SK been enabled, auto negotiation will fail
on the port where cable is not connected. This patch adds print message
to display port number on which failure is reported.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
6 years agoARM: Add AM335X to the OMAP3 test for CONFIG_STANDALONE_LOAD_ADDR defaults
Tom Rini [Tue, 5 Jun 2012 15:28:17 +0000 (08:28 -0700)]
ARM: Add AM335X to the OMAP3 test for CONFIG_STANDALONE_LOAD_ADDR defaults

Signed-off-by: Tom Rini <trini@ti.com>
6 years agoomap-common: Remove omap_boot_mode check from spl_nand_load_image
Tom Rini [Mon, 4 Jun 2012 17:43:45 +0000 (10:43 -0700)]
omap-common: Remove omap_boot_mode check from spl_nand_load_image

We do not yet have a ROM that passes useful information to us about how
the image was read from NAND so remove a check for doing that until we
have hardware that can tell us such.  At that point I suspect the check
will need to be handled as part of the board callback made from
nand_init.

Signed-off-by: Tom Rini <trini@ti.com>
6 years agoam335x: ddr_defs: Update EMIF parameters
Vaibhav Bedia [Fri, 20 Apr 2012 07:58:16 +0000 (13:28 +0530)]
am335x: ddr_defs: Update EMIF parameters

EMIF parameters are calculated based on the AC timing
parameters from the SDRAM datasheet and the DDR frequency.

Current values for these paramters in AM335x U-Boot code,
though reliable, are not fully optimal. The most optimal
settings can be derived based on the guidelines published
at [1]. A pre-computed set of values with the most optimum
settings for AM335x EVM and BeagleBone can be found at [2].

[1] http://processors.wiki.ti.com/index.php/AM335x_EMIF_Configuration_tips
[2] http://processors.wiki.ti.com/index.php/OMAP_and_Sitara_CCS_support#AM335x

Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
6 years agoti81xx: cpsw: cpdma bug fix where dma stops in bursty network
Mugunthan V N [Tue, 24 Apr 2012 02:36:01 +0000 (08:06 +0530)]
ti81xx: cpsw: cpdma bug fix where dma stops in bursty network

When there is a busty network, CPDMA completed all the desc before driver
services the desc and hdp goes to NULL as there is no free rx desc. Once this
situation occurs, cpsw driver doesn't have a mechanism to restart DMA and
driver will not receive any further packet until cpsw re-init happens.

This patch fixes the issue with restarting the DMA engine with writing hdp
when hdp is NULL and have a free rx desc.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
6 years agoam335x: cpsw: Add initial cpsw support for EVM-SK
Satyanarayana, Sandhya [Tue, 8 May 2012 13:17:40 +0000 (18:47 +0530)]
am335x: cpsw: Add initial cpsw support for EVM-SK

This patch adds initial support for cpsw on AM335x-SK.
PinMux for RGMII1 and RGMII2 are set.
PHY IDs for both PHYs and RGMII mode selected by default
holds good for SK Board.

Signed-off-by: Satyanarayana, Sandhya <sandhya.satyanarayana@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
6 years agoam335x: add initial support for EVM-SK
Hebbar, Gururaja [Tue, 8 May 2012 13:17:39 +0000 (18:47 +0530)]
am335x: add initial support for EVM-SK

This patch adds initial support new EVM-Starter Kit (EVM-SK).
Only board detection support is added.

Todo:
Currently RTC code is causing board to hang. In order to move forward
presently its been disabled. Need to debug and resolve this issue.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
6 years agoam335x: Add support for DDR3
Satyanarayana, Sandhya [Tue, 8 May 2012 13:17:38 +0000 (18:47 +0530)]
am335x: Add support for DDR3

This patch adds DDR3 support to AM335x.
DDR3 support is required for AM335x-SK Board.

Signed-off-by: Satyanarayana, Sandhya <sandhya.satyanarayana@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Signed-off-by: Patil, Rachna <rachna@ti.com>
6 years agoam335x: setup ddr pll's when configuring ddr emif registers
Hebbar, Gururaja [Tue, 8 May 2012 13:17:37 +0000 (18:47 +0530)]
am335x: setup ddr pll's when configuring ddr emif registers

Different DDR's are run at different frequency (and may be on differents
boards as-well). DDR2 on EVM, BB = 266MHz, DDR3 on EVM-SK = 303 MHz.

So this patch moves the ddr pll init to ddr emif register configuration
stage.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
6 years agoam335x: Make way for DDR3
Satyanarayana, Sandhya [Tue, 8 May 2012 13:17:36 +0000 (18:47 +0530)]
am335x: Make way for DDR3

The existing DDR2 related defines have been renamed
so as to contain the string "DDR2" and functions to
contain the string "ddr2".

This will make adding DDR3 support to AM335x easier.

Signed-off-by: Satyanarayana, Sandhya <sandhya.satyanarayana@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
6 years agoam335x: move board detection to early stage
Hebbar, Gururaja [Tue, 8 May 2012 13:17:35 +0000 (18:47 +0530)]
am335x: move board detection to early stage

This patch moves the eeprom-based board detection to early stages. This
helps in setting up different ddr in different boards (EVM =DDR2, EVM-SK
= DDR3).

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
6 years agoam335x: move i2c pin-mux variables to .data section
Hebbar, Gururaja [Tue, 8 May 2012 13:17:34 +0000 (18:47 +0530)]
am335x: move i2c pin-mux variables to .data section

i2c api (probe, read) may be called at early stages i.e., even before
relocation. So set up i2c pin-mux variables into proper .data sections.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
6 years agodrivers/i2c/omap24xx_i2c.c: part 2 move all local variables to SRAM
Hebbar, Gururaja [Tue, 8 May 2012 13:17:33 +0000 (18:47 +0530)]
drivers/i2c/omap24xx_i2c.c: part 2 move all local variables to SRAM

I2C module may be called even before relocation. By this patch it is
ensured that all variables used by omap24xx_i2c.c are located in SRAM.

This patch is based on the upstream patch. the same is applied for
am335x part of driver as well.

http://git.denx.de/?p=u-boot.git;a=commitdiff;
h=0b620ec97e05ddb09714d127a7880333fc4008fb

drivers/i2c/omap24xx_i2c.c: move all local variables to SRAM

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
6 years agodrivers/i2c/omap24xx_i2c.c: move all local variables to SRAM
Andreas Müller [Tue, 8 May 2012 13:17:32 +0000 (18:47 +0530)]
drivers/i2c/omap24xx_i2c.c: move all local variables to SRAM

At old overo boards TWL4030 RTC irq is connected to gpio112. Unfortunately
this pin is also used for revision detection. Therefore we need to send
shut-up to TWL4030 to avoid reading wrong revision. In SPL this must
be done before SDRAM is set up because the type of SDRAM is revision dependent.
By this patch it is ensured that all variables used by omap24xx_i2c.c are
located in SRAM.

Signed-off-by: Andreas Müller <schnitzeltony@gmx.de>
Acked-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
6 years agoam335x: correct rtc clock enable checking
Hebbar, Gururaja [Tue, 8 May 2012 13:17:31 +0000 (18:47 +0530)]
am335x: correct rtc clock enable checking

SPI0 clock was checked for readyness instead of RTC. This patch corrects
the same.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
6 years agoam335x: Remove legacy 13x13 board support
Hebbar, Gururaja [Tue, 8 May 2012 13:17:30 +0000 (18:47 +0530)]
am335x: Remove legacy 13x13 board support

Support for 13x13 board was added during Bring-up process. Now this
board isn't used by anyone anymore. So remove the code as well.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
6 years agoam335x: use readl & writel instead of __raw_readl & __raw_writel
Hebbar, Gururaja [Tue, 8 May 2012 13:17:29 +0000 (18:47 +0530)]
am335x: use readl & writel instead of __raw_readl & __raw_writel

On ARMv7 cores, device memory mapped as Normal Non-cacheable, may not
guarantee ordered access causing failures in device drivers that do not
use the mandatory memory barriers. readl & writel versions contain
necessary memory barriers for this.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
6 years agoam335x evm: Add am335x_evm_spiboot target
Tom Rini [Thu, 5 Apr 2012 23:14:02 +0000 (16:14 -0700)]
am335x evm: Add am335x_evm_spiboot target

This target will disable SPL for SD/MMC and NAND and place the
environment in SPI flash rather than NAND.

Signed-off-by: Tom Rini <trini@ti.com>
6 years agoam335x evm: Add SPI SPL as an option
Tom Rini [Thu, 5 Apr 2012 22:54:58 +0000 (15:54 -0700)]
am335x evm: Add SPI SPL as an option

Signed-off-by: Tom Rini <trini@ti.com>
6 years agoti81xx: Add SPI SPL support
Tom Rini [Thu, 5 Apr 2012 22:54:17 +0000 (15:54 -0700)]
ti81xx: Add SPI SPL support

Signed-off-by: Tom Rini <trini@ti.com>
6 years agoomapimage: Add support for byteswapped SPI images
Tom Rini [Thu, 5 Apr 2012 22:54:08 +0000 (15:54 -0700)]
omapimage: Add support for byteswapped SPI images

Signed-off-by: Tom Rini <trini@ti.com>
6 years agoVarious: Add SPL malloc defines
Tom Rini [Thu, 5 Apr 2012 21:36:15 +0000 (14:36 -0700)]
Various: Add SPL malloc defines

Signed-off-by: Tom Rini <trini@ti.com>
6 years agoomap: spl: fix build break due to changes in FAT
Aneesh V [Fri, 21 Oct 2011 16:29:34 +0000 (12:29 -0400)]
omap: spl: fix build break due to changes in FAT

FAT library now uses malloc() and free(). But SPL doesn't
have heap until now. Setup a heap in SDRAM to fix this issue.

However this increases SPL footprint beyond the available SRAM
budget. So, compile out some fancy features in the SDARM init
bring back footprint under control

CC: Sandeep Paulraj <s-paulraj@ti.com>
CC: Wolfgang Denk <wd@denx.de>
Signed-off-by: Aneesh V <aneesh@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
6 years agosf: Add spi_boot() to allow booting from SPI flash in an SPL
Christian Riesch [Fri, 9 Dec 2011 09:47:35 +0000 (09:47 +0000)]
sf: Add spi_boot() to allow booting from SPI flash in an SPL

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Heiko Schocher <hs@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Scott Wood <scottwood@freescale.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
6 years agospl: display_options.o is required for SPI flash support in SPL
Christian Riesch [Fri, 9 Dec 2011 09:47:34 +0000 (09:47 +0000)]
spl: display_options.o is required for SPI flash support in SPL

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Heiko Schocher <hs@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
6 years agoam335x: Add support for MMC1
Tom Rini [Tue, 20 Mar 2012 17:37:53 +0000 (10:37 -0700)]
am335x: Add support for MMC1

We now always support HSMMC0 and HSMMC1.  If HSMMC1 is usable will
depend on the hardware configuration.

Signed-off-by: Tom Rini <trini@ti.com>
6 years agoBACKPORT: Improve SPL support for am33xx device
Tom Rini [Tue, 20 Mar 2012 17:31:15 +0000 (10:31 -0700)]
BACKPORT: Improve SPL support for am33xx device

This is a backport from mainline (as of 24c6899).  We now dynamically
determine if we are a FAT or RAW MMC device.

Signed-off-by: Tom Rini <trini@ti.com>
6 years agoSupport ubi.img file size of 128MB in Fastboot-ICS
khasim [Wed, 11 Apr 2012 09:53:04 +0000 (15:23 +0530)]
Support ubi.img file size of 128MB in Fastboot-ICS

    Increased the maximum loadable size for the ubi.img to 128MB through Fastboot

Signed-off-by: Umakanta Patro <umakanta.patro@ti.com>
6 years agoam335x: Enable RTC 32K OSC clock
Vaibhav Hiremath [Thu, 8 Mar 2012 11:45:47 +0000 (17:15 +0530)]
am335x: Enable RTC 32K OSC clock

In order to support low power state, you must source kernel
system timers to persistent clock, available across suspend/resume.
In case of AM335x device, the only source we have is, RTC32K, available
in wakeup/always-on domain.
Having said that, during validation it has been observed that, RTC clock
need couple of seconds delay to stabilize the RTC OSC clock;
and such a huge delay is not acceptable in kernel especially during
early init and also it will impact quick/fast boot use-cases.

So, RTC32k OSC enable dependency has been shifted to SPL/first-bootloader.

In Kernel, in order to support older u-boot version/releases we have
adopted fallback mechanism; where, if timer goes into bad state OR
becomes idle, then we again switch back to main/default sys_ck_in (24MHz).

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
CC: Tom Rini <trini@ti.com>
6 years agoddr_defs: change DDR timings for 15x15 EVM
Chase Maupin [Thu, 9 Feb 2012 19:09:27 +0000 (13:09 -0600)]
ddr_defs: change DDR timings for 15x15 EVM

* For cold silicon the DDR timings need to be relaxed in order for
  the device to boot with DDR at 266MHz
* Fix proposed by James Doublesin

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
6 years agoomap3beagle: Drop to 800MHz
Tom Rini [Tue, 13 Dec 2011 23:51:18 +0000 (16:51 -0700)]
omap3beagle: Drop to 800MHz

This is the highest frequency supported on xM without BIAS drivers.

Signed-off-by: Tom Rini <trini@ti.com>
6 years agoRevert "Use arm-eabi-ld.bfd linker to build"
Pankaj Bharadiya [Tue, 28 Feb 2012 13:45:37 +0000 (19:15 +0530)]
Revert "Use arm-eabi-ld.bfd linker to build"

This reverts commit a9fe7e4715359b7d0544615d1aaffa2b2c6f3676.

6 years agoFASTBOOT: Workaround for file download hang issue am335x-master-android
Goutam Kumar [Tue, 17 Jan 2012 13:07:08 +0000 (18:37 +0530)]
FASTBOOT: Workaround for file download hang issue

AM335X_EVM: file downloads hung with fastboot commands.
    1.  ./fastboot boot <uImage path>
    2.  ./fastboot flash <file type> <file path>

This is workaround of adding 1 msec delay.

TODO: Need to find reason for file download inconsistent behavior.

Signed-off-by: Goutam Kumar <goutam.kumar@ti.com>
6 years agoFASTBOOT: HW ECC BCH8 support & NAND layout configured
Goutam Kumar [Tue, 17 Jan 2012 12:58:07 +0000 (18:28 +0530)]
FASTBOOT: HW ECC BCH8 support & NAND layout configured

Added HW ECC BCH8 support in fastboot and the NAND layout is configured as
seen by u-boot so as to match the kernel NAND layout. Mtd partition names
have also been changed according to Fastboot conventions.

   0x00000000 - 0x00080000 spl
   0x00080000 - 0x00260000 uboot
   0x00260000 - 0x00280000 environment
   0x00280000 - 0x00780000 kernel
   0x00780000 - 0x10000000 filesystem

Fastboot flash commands arguments have changed in this u-boot.

The modified commands are:
 $ ./fastboot flash spl <path of MLO>
 $ ./fastboot flash uboot <path of u-boot.img>
 $ ./fastboot flash kernel <path of uImage>
 $ ./fastboot flash filesystem <path of ubi.img>

Signed-off-by: Goutam Kumar <goutam.kumar@ti.com>
6 years agoFASTBOOT: Support is enabled for OMAP3EVM/AM37XEVM
Goutam Kumar [Tue, 25 Oct 2011 14:20:23 +0000 (19:50 +0530)]
FASTBOOT: Support is enabled for OMAP3EVM/AM37XEVM

1. Corrected build error for OMAP3EVM/AM37XEVM with fastboot support.

Signed-off-by: Goutam Kumar <goutam.kumar@ti.com>
6 years agoFASTBOOT: Compilation error correction
Goutam Kumar [Mon, 24 Oct 2011 13:17:51 +0000 (18:47 +0530)]
FASTBOOT: Compilation error correction

After applying all 36 fastboot & musb patches, there were some compilation
errors as:
1. re-declaration of "do_reset" & "do_bootm".
2. API name mis-match from "do_saveenv" & "do_setenv" to "do_env_save" &
   "do_env_set".

Signed-off-by: Goutam Kumar <goutam.kumar@ti.com>
6 years agoAdded MUSB support for AM335X
Prashantha Krishna [Mon, 26 Sep 2011 09:32:55 +0000 (15:02 +0530)]
Added MUSB support for AM335X

This adds MUSB support for AM335X to operate in both host mode and
peripheral mode. Fastboot is tested with this MUSB patch.

Signed-off-by: Prashantha Krishna <x0156546@ti.com>
6 years agoFASTBOOT: Housekeeping
Afzal Mohammed [Thu, 16 Dec 2010 13:52:37 +0000 (19:22 +0530)]
FASTBOOT: Housekeeping

Housekeeping

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Resolved issue with reconnecting cable
Afzal Mohammed [Thu, 16 Dec 2010 13:50:27 +0000 (19:20 +0530)]
FASTBOOT: Resolved issue with reconnecting cable

MUSB core interrupt also read from TI registers instead of MUSB registers.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: AM35X support added
Afzal Mohammed [Thu, 16 Dec 2010 11:26:24 +0000 (16:56 +0530)]
FASTBOOT: AM35X support added

Added AM35X support. MUSB UDC has to be modified; to capture interrupt
status TI registers has to be accessed instead of MUSB registers.
Verified to work properly with both Linux & Windows host as HS device.

TODO: Reconnecting cable causes device to be unrecognized by the host,
possible issue may be bytewise read on MUSB registers causing corruption.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Resolve compiler error when compiling MUSB as host
Afzal Mohammed [Wed, 15 Dec 2010 07:45:09 +0000 (13:15 +0530)]
FASTBOOT: Resolve compiler error when compiling MUSB as host

Resolve compiler error when compiling MUSB as host by using macro
CONFIG_CMD_FASTBOOT for conditional compilation instead of
CONFIG_FASTBOOT. Another macro for CONFIG_CMD_FASTBOOT may be
appropriate so as to take care of fastboot at boot (to be implemented)

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Copyright updated
Afzal Mohammed [Wed, 15 Dec 2010 04:20:52 +0000 (09:50 +0530)]
FASTBOOT: Copyright updated

Copyright updated

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Device made to get enumerated as HS if host supports it.
Afzal Mohammed [Tue, 14 Dec 2010 09:15:40 +0000 (14:45 +0530)]
FASTBOOT: Device made to get enumerated as HS if host supports it.

Based on HS negotiation result with host, device is configured as HS or FS

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Fastboot using MUSB made HS capable
Afzal Mohammed [Mon, 13 Dec 2010 07:37:00 +0000 (13:07 +0530)]
FASTBOOT: Fastboot using MUSB made HS capable

Fastboot, MUSB UDC & USB modified to take care of USB HS.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Combine different instances of FASTBOOT_RESPONSE_FLAG to one
Afzal Mohammed [Mon, 13 Dec 2010 05:31:10 +0000 (11:01 +0530)]
FASTBOOT: Combine different instances of FASTBOOT_RESPONSE_FLAG to one

Combine different instances of FASTBOOT_RESPONSE_FLAG to one coming
under fbt_rx_process().

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Revert data toggling for MUSB UDC
Afzal Mohammed [Fri, 10 Dec 2010 12:26:48 +0000 (17:56 +0530)]
FASTBOOT: Revert data toggling for MUSB UDC

Revert data toggling for MUSB UDC

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: OMAP3EVM: Use partition name and product name as required by Android
Afzal Mohammed [Fri, 10 Dec 2010 09:10:12 +0000 (14:40 +0530)]
FASTBOOT: OMAP3EVM: Use partition name and product name as required by Android

Partition name changed from kernel to boot; boot is combination of uImage and
ramdisk. Product name modified so that fastboot command - flashall can be
executed successfully, fastboot host requires the name depending on actual
product name used during Android build.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Use macros for EP numbers/index
Afzal Mohammed [Wed, 8 Dec 2010 08:09:06 +0000 (13:39 +0530)]
FASTBOOT: Use macros for EP numbers/index

Use macros for EP numbers/index in fstboot driver

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Cleanup
Afzal Mohammed [Tue, 7 Dec 2010 03:40:34 +0000 (09:10 +0530)]
FASTBOOT: Cleanup

fastboot driver cleanup

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Incorporated fastboot upload capability
Afzal Mohammed [Mon, 6 Dec 2010 14:00:28 +0000 (19:30 +0530)]
FASTBOOT: Incorporated fastboot upload capability

Incorporated fastboot upload capability; This command has not been
observed as part of fastboot protocol, but it has been implemented
as part of OmapZoom.
TODO:
1. Check whether USB serial works after MUSB UDC changes done for fastboot
2. Incorporate handling of various fastboot command options
3. Test commands - boot, flashall, flash:raw, update, upload
4. Error recovery
5. Cleanup

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Added fastboot command - boot
Afzal Mohammed [Mon, 6 Dec 2010 09:11:00 +0000 (14:41 +0530)]
FASTBOOT: Added fastboot command - boot

Added fastboot boot command. This has not been verified.
TODO: Verify boot command.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Added fastboot commands - reboot & continue
Afzal Mohammed [Mon, 6 Dec 2010 08:42:58 +0000 (14:12 +0530)]
FASTBOOT: Added fastboot commands - reboot & continue

Added fastboot commands reboot, reboot-bootloader (for now effect
of both are same) and continue.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Handle other "fastboot getvar" commands
Afzal Mohammed [Mon, 6 Dec 2010 07:42:20 +0000 (13:12 +0530)]
FASTBOOT: Handle other "fastboot getvar" commands

Incorporated code to handle additional "fastboot getvar" commands

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Add capability to add partitions dynamically
Afzal Mohammed [Mon, 6 Dec 2010 06:19:47 +0000 (11:49 +0530)]
FASTBOOT: Add capability to add partitions dynamically

Add capability for fastboot to add partitions during initialization
based on information stored under "fbparts" environmental variable.
This has been ported from OmapZooom.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Remove board specific details from fastboot function(command) driver
Afzal Mohammed [Mon, 6 Dec 2010 04:08:24 +0000 (09:38 +0530)]
FASTBOOT: Remove board specific details from fastboot function(command) driver

Setting partition detail - a board specific matter, moved from
the board independent fastboot function (command) driver to
board file(OMAP3 EVM).

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Disable debug prints in MUSB UDC
Afzal Mohammed [Fri, 3 Dec 2010 13:27:48 +0000 (18:57 +0530)]
FASTBOOT: Disable debug prints in MUSB UDC

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: Revert changes done for testing
Afzal Mohammed [Fri, 3 Dec 2010 13:24:49 +0000 (18:54 +0530)]
FASTBOOT: Revert changes done for testing

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: fastboot flash command working
Afzal Mohammed [Fri, 3 Dec 2010 13:15:21 +0000 (18:45 +0530)]
FASTBOOT: fastboot flash command working

Ported fastboot command - flash handling form OmapZoom.
Flashing is working,has to be tested thoroughly
TODO:
1. Incorporate remaining fastboot commands
2. Error recovery
3. Cleanup
4. Environmental partition has to be setup during initialization
5. A better organized handling or design for memory hardware so that
   both flash and SD/MMC can be used, if doing, handle code inside
   macro - FASTBOOT_PORT_OMAPZOOM_NAND_FLASHING
6. Check the effect of modification in MUSB gadget driver on serial driver

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
6 years agoFASTBOOT: fastboot erase working
Amit Pundir [Fri, 6 May 2011 11:12:07 +0000 (16:42 +0530)]
FASTBOOT: fastboot erase working

Ported erase & partial flash code from OmapZoom.
Fastboot erase is working.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>