DRA7XX: Disable IPU1 loading by default

Now moving early camera from IPU1 over to A15, so we no
longer need to load the IPU1 by default.  Disabling boot
of the IPU1 improves boot time by about 1 sec.

Change-Id: Idd4ab4d4bd400d432b1b3d96b90e304ab7991658
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
u-boot: mmc: Enable ADMA2 for eMMC read operation.

Enable ADMA2 for eMMC read operations for faster loading of u-boot and
kernel.

Change-Id: I1456e8d6a144230a53fef07cec903ec99e5fc899
Signed-off-by: Shankar Rao <shankar.nrao@ti.com>
u-boot: booti: Add bootargs to /chosen node of device tree.

In this patch, we add the device serial number and additional bootargs
from boot.img to the /chosen node of device tree. The kernel should
extend the command line to get access to these bootargs.

Change-Id: Ibb20dee5f1364646ef07db524cddd1a07c5a2ea4
Signed-off-by: Shankar Rao <shankar.nrao@ti.com>
u-boot: Check for recovery mode in SAR RAM.

Check if there is an instruction for bootloader to enter recovery mode
in SAR RAM and boot out of recovery partition accordingly.

Change-Id: I608a0ad8a5f0661ef65e61f0d4c5806adf627e45
Signed-off-by: Shankar Rao <shankar.nrao@ti.com>
qspi: Add support for QSPI4 device

Add a macro to support QSPI4 device.

Added QSPI_4 support for Single Stage bootloader as well.

Change-Id: Ib14641275f1149b1d4d39c13563f85b6c7aa6302
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Shankar Rao <shankar.nrao@ti.com>
u-boot: mmc: Enable 1.8V signal by programming AC12

Based on patch by Selwin Sebastian.
Resolved merge conflicts

Change-Id: I36cbd1e3ead21c92b4a5f837ddc9b8e03e0c2d83
Signed-off-by: Selwin Sebastian <selwin.sebastian@ti.com>
Signed-off-by: Shankar Rao <shankar.nrao@ti.com>
MMC: fastboot: Change boot partition size to 10MB

Changes boot and recovery partitions from 8MB to 10MB in
order to be able to boot with either a compressed kernel
zImage or also an uncompressed kernel Image, which
would be somewhat larger in size than the corresponding
zImage.

Change-Id: I12d020412bd95bcaa36428497bd79fabf8067cd1
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
MMC: Switch eMMC usage in U-boot/SPL to 8-bit mode

Enables 8-bit mode of eMMC for transfers.  Increases
throughput of eMMC reads.

Change-Id: I3b1ed79717bbb3f00570fa1fbd0cdddf46666374
Signed-off-by: Jonathan Bergsagel <jbergsagel@ti.com>
This patch sets mmc1 to 1.8V which breaks SD card.
This patch was not supposed to go in for J6 evm. Some re-work will be done.

Revert "u-boot: mmc: Enable 1.8V signal by programming AC12"

This reverts commit 866315b1794a5c88af26327f760e8e98095b05ba.

Change-Id: I24cad6b59acd0bfa26ee8af951de6b0e6721b93e
ARM: DRA: Add io recalibration delay sequence

If changing to AVS0 voltage is required for development purpose,
there will be some IO timing error versus datasheet. The below
sequence is required to recalibrate the IOs after AVS is done.

Signed-off-by: Sricharan R <r.sricharan@ti.com>
[backport to p-ti-u-boot-2013.04]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>

Change-Id: I0ee8d01911ed8f9a257eaf164692adc76d2293cf
ARM: DRA7: be explicit that IO delay is in SPL only

build recalibrate_io_delay only for SPL logic - SHOULD NOT be used in
DDR execution context (example in u-boot).

Reported-by: Yan Liu <yan-liu@ti.com>
Reported-by: Mugunthan V <mugunthanvnm@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
[backported to p-ti-u-boot-2013.04]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>

Change-Id: I7176355200e17bfadcad1dcc5f7d7d16f240af5a
ARM: DRA7: leave control module unlocked

Locking control_core_mmr_lock1 register results in regions 0x00000100
to 0x0000079F locked out(includes key registers for bandgap etc). This
means that any write accesses will fail to reflect results without a
clear notification.

So, leave the control module unlocked.

TODO: SPL should reflect consistent behavior for entire Control module
space which includes LOCK_1-5 regions left open -> if this is done,
this should be implemented in a generic location independent of the
current logic.

Reported-by: Yan Liu <yan-liu@ti.com>
Reported-by: Mugunthan V <mugunthanvnm@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
[backported to p-ti-u-boot-2013.04]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>

Change-Id: I799b0789fcd67a941b0697460a2fa7db9d8ad011
ARM: DRA: Fix period calculation in iodelay recalib sequence

A divider of 5 is required to get the right period value to be
set for a given sysclk frequency. This is a fixed-constant for
all sysclks.

Signed-off-by: Sricharan R <r.sricharan@ti.com>
[backported to p-ti-u-boot-2013.04]
Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>

Change-Id: I1344f8c894b4d8075fc933ab372fd8f6ab50921c
Merge branch 'p-ti-u-boot-2013.04' of git://git.omapzoom.org/repo/u-boot into p-ti-u-boot-2013.04