pandaboard:u-boot-4460.git
7 years agoAdd zero bootdelay check master
Herve Fache [Thu, 18 Nov 2010 10:31:38 +0000 (11:31 +0100)]
Add zero bootdelay check

7 years agoOMAP3:HSMMC: Add support for multiple block write.
Moiz Sonasath [Tue, 27 Jul 2010 15:52:29 +0000 (10:52 -0500)]
OMAP3:HSMMC: Add support for multiple block write.

This patch adds support for MULTI_WRITE(cmd25) command.This increases
write throughput significantly.

Signed-off-by: Madhusudhan Chikkature <madhu.cr@ti.com>
Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
7 years agoU-boot: Fix the boot device type display during u-boot booting
Moiz Sonasath [Mon, 19 Jul 2010 17:49:49 +0000 (12:49 -0500)]
U-boot: Fix the boot device type display during u-boot booting

This patch implements logic to display correct boot device type
during the u-boot booting. The patch uses the software booting
configuration stored in the special scratchpad memory, which is
not cleared after software resets or wakeups to determine the
boot device at run-time during the u-boot booting.

Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
7 years agoU-boot: Add support for flashing to EMMC using Fastboot
Moiz Sonasath [Fri, 16 Jul 2010 17:07:00 +0000 (12:07 -0500)]
U-boot: Add support for flashing to EMMC using Fastboot

This patch introduces the support for flashing to EMMC using existing
fastboot. Based on the storage medium type (NAND/EMMC) respective
write/erase functions are invoked and mbr/xloader/bootloader/
environment/kernel/filesystem can be flashed to respective NAND/EMMC
partitions using fastboot.

Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
7 years agoU-boot: Put NAND functions under storage-type check
Moiz Sonasath [Fri, 16 Jul 2010 17:05:45 +0000 (12:05 -0500)]
U-boot: Put NAND functions under storage-type check

This patch introduces NO functionality changes. It just puts
the execution of NAND erase/write functions under storage
medium check (#if defined CONFIG_STORAGE_NAND).

Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
7 years agoU-boot: Bug-Fix size comparisions in mmc erase function
Moiz Sonasath [Fri, 16 Jul 2010 17:04:07 +0000 (12:04 -0500)]
U-boot: Bug-Fix size comparisions in mmc erase function

Here, the card size (mmc_size->size) is defined in terms of sectors and is
compared against bytes (start and size), so change everything in terms
of sectors for a uniform comparision.

Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
7 years agoU-boot: Func. support for MMC/SD1 & MMC/SD2 on OMAP3
Moiz Sonasath [Fri, 16 Jul 2010 16:44:17 +0000 (11:44 -0500)]
U-boot: Func. support for MMC/SD1 & MMC/SD2 on OMAP3

This patch adds read/write/erase functionality support for external
MMC cards on SLOT 1 (MMC/SD1) and EMMC (MMC/SD2) present on OMAP3
board.

Signed-off-by: Kishore Kadiyala <kishore.kadiyala@ti.com>
Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
7 years agoU-boot: Add saveenv feature support for EMMC for zoom3
Moiz Sonasath [Fri, 16 Jul 2010 17:15:11 +0000 (12:15 -0500)]
U-boot: Add saveenv feature support for EMMC for zoom3

The Saveenv feature saves the environmental variables for u-boot which
are set on sector 0x700 of EMMC.

Signed-off-by: Kishore Kadiyala <kishore.kadiyala@ti.com>
Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
7 years agoU-boot: Create partition table for EMMC flash using fastboot
Moiz Sonasath [Fri, 16 Jul 2010 17:44:11 +0000 (12:44 -0500)]
U-boot: Create partition table for EMMC flash using fastboot

This patch creates the required partition table for EMMC boot and to
support eMMc flash using fastboot.

The partition table is as shown:

Partition-Name Sector-start-address Size
-----------------------------------------------------------------------
mbr 0x00 512B(0x200)
xloader 0x100 384KB(0x60000)
bootloader 0x400 384KB(0x60000)
environment 0x700 128KB(0x20000)
kernel 0x800 6.5MB(0x680000)
misc 0x3C00 512B(0x200)
system 0x3EC1 200MB(0xC800000)
userdata 0x69E5B 32MB(0x2000000)
cache 0x7D820 32MB(0x2000000)
recovery 0x911E5 300MB(0x12C00000)

Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
7 years agoU-boot: Add new config file 'omap3630zoom3_emmc_config'
Moiz Sonasath [Fri, 16 Jul 2010 16:03:21 +0000 (11:03 -0500)]
U-boot: Add new config file 'omap3630zoom3_emmc_config'

This patch adds a new config file 'omap3630zoom3_emmc_config' which
should be used for Fastboot flashing to EMMC on Zoom3 board instead
of NAND.

So inorder to do fastboot flash to EMMC build your u-boot using:
$ make omap3630zoom3_emmc_config

Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
7 years agoMerge "Fix build error with inline function on GCC-4.4.1"
vikram pandita [Fri, 30 Jul 2010 00:52:56 +0000 (00:52 +0000)]
Merge "Fix build error with inline function on GCC-4.4.1"

7 years agoThis patch updates the NAND partition table
Akash Choudhari [Tue, 27 Jul 2010 23:01:52 +0000 (18:01 -0500)]
This patch updates the NAND partition table

The change is needed for FLASH player installation

Signed-off-by: Akash Choudhari <akashc@ti.com>
7 years agoFix build error with inline function on GCC-4.4.1
Praneeth Bajjuri [Tue, 27 Jul 2010 21:23:44 +0000 (17:23 -0400)]
Fix build error with inline function on GCC-4.4.1

This patch is to fix build error caused with gcc-4.4.1 about
inline function declared weak

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
7 years agoOMAP: NAND: increase data partition to 40 MB
Leed Aguilar [Mon, 19 Jul 2010 23:10:11 +0000 (18:10 -0500)]
OMAP: NAND: increase data partition to 40 MB

Increase DATA partition in NAND to 40MB to accomodate FLASH support

Signed-off-by: Akash Choudhari <akashc@ti.com>
Signed-off-by: Leed Aguilar <leed.aguilar@ti.com>
7 years agoOMAP3 : Corrected the SDCR configuration for Hynix 1GB ddr module
Deepak K [Wed, 14 Jul 2010 01:30:58 +0000 (20:30 -0500)]
OMAP3 : Corrected the SDCR configuration for Hynix 1GB ddr module

This patch fixes the SDCR Memory Configuration for 1GB memory space.
CAS Width Change has been modified to 6 to accomodate the 1GB memory
space. This corrects columns addressing from A0-A9 and A11.

Signed-off-by: Deepak K <deepak.k@ti.com>
7 years agou-boot: omap_3630: gpmc_ncs6 padconf corrected
Ghorai, Sukumar [Tue, 13 Jul 2010 03:29:46 +0000 (22:29 -0500)]
u-boot: omap_3630: gpmc_ncs6 padconf corrected

gpmc_ncs6 padconf configured for not to select external dma-request mode.
MP3 playback consume extra power with alsa sink, when this pin is configured for external dma-request mode(1) i.e. not allowing SDMA to go standby mode.

Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
Tested-by: Ghongdemath, Girish <girishsg@ti.com>
7 years agoOMAP: NAND: increase system partition size to 180MB
Leed Aguilar [Wed, 7 Jul 2010 21:30:47 +0000 (16:30 -0500)]
OMAP: NAND: increase system partition size to 180MB

Increase SYSTEM partition in NAND by 20MB to accomodate
FLASH support

Author: Akash Choudhari <akashc@ti.com>
Signed-off-by: Leed Aguilar <leed.aguilar@ti.com>
7 years agoRevert "OMAP: ARM Errata 687067 workaround"
Vikram Pandita [Thu, 6 May 2010 22:38:48 +0000 (17:38 -0500)]
Revert "OMAP: ARM Errata 687067 workaround"

Causes Random hangs on system. So reverting for now.

This reverts commit dd420b370b209e093bad391dcf0903609732cd02.

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Reported-by: Choudhari, Akash <akashc@ti.com>
7 years agoOMAP: ARM Errata 687067 workaround
DebBarma, Tarun Kanti [Tue, 27 Apr 2010 14:49:29 +0000 (09:49 -0500)]
OMAP: ARM Errata 687067 workaround

BTB invalidate by MVA will not work as
intended when IBE bit is enabled.

Workaround:
Clearing of IBE bit moved to u-boot since it has
dependency with romcode API call.

Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
7 years agoEnable 3630zoom3 1GB DDR config
Christina Warren [Tue, 27 Apr 2010 14:28:16 +0000 (09:28 -0500)]
Enable 3630zoom3 1GB DDR config

3630 ES1.1 Zoom3 SOM boards come with 1GB DDR
Enable 1GB DDR memory for the same

Signed-off-by: Christina Warren <cawarren@ti.com>
Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
7 years agoFix autoboot cmd for nandboot
Sergio Aguirre [Mon, 22 Mar 2010 15:45:54 +0000 (10:45 -0500)]
Fix autoboot cmd for nandboot

In the default bootargs, in the 'autoboot'
environment variable, the else clause was
missing a 'run' command before attempting
to execute the 'nandboot' environment
variable.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
7 years agoNAND: Add an option for raw read
Tom Rix [Mon, 22 Mar 2010 22:53:37 +0000 (17:53 -0500)]
NAND: Add an option for raw read

This allows the user to read the raw data
and the OOB blocks from NAND.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
7 years agoFastboot: Add support for new 'upload' command.
Tom Rix [Mon, 22 Mar 2010 22:28:12 +0000 (17:28 -0500)]
Fastboot: Add support for new 'upload' command.

The 'upload' function is similar to 'download'.
The direction of data transfer is reversed where the
client uses 'download' to send parition data to the
device, the client can now use 'upload' to receive
partition data from the device. Example: Making a copy
of the kernel partition. The protocol is:
upload:partition_name:buffer_size

The client is expected to query the device for the
correct buffer size by issuing the command:
upload:partition_name:0
The device will return a response DATA<buffer_size>,
similar to what is done for download. If the
buffer_size matches, the device will resend
DATA<buffer_size> and a stream of data that can be
read in similar manner as the status responses, as
received data from the bulk endpoint.

There is a variation of read called 'uploadraw'. The
partition data and the oob data can be read using this
command. It behaves the same as 'upload', except that
the oob data is packed within the regular nand data and
is suitable for use in nand write.raw buff.raw

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
7 years agoFastboot: Add OOB size to nand interface.
Tom Rix [Tue, 25 Aug 2009 20:43:36 +0000 (15:43 -0500)]
Fastboot: Add OOB size to nand interface.

This is needed to support raw reading and writing
of NAND partitions.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
7 years agoFastboot: Support the 'continue' command.
Tom Rix [Mon, 24 Aug 2009 21:16:18 +0000 (16:16 -0500)]
Fastboot: Support the 'continue' command.

When the client issues a 'continue' command,
fastboot exits its processing and booting resumes.

The client dsiplays the message "resuming boot"
while the target displays the message
"Fastboot ended by client".

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
7 years agoRemove udelay dependency at init in OMAP3430
Sukumar Ghorai [Mon, 1 Mar 2010 14:21:18 +0000 (19:51 +0530)]
Remove udelay dependency at init in OMAP3430

The udelay() implementation is based on GP-Timer2.
GP-Timer2 Clocks(I,F) are enabled during the initialization
sequence of the x-loader. Hence, booting the u-boot
without an x-loader fails. This patch helps eliminate the
u-boot dependency on the x-loader.

Tested with 3430 Zoom2.

Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
7 years agoAdd support for valid cluster number for FAT32
Sukumar Ghorai [Thu, 18 Feb 2010 06:05:38 +0000 (11:35 +0530)]
Add support for valid cluster number for FAT32

This patch fixes problems seen when trying to fatload large files
i.e. files >100MB.

"Invalid FAT entry" message observed on FAT32 when file size
crosses 0xfff0 cluster. If FAT32, then the valid cluster is 0x0ffffff0
and not 0xfff0.

Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
7 years agoFix warning in led.h
Christina Warren [Wed, 3 Mar 2010 21:04:26 +0000 (15:04 -0600)]
Fix warning in led.h

This patch fixes the warning:
u-boot/include/asm/arch/led.h:42:7: warning:
extra tokens at end of #else directive

Signed-off-by: Christina Warren <cawarren@ti.com>
7 years agoEnable 1GB on the Hynix MCP DDR module
Christina Warren [Tue, 9 Feb 2010 23:08:34 +0000 (17:08 -0600)]
Enable 1GB on the Hynix MCP DDR module

This patch enables 1GB DDR for OMAP3630SDP
with the help of a new defconfig option for
the x-loader.

To build, u-boot:
make omap3630sdp_config
make

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Christina Warren <cawarren@ti.com>
7 years agoOptimizing I2C read/write for OMAP3
Sukumar Ghorai [Wed, 24 Feb 2010 17:44:45 +0000 (11:44 -0600)]
Optimizing I2C read/write for OMAP3

Changing CFG_I2C_SPEED from OMAP_I2C_STANDARD
to OMAP_I2C_FAST_MODE and reducing some of the
delays has helped optimize the u-boot boot time.

Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
7 years agoMMC read/write commands updated for OMAP3
Sukumar Ghorai [Mon, 22 Feb 2010 21:35:42 +0000 (15:35 -0600)]
MMC read/write commands updated for OMAP3

Example -
mmc <read/ write> <slot> <address> <offset> <size>

This patch also adds a print message for reads of
file sizes > 3MB.

Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
7 years agoFix compilation error for NAND on 3430SDP
Sukumar Ghorai [Tue, 9 Feb 2010 17:45:24 +0000 (11:45 -0600)]
Fix compilation error for NAND on 3430SDP

This patch fixes the NAND compilation issue
for OMAP3430SDP.

Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
7 years agoFastboot: Fix break in test automation
Christina Warren [Thu, 4 Feb 2010 19:23:56 +0000 (13:23 -0600)]
Fastboot: Fix break in test automation

The test automation script was breaking due
to the removal of the print statement
"Disconnect USB cable to finish fastboot".
To give the user an idea that fastboot has
been initialized correctly a new print
statement has been added.

Signed-off-by: Christina Warren <cawarren@ti.com>
7 years agoMux setting for gpmc_a11 IO pin
Thara Gopinath [Wed, 3 Feb 2010 19:40:48 +0000 (13:40 -0600)]
Mux setting for gpmc_a11 IO pin

This patch configures gpmc_a11 pin (which is unused)
in mux mode 4, input enable and pull down enable.
This brings down the power consumption on VDDS_OMAP
rail from 95 mw to 4.95 mw during chip retention.

Signed-off-by: Thara Gopinath <thara@ti.com>
7 years agoIncrease number of args for an env variable to 24
Sukumar Ghorai [Wed, 3 Feb 2010 19:40:44 +0000 (13:40 -0600)]
Increase number of args for an env variable to 24

This patch is to support more number of arguments
in a single environment variable.

Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
7 years agoOptimizing NAND read/write to reduce boot time
Cyril Bianconi [Tue, 2 Feb 2010 23:16:29 +0000 (17:16 -0600)]
Optimizing NAND read/write to reduce boot time

NAND read accesses are done by reading a single GPMC
register. Address of this register is stored in a
structure and is not changed when reading or writing a
block of data. With the help of this patch, the
register address will now be read before the loop and
not inside the loop.

Signed-off-by: Cyril Bianconi <c-bianconi@ti.com>
Signed-off-by: Sukumar Ghorai<s-ghorai@ti.com>
Signed-off-by: Christina Warren <cawarren@ti.com>
7 years agoReduce u-boot boot time
Christina Warren [Wed, 3 Feb 2010 00:17:13 +0000 (18:17 -0600)]
Reduce u-boot boot time

Disable the 'OK' keypress check for fastboot.
Reduce the delays in the battery charging loop.
Remove the 'Reading data' print message from
funtion nand_read_opts in /drivers/nand/nand_util.c

Signed-off-by: Christina Warren <cawarren@ti.com>
7 years agoFix incorrect argument count in MMC command
Christina Warren [Thu, 21 Jan 2010 22:34:59 +0000 (16:34 -0600)]
Fix incorrect argument count in MMC command

The function do_mmc was incorrectly checking
for 3 arguments for commands relating to
mmc init, mmc read and mmc write.

Signed-off-by: Christina Warren <cawarren@ti.com>
7 years agoMerge branch 'master' of ssh://cwarren@dev.omapzoom.org:29419/pub/scm/bootloader...
Christina Warren [Thu, 21 Jan 2010 22:50:46 +0000 (16:50 -0600)]
Merge branch 'master' of ssh://cwarren@dev.omapzoom.org:29419/bootloader/u-boot into trix_master

7 years agofastboot: flash uboot xloader with write.i
Vikram Pandita [Tue, 12 Jan 2010 19:56:38 +0000 (13:56 -0600)]
fastboot: flash uboot xloader with write.i

Fastboot should flash the xloader and uboot partitions as:
nand write.i xxxx

this is need to skip the bad blocks for these partitions

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
7 years agoomap: fastboot: use hw ecc for all partitions
Vikram Pandita [Tue, 12 Jan 2010 00:05:04 +0000 (18:05 -0600)]
omap: fastboot: use hw ecc for all partitions

Use hw rom code layout ecc for all fastboot partitions

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
7 years agoSupport and make HW ECC in ROM CODE layout default for 3430sdp
Vimal Singh [Tue, 5 Jan 2010 06:26:10 +0000 (11:56 +0530)]
Support and make HW ECC in ROM CODE layout default for 3430sdp

Support and make HW ECC in ROM CODE layout default for 3430sdp

Signed-off-by: Vimal Singh <vimalsingh@ti.com>
7 years agoMaking HW ECC in ROM CODE layout default for zoom2 and ldp boards
Vimal Singh [Tue, 22 Dec 2009 06:38:27 +0000 (12:08 +0530)]
Making HW ECC in ROM CODE layout default for zoom2 and ldp boards

Making HW ECC in ROM CODE layout default for zoom2 and ldp boards

Vikram: added zoom3 and 3630sdp board file changes

Signed-off-by: Vimal Singh <vimalsingh@ti.com>
Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
7 years agoomap: mux: fix delay loop count
Vikram Pandita [Tue, 12 Jan 2010 00:07:24 +0000 (18:07 -0600)]
omap: mux: fix delay loop count

Correct fix is to get gptimer based udelay() working at
early init stage.

delay() is an loop counter which is not accurate

this patch needs to be revisited

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
7 years agoOMAP3630: Remove udelay dependency on initialization
Sukumar Ghorai [Fri, 8 Jan 2010 06:55:31 +0000 (12:25 +0530)]
OMAP3630: Remove udelay dependency on initialization

udelay() implementation is based on GP-Timer2.
Clocks(I,F) are enabled for the GP-timer2 in xloader.

For eMMC raw boot, x-loader is not invoked, hence udelay() fails.

Signed-off-by: Sukumar Ghorai<s-ghorai@ti.com>
8 years agoDPLL4 locked at 864MHZ for OMAP3630Zoom3
Sukumar Ghorai [Thu, 17 Dec 2009 22:07:14 +0000 (16:07 -0600)]
DPLL4 locked at 864MHZ for OMAP3630Zoom3

Default u-boot locked DPLL4 @1728MHz and changed to 864MHz.

With dpll4 locked at 1728, due to hw limitation,
we cannot set M3 value as 32 to get dpll4_M3 [TV out]
as 54 MHz. The hw limitation is the register width.
Therefore, we are locking dpll4 at 864 to get TV OUT
(dpll4 M3) to 54 MHz by using a clock divider [M3 value]
of 16.

Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoChange boot info for OMAP3630Zoom3
Christina Warren [Tue, 15 Dec 2009 23:06:20 +0000 (17:06 -0600)]
Change boot info for OMAP3630Zoom3

The u-boot was incorrectly displaying NOR as the
boot type. This patch fixes that.

Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoUpdate MMC command to support MMC2 and read/write in OMAP3
Sukumar Ghorai [Thu, 17 Dec 2009 21:31:37 +0000 (15:31 -0600)]
Update MMC command to support MMC2 and read/write in OMAP3

Boot CMD added for mmc init, mmc read and mmc write.
Examples:
mmcinit 0 or mmc init 0

fatload mmc 0 80000000 mlo
mmc write 1 80000000 0 2A

fatload mmc 0 80000000 u-boot.bin
mmc write 1 80000000 400 16B

read.i and write.i command also supported.

Signed-off-by: Sukumar Ghorai<s-ghorai@ti.com>
Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoAdd MMC2 support for OMAP3
Sukumar Ghorai [Thu, 17 Dec 2009 20:20:49 +0000 (14:20 -0600)]
Add MMC2 support for OMAP3

MMC files have been modified to add support for MMC2.
Write functionality has been added.

Signed-off-by: Sukumar Ghorai<s-ghorai@ti.com>
Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoDPLL4 locked at 864MHZ for OMAP3630Zoom3
Christina Warren [Thu, 17 Dec 2009 22:07:14 +0000 (16:07 -0600)]
DPLL4 locked at 864MHZ for OMAP3630Zoom3

Default u-boot locked DPLL4 @1728MHz and changed to 864MHz.

With dpll4 locked at 1728, due to hw limitation,
we cannot set M3 value as 32 to get dpll4_M3 [TV out]
as 54 MHz. The hw limitation is the register width.
Therefore, we are locking dpll4 at 864 to get TV OUT
(dpll4 M3) to 54 MHz by using a clock divider [M3 value]
of 16.

Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoChange boot info for OMAP3630Zoom3
Christina Warren [Tue, 15 Dec 2009 23:06:20 +0000 (17:06 -0600)]
Change boot info for OMAP3630Zoom3

The u-boot was incorrectly displaying NOR as the
boot type. This patch fixes that.

Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoUpdate MMC command to support MMC2 and read/write in OMAP3
Christina Warren [Thu, 17 Dec 2009 21:31:37 +0000 (15:31 -0600)]
Update MMC command to support MMC2 and read/write in OMAP3

Boot CMD added for mmc init, mmc read and mmc write.
Examples:
mmcinit 0 or mmc init 0

fatload mmc 0 80000000 mlo
mmc write 1 80000000 0 2A

fatload mmc 0 80000000 u-boot.bin
mmc write 1 80000000 400 16B

read.i and write.i command also supported.

Signed-off-by: Sukumar Ghorai<s-ghorai@ti.com>
Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoAdd MMC2 support for OMAP3
Christina Warren [Thu, 17 Dec 2009 20:20:49 +0000 (14:20 -0600)]
Add MMC2 support for OMAP3

MMC files have been modified to add support for MMC2.
Write functionality has been added.

Signed-off-by: Sukumar Ghorai<s-ghorai@ti.com>
Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoEnable switching between hw and sw ECC for NAND on OMAP3630SDP
Ghorai, Sukumar [Fri, 11 Dec 2009 04:09:09 +0000 (09:39 +0530)]
Enable switching between hw and sw ECC for NAND on OMAP3630SDP

Added flag CONFIG_3630SDP to enable the function omap_nand_switch_ecc for OMAP3630SDP.

Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
(cherry picked from commit acf147c514cae8ca467621683546e49c33d03dd0)

8 years agoOMAP3xxx: Pinmux updated for Display & Camera
Ghorai, Sukumar [Mon, 7 Dec 2009 09:42:37 +0000 (15:12 +0530)]
OMAP3xxx: Pinmux updated for Display & Camera

Pinmux updated for Camera, TVout, HDMI related.

Signed-off-by: Sukumar Ghorai<s-ghorai@ti.com>
(cherry picked from commit e21b55d0fc7e2fa76986759f72d335ed0bc8c5e1)

8 years agoDPLL4 locked at 864MHz for OMAP3630SDP
Ghorai, Sukumar [Thu, 3 Dec 2009 05:17:40 +0000 (10:47 +0530)]
DPLL4 locked at 864MHz for OMAP3630SDP

Default u-boot locked DPLL4 @1728MHz and changed to 864MHz.

Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
8 years agou-boot OMAP3xxx: SDRC reset done on warm-reset for OMAP3
Ghorai, Sukumar [Thu, 3 Dec 2009 00:01:53 +0000 (18:01 -0600)]
u-boot OMAP3xxx: SDRC reset done on warm-reset for OMAP3

Some cases it found that DDR memory is not accessable after SW reset. For warm
reset - enabled SDRC interface clock  and wait until SDRC goes out of idle.

Signed-off-by: Sukumar Ghorai<s-ghorai@ti.com>
(cherry picked from commit 334f6da63c11898e955ba173f40c479d1e72bc3a)

8 years agou-boot OMAP3xxx: Change IVA Bypass Clock configuration in OMAP3
Ghorai, Sukumar [Thu, 3 Dec 2009 00:01:33 +0000 (18:01 -0600)]
u-boot OMAP3xxx: Change IVA Bypass Clock configuration in OMAP3

Bypass clock setting was not done at boot-up time and that cause DSP crash when
IVA is waking up out of retention for a short time.

Signed-off-by: Sukumar Ghorai<s-ghorai@ti.com>
(cherry picked from commit 9b6425ef83397aa7e3133ac3eb9c21b6e3a52ae4)

8 years agou-boot OMAP36xx SDP: OMAP3630 SDP u-boot support added
Ghorai, Sukumar [Thu, 3 Dec 2009 00:01:14 +0000 (18:01 -0600)]
u-boot OMAP36xx SDP: OMAP3630 SDP u-boot support added

        1. New configuration added for OMAP3630 SDP support
        2. borad folder created
        3. updated Memory configuration for SDP

Signed-off-by: Sukumar Ghorai<s-ghorai@ti.com>
(cherry picked from commit 751f516ac17c497f97d45515da38705761e03a1f)

8 years agou-boot OMAP36xx: MMC#2 pin-mux updated
Ghorai, Sukumar [Thu, 19 Nov 2009 18:57:42 +0000 (00:27 +0530)]
u-boot OMAP36xx: MMC#2 pin-mux updated

MMC#2 pin mux updated to support the MMC#2(e.g. eMMM).
This also helps to avoid pin-mux in kernel code.

Signed-off-by: Sukumar Ghorai<s-ghorai@ti.com>
(cherry picked from commit fe9043d0c993f90485de1684be8706708ffa36b0)

8 years agoFastboot: Fix MUSB DMA word alignment issue on OMAP3630Zoom3
Christina Warren [Fri, 11 Dec 2009 22:59:45 +0000 (16:59 -0600)]
Fastboot: Fix MUSB DMA word alignment issue on OMAP3630Zoom3

With dma enabled, we were losing the first two bytes of each
page. Due to which the ecc did not match up and the ROM code
was unable to boot the x-loader out of NAND.

This problem was caused by a misaligned address being passed
to the DMA_ADDR register. The MUSB spec states that the start
address (written to the MUSB_DMA_ADDR_CH(n) register) must be
word aligned. This patch fixes the problem.

Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoMerge branch 'next'
Vikram Pandita [Tue, 1 Dec 2009 21:01:11 +0000 (15:01 -0600)]
Merge branch 'next'

8 years agou-boot OMAP36xx: MPU, IVA freq. updated as per OPP100 table
Ghorai, Sukumar [Tue, 1 Dec 2009 20:49:19 +0000 (14:49 -0600)]
u-boot OMAP36xx: MPU, IVA freq. updated as per OPP100 table

Updated as per h/w team recommendation for OPP100 only:
        Dino(MPU) 600-MHz, IVA22 520-MHz;
        FSEL field is not used;

Signed-off-by: Sukumar Ghorai<s-ghorai@ti.com>
8 years agoFastboot support comments in environment files
Tom Rix [Wed, 26 Aug 2009 16:56:47 +0000 (11:56 -0500)]
Fastboot support comments in environment files

The comments in environment files are now similar to bash.
The '#' is the comment character.

The limitation is that the '#' must be in used before any other
non-whitespace character.

These are valid :

     # Don't use this one
   # Use this one

This is not valid :

bootcmd bootm 81000000 # My boot command

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoU-boot Enable board resetting for Zoom1
Tom Rix [Wed, 8 Jul 2009 12:52:38 +0000 (07:52 -0500)]
U-boot Enable board resetting for Zoom1

The twl4030 hardware reset circuitry is common for Zoom1 and Zoom2.

The Zoom1 reset button is the red button on the top right front
of the Zoom1 board.  Hold the button for 8 seconds to do a cold
reset.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoU-boot SDP ES 3.1 uses a new memory type.
Tom Rix [Wed, 13 May 2009 23:11:54 +0000 (18:11 -0500)]
U-boot SDP ES 3.1 uses a new memory type.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoFastboot support disconnecting and reconnecting the usb cable
Tom Rix [Wed, 12 Aug 2009 18:57:55 +0000 (13:57 -0500)]
Fastboot support disconnecting and reconnecting the usb cable

Earlier, when the cable was disconnected, the fastboot device
shutdown.  Now that the user can disconnect either from a
timeout or a Ctrl-C on the console, do not shutdown the device
with a disconnect is detected. Go back to the start usb
discovery state and wait for the cable to be reconnected.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoFastboot Fix warning about invalid buffer size.
Tom Rix [Wed, 12 Aug 2009 19:25:44 +0000 (14:25 -0500)]
Fastboot Fix warning about invalid buffer size.

In linux syslog, there is a warning that the existing size of 64
bytes for the tx fifo is incorrect.  The fastboot client only reads
at most 64 bytes so this not a true error.  However to quiet the
warning make the tx fifo size behave the same as the rx fifo.
Both now are 512 bytes for high speed and and 64 bytes for fullspeed.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoFastboot add serial number support to fastboot
Tom Rix [Wed, 12 Aug 2009 16:40:16 +0000 (11:40 -0500)]
Fastboot add serial number support to fastboot

In order for the fastboot client to handle multiple devices,
it uses the -s <serial number> option to find the correct
device.

To support this, base the serial number on the dieid# environment
variable that is already being used.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoU-boot fastboot : fix a problem with return value being incorrect.
Tom Rix [Mon, 3 Aug 2009 22:06:07 +0000 (17:06 -0500)]
U-boot fastboot : fix a problem with return value being incorrect.

The inner loop definition of ret shadows the outer loop.  This is
a bug, remove the inner loop definition.

Signed-off-by: Tom Rix <trix@windriver.com>
8 years agoU-boot Fastboot Add a user controlled exits
Tom Rix [Sat, 25 Jul 2009 12:39:41 +0000 (07:39 -0500)]
U-boot Fastboot Add a user controlled exits

If an optional timeout parameter is used,  fastboot will will exit
after inactivity greater than the timeout is detected.

As an example To set the timeout to 100 seconds.  The user would

  OMAP34XX ZOOM2 # fastboot 100

If there were no fastboot client commands within 100 seconds the
command will exit with

    Fastboot inactivity detected

Commands, like flashing a large image, can take a long time to
complete.  Long commands will complete even if the timeout is
a shorter time.

The user can also exit fastboot by typing Ctrl-C on the console.

Signed-off-by: Tom Rix <tom.rix@windriver.com>
8 years agoU-boot Fastboot Reset the OTG USB registers.
Tom Rix [Fri, 10 Jul 2009 11:43:30 +0000 (06:43 -0500)]
U-boot Fastboot Reset the OTG USB registers.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoU-boot Fastboot Use DMA's to speed up downloads
Tom Rix [Wed, 1 Jul 2009 21:47:40 +0000 (16:47 -0500)]
U-boot Fastboot Use DMA's to speed up downloads

The usual download is made up of many full packets
followed by a short packet.  The speed of the full
packet transfers is improved by using DMA's for
full packets.

Also to improve throughput, the double packet buffer
feature is enabled.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoU-boot FASTBOOT Add runtime partitions
Tom Rix [Mon, 15 Jun 2009 17:51:28 +0000 (12:51 -0500)]
U-boot FASTBOOT Add runtime partitions

The fastboot partition table can be added to at runtime.
The evironment variable 'fbparts' is queried when fastboot
is initialized.  Partitions specified in the fbparts will
be used during the fastboot session.

The format of 'fbparts' is similar to the 'mtdparts' used
to set linux kernel mtd partitions from the bootargs.

The parsing of the fbparts is derrived from the 2.6.27
linux kernel drivers/mtd/cmdlinepart.c newpart function

An example of its use is

fbparts 512k@0(xloader)hwecc,\
536k@512k(bootloader)swecc,\
29m@2m(kernel)i|swecc,\
160m@32m(system)yaffs|swecc,\
32m@192m(userdata)yaffs|swecc,\
32m@224m(cache)yaffs|swecc

The corresponding mtdparts added to the bootargs is

mtdparts=omap2-nand.0:512k@0(xloader),\
1536k@512k(bootloader),\
29m@2m(kernel),\
160m@32m(system),\
32m@192m(userdata),\
32m@224m(cache)

The format is
<size>@<offset>(<name>)<optional-flags>,

The <name> is the same as what is used by the fastboot client.

The supported flags are
i : use nand write.i
yaffs : use nand write.yaffs
swecc : use nand swecc, software ecc
hwecc : use nand hwecc, hardware ecc

Multiple flags can be or-ed together with a '|'

A runtime partition will not be used if it overlaps a static
partition.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoUse LED macro in twl4030_init_battery_charging
Christina Warren [Thu, 12 Nov 2009 23:27:46 +0000 (17:27 -0600)]
Use LED macro in twl4030_init_battery_charging

In twl4030_init_battery_charging, omap3_zoom2_led_red_on()
was being called instead of OMAP3_LED_ERROR_ON().

Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoAdd GREEN LED support for 3630 Zoom3
Christina Warren [Fri, 13 Nov 2009 17:38:46 +0000 (11:38 -0600)]
Add GREEN LED support for 3630 Zoom3

Adding funtions to turn ON and OFF the green led
in /drivers/zoom2_led.c

Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoAdd GPIO and MUX configuration for GREEN LED on 3630 Zoom3
Christina Warren [Fri, 13 Nov 2009 19:39:47 +0000 (13:39 -0600)]
Add GPIO and MUX configuration for GREEN LED on 3630 Zoom3

In omap3630zoom3.c, adding GPIO support for GREEN LED in misc_init_r
and setting up the mux configuration in set_muxconf_regs.

Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoRemove GPIO94 mux config for board revision detection
Christina Warren [Thu, 12 Nov 2009 23:07:43 +0000 (17:07 -0600)]
Remove GPIO94 mux config for board revision detection

GPIO94 is no longer used to determine if a board is
pre-production or production. Removing the mux config set for
that purpose.

Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoOMAP3430Zoom2:Fix reboot issue relating to twl4030_usb_charger_enable
Christina Warren [Thu, 12 Nov 2009 23:38:14 +0000 (17:38 -0600)]
OMAP3430Zoom2:Fix reboot issue relating to twl4030_usb_charger_enable

This patch fixes the issue seen while rebooting the system using the
'reboot' command.

While rebooting it was observed that the system would get stuck in
the bootloader. In the reboot sequence of u-boot twl4030_usb_init()
should be enabled before enabling usb charging.

Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoOMAP3430Zoom2:Fix I2C read error seen when rebooting with reboot command.
Christina Warren [Thu, 12 Nov 2009 23:43:27 +0000 (17:43 -0600)]
OMAP3430Zoom2:Fix I2C read error seen when rebooting with reboot command.

This patch fixes the following error:
Reading data from 0x1df800 -- 100% complete.
In:    serial
Out:   serial
Err:   serial
timed out in wait_for_pin: I2C_STAT=1000
I2C read: I/O error
a

This message is seen when rebooting the system using the
software reboot command.
In the reboot sequence of u-boot twl4030_power_reset_init(),
which internally calls i2c_read(), should be called only
after i2c_init() for proper I2C behavior.

Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agou-boot: common: Fix compilation warnings
Sergio Aguirre [Wed, 4 Nov 2009 15:41:05 +0000 (09:41 -0600)]
u-boot: common: Fix compilation warnings

Fix this compilation warnings:

cmd_clock.c:32: warning: function declaration isn't a prototype
cmd_fastboot.c: In function 'rx_handler':
cmd_fastboot.c:949: warning: initialization from incompatible pointer type

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
8 years agou-boot: omap3: Fix compilation warnings
Sergio Aguirre [Wed, 4 Nov 2009 15:39:27 +0000 (09:39 -0600)]
u-boot: omap3: Fix compilation warnings

Fix warnings found in cpu/omap3/cpu.c:

cpu.c: In function 'cleanup_before_linux':
cpu.c:132: warning: unused variable 'external_boot'

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
8 years agou-boot: mmcinit reboot fix
Subramani Venkatesh [Tue, 3 Nov 2009 23:18:54 +0000 (18:18 -0500)]
u-boot: mmcinit reboot fix

On reboot from the kernel, mmc does not get initialized in u-boot.
RESET DONE bit is not set because fck and ick are not running on system
reboot. According to TRM, RESET DONE requires fck, ick and debounce
clock
need to run. Therefore this patch sets fck and ick for all 3 MMC
interfaces.

Signed-off-by: Subramani Venkatesh <subramani.venkatesh@windriver.com>
8 years agoU-boot OMAP3630 Zoom3: Fix reboot issue relating to twl4030_usb_charger_enable
Christina Warren [Mon, 2 Nov 2009 19:58:54 +0000 (13:58 -0600)]
U-boot OMAP3630 Zoom3: Fix reboot issue relating to twl4030_usb_charger_enable

This patch fixes the issue seen while rebooting the system using the
'reboot' command.

while rebooting it was observed that the system would get stuck in
the bootloader. In the reboot sequence of u-boot twl4030_usb_init() should be
enabled before enabling usb charging.

Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoU-boot OMAP3: Fix reboot issue relating to twl4030_usb_charger_enable
Christina Warren [Fri, 30 Oct 2009 23:47:13 +0000 (18:47 -0500)]
U-boot OMAP3: Fix reboot issue relating to twl4030_usb_charger_enable

This patch fixes the issue seen while rebooting the system using the
'reboot' command.

while rebooting it was observed that the system would get stuck in
the bootloader. In the reboot sequence of u-boot twl4030_usb_init()
should be enabled before enable usb charging.

Signed-off-by: Christina Warren <cawarren@ti.com>
8 years agoZoom2, Zoom1 enable cmd voltage info
Tom Rix [Mon, 2 Nov 2009 18:41:27 +0000 (12:41 -0600)]
Zoom2, Zoom1 enable cmd voltage info

This follows a change to Zoom3
Enable displaying the 'voltage info' command

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoZoom2, Zoom1 Enable cmd clock info.
Tom Rix [Mon, 2 Nov 2009 18:28:12 +0000 (12:28 -0600)]
Zoom2, Zoom1 Enable cmd clock info.

This follows a similar change to Zoom2.
To display system clock information, define these variables.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoOMAP36XX Reduce the clock tables to one index per frequency.
Tom Rix [Fri, 30 Oct 2009 13:11:46 +0000 (08:11 -0500)]
OMAP36XX Reduce the clock tables to one index per frequency.

Three entries were a holdover from 34XX.
Three entries for 36XX were duplicates.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoOMAP36XX Remove 322MHz CORE clk option.
Tom Rix [Fri, 30 Oct 2009 12:54:23 +0000 (07:54 -0500)]
OMAP36XX Remove 322MHz CORE clk option.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoOMAP36XX Remove vdd1 1.10V optional timings
Tom Rix [Fri, 30 Oct 2009 12:48:52 +0000 (07:48 -0500)]
OMAP36XX Remove vdd1 1.10V optional timings

Zoom3 runs at 1.2V.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoOMAP3XXX MPU clock initialization moved to seperate function
Tom Rix [Fri, 30 Oct 2009 12:43:23 +0000 (07:43 -0500)]
OMAP3XXX MPU clock initialization moved to seperate function

Split the mpu into 36xx and 34xx specific function.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoOMAP36XX Add IVA timings for vdd1 = 1.2
Tom Rix [Thu, 29 Oct 2009 23:20:03 +0000 (18:20 -0500)]
OMAP36XX Add IVA timings for vdd1 = 1.2

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoBug-fix: Cannot disable I2C module inbetween of a transaction. Fixes the I2C read...
Tom Rix [Thu, 29 Oct 2009 19:37:45 +0000 (14:37 -0500)]
Bug-fix: Cannot disable I2C module inbetween of a transaction. Fixes the I2C read errors at L3=200MHz.

This patch fixes a bug that was causing problems for I2C operation
at L3=200MHz.

I2C read is a two phase operation:
1. Master writes the register offset to the Slave
2. Slave provides the data from specified register to Master

These two operations happen as a single transaction (stop condition
generated only after the final read) and the I2C module cannot be
disabled or the bus cannot be free'd inbetween. This was the bug
that is fixed now by this patch.

Disabling the module inbetween leaves the I2C controller in an
unpredictable state and thereby transfer might fail resulting
in errors.

Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoCMD voltage Add a new command to display and control of system voltages
Tom Rix [Thu, 29 Oct 2009 18:48:58 +0000 (13:48 -0500)]
CMD voltage  Add a new command to display and control of system voltages

This command is configured by the board config variable
CONFIG_CMD_VOLTAGE.

Board specific support is added by overriding the weakly defined
function voltage_info.  An example of this is done in twl4030.c

Tom

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoOMAP36XX Fix the extents of PER clock parameters
Tom Rix [Thu, 29 Oct 2009 13:14:21 +0000 (08:14 -0500)]
OMAP36XX Fix the extents of PER clock parameters

Some of the bit extents of the PER clock parameters increased by 1 bit
over 34xx.  Add #defines for these bit sizes.  Use the defines in
the 36xx PER clk init and clock info command.

They are defined but not used for 34xx to make the review of 34xx code
easier.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoOMAP36XX Add optional PER tables
Tom Rix [Thu, 29 Oct 2009 00:21:50 +0000 (19:21 -0500)]
OMAP36XX Add optional PER tables

Define CONFIG_PER_M2_192 in the board config file to run the 96MHz
clk at 192MHz.  I2C still works when this is done.

Define CONFIG_PER_SGX_192 to set the base dpll4 clock to 1728MHz,
the same speed CONFIG_PER_M2_192, but use the m2 clk division to
keep the 96MHz clk at 96MHz.

Analysis by another engineer has determined that DPLL4 should be
locked at 1728.00 for SGX(192Mhz) to work.  And the relocking time
may be too high to change DPLL4 at run time.  So the change is
made here.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoOMAP36XX Expand the PER timing table
Tom Rix [Wed, 28 Oct 2009 23:26:44 +0000 (18:26 -0500)]
OMAP36XX Expand the PER timing table

The PER timing variables for 36xx are more numerous than for 34xx.
Consolidate them into a single table.

Move the PER initialization to its own function.
For 34xx, keep the calling very similar to old code.
For 36xx, remove the 34xx workarounds and use the parameters in the
new table.

Add clock info printouts to cover new PER table.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoZoom3 Add a new mpu table for vdd1 = 1.20
Tom Rix [Mon, 26 Oct 2009 13:18:59 +0000 (08:18 -0500)]
Zoom3 Add a new mpu table for vdd1 = 1.20

The vdd1 value was emerically determined to be 1.20.
Use the mpu timings for 1.20.

Make the older options conditionally compilable it
the board config CONFIG_VDD1_1_10 is used.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoCMD clock info, add mpu clock info
Tom Rix [Mon, 26 Oct 2009 13:16:13 +0000 (08:16 -0500)]
CMD clock info, add mpu clock info

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
8 years agoZoom3 GPMC values for NAND and NOR with L3 at 200MHz
Tom Rix [Fri, 23 Oct 2009 16:08:45 +0000 (11:08 -0500)]
Zoom3 GPMC values for NAND and NOR with L3 at 200MHz

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>