Commit Graph

22021 Commits

Author SHA1 Message Date
Sourav Poddar f2dcae2f9e configs: dra7_evm: Resize qspi uboot and kernel partition size
Resize the uboot to 1 MB, as that will be sufficient.
Increase the kernel size from 5MB to 8MB, as android kernel build images
are more than 5MB.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2014-02-10 15:43:13 -05:00
Sourav Poddar 00c053d7d2 configs: am43x-epos-evm: Resize qspi uboot and kernel partition size
Resize the uboot to 1 MB, as that will be sufficient.
Increase the kernel size from 5MB to 8MB, as android kernel build images
are more than 5MB.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2014-02-10 15:43:13 -05:00
Tom Rini aa25212298 ti_armv7_common.h: Correct partition names in nandboot
Signed-off-by: Tom Rini <trini@ti.com>
2014-02-06 15:49:29 -05:00
Pekon Gupta 81cd7dba60 configs: dra7_evm: fix NAND.u-boot-spl-os partition size
NAND.u-boot-spl-os partition is sized for 2 x NAND_BLOCK_SIZE, so that
in future it can:
 - split into redundant partitions "u-boot-spl-os" and "u-boot-spl-os.backup1"
 - store large DTB(s)

Signed-off-by: Pekon Gupta <pekon@ti.com>
2014-02-06 12:02:03 -05:00
Pekon Gupta af74337197 configs: am335x_evm: fix NAND.u-boot-spl-os partition size
NAND.u-boot-spl-os partition is sized for 2 x NAND_BLOCK_SIZE, so that
in future it can:
 - split into redundant partitions "u-boot-spl-os" and "u-boot-spl-os.backup1"
 - store large DTB(s)

Signed-off-by: Pekon Gupta <pekon@ti.com>
2014-02-06 12:02:03 -05:00
Tom Rini ab011b4e33 ti_armv7_common.h: Resync ubi.mtd name again with the kernel
Signed-off-by: Tom Rini <trini@ti.com>
2014-02-04 09:01:42 -05:00
Pekon Gupta d793f301fd configs: am43xx_evm: match NAND MTD partition table with linux-kernel
- update NAND partition offsets and relevant CONFIG_xx
 - prefix NAND partition names with "NAND."

Signed-off-by: Pekon Gupta <pekon@ti.com>
2014-02-04 09:01:19 -05:00
Pekon Gupta fe93251abd configs: am335x_evm: match NAND MTD partition table with linux-kernel
- update NAND partition offsets and relevant CONFIG_xx
 - prefix NAND partition names with "NAND."

Signed-off-by: Pekon Gupta <pekon@ti.com>
2014-02-04 09:00:57 -05:00
Pekon Gupta dfc47eb54a configs: dra7xx_evm: match NAND MTD partition table with linux-kernel
- update NAND partition offsets and relevant CONFIG_xx
 - prefix NAND partition names with "NAND."

Signed-off-by: Pekon Gupta <pekon@ti.com>
2014-02-04 09:00:26 -05:00
Sricharan R 861e94936c 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>
2014-02-04 08:59:59 -05:00
Nishanth Menon 2a5788adc4 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>
2014-02-04 08:59:53 -05:00
Nishanth Menon fe19bcd47f 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>
2014-02-04 08:59:53 -05:00
Tom Rini 85f3a4c6c3 ti_armv7_common.h: Specify correct partition name..
Signed-off-by: Tom Rini <trini@ti.com>
2014-01-31 15:17:59 -05:00
Sricharan R 027946a8be 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>
2014-01-31 14:20:30 -05:00
Sourav Poddar f6b8de6dd9 qspi: add support for qspi4 device
Add support to enable boot from qspi in quad mode.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2014-01-31 09:51:42 -05:00
Dave Gerlach 3b499ca3f0 ARM: AM43xx: Change DDR3 Reset Value
The bit DDR3_RST_DEF_VAL inside CTRL_DDR_IO represents the default value
of the ddr reset value for DDR3 before the EMIF takes over. We must have
this bit set high so that on exit from DeepSleep0 within the kernel the
reset line has the proper value.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
2014-01-31 09:49:00 -05:00
Dave Gerlach 2cf367813d ARM: AM43xx: Write sdram_config to secure_emif_sdram_config
The register secure_emif_sdram_config in control module is copied to
the EMIF sdram_config register when it is coming out of DeepSleep0 in
order to ensure that the EMIF comes up for the correct type of DDR.
Without this, resume can hang from within the kernel.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
2014-01-31 09:49:00 -05:00
Dave Gerlach cee2fd5496 ARM: AM43xx: EMIF: configure self-refresh entry delay
Per a suggestion from the hardware team, program the emif_pwr_mgmt_ctrl
and emif_pwr_mgmt_ctrl_shdw registers within the EMIF to hold the
desired delay in cycles that the EMIF waits without an access to enter
self-refresh, in this case 8192 cycles. With this, code desiring to
enter self refresh only has to toggle one bit to enable it.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
2014-01-31 09:49:00 -05:00
Tom Rini a9863aa25f ti_armv7_common: For UBI, pass in name not number
Depending on the number of partitions available (say if QSPI also has a
table, or not) '9' is not the correct spot for the UBI image.  It is
however put on the "file-system" partition, so use that.

Signed-off-by: Tom Rini <trini@ti.com>
2014-01-31 09:46:12 -05:00
Tom Rini 848e2404de am335x/am43xx/dra7xx: Change mtdparts name for consistency with kernel
Signed-off-by: Tom Rini <trini@ti.com>
2014-01-31 09:45:50 -05:00
Sourav Poddar aa153dbdc2 am43xx_evm_qspiboot: Disable MMC/USB in SPL for size
The following commit[1] defined CPSW for CONFIG_QSPI_BOOT, but for other
configs CPSW remains disabled. Hence, doing a undef of CPSW whereever
required rather than defining it for only QSPI_BOOT.

[1] c812c28 configs: am43x-evm: change uboot offset

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
2014-01-30 10:53:47 -05:00
Lokesh Vutla a0d0aa9cc2 ARM: AM43xx: Fix UART clocks enabling
After enabling a module, SW has to wait on IDLEST bit
until it is Fully functional. This wait is missing for UART module
and there is a immediate access of UART registers after this. So there
is a chance of hang on this module( This can happen when we are running
from MPU SRAM). So waiting for IDLEST bit.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2014-01-28 09:51:19 -05:00
Sourav Poddar 6a914b7df8 configs: am43x-evm: change uboot offset
Change uboot offset in accordance with the partition formed.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2014-01-27 09:26:34 -05:00
Sourav Poddar 110ea2c838 configs: am43x-evm: Add mtd parts info for qspi.
Add MTD partition info for qspi on am43x epos evm

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2014-01-27 09:26:31 -05:00
Sourav Poddar 9769033b54 configs: dra7-evm: change uboot offset
Change uboot offset in accordance with the partition formed.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2014-01-27 09:20:18 -05:00
Sourav Poddar 9ed700b15b configs: dra7-evm: Add mtd parts info for qspi.
Add MTD partition info for qspi on am43x epos evm

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2014-01-27 09:20:18 -05:00
Sourav Poddar 70f3a418ba board.cfg: am43xx: Add QSPI boot config.
These add a qspi boot config for am43x board.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
2014-01-27 09:20:18 -05:00
Tom Rini 379e456ee7 dra7xx/am335x_evm/am43xx_evm: Enable GPT support by default
Signed-off-by: Tom Rini <trini@ti.com>
2014-01-21 16:14:29 -05:00
Nishanth Menon cc11b91920 emif-common: support DRA7XX all versions
commit ef236f2929
(DRA7: Add support for ES1.1 silicon ID code)

from upstream does not contain the TI internal changes necessary.
The missing change for emif is now incorporated

Reported-by: Aparna Balasubramanian <aparnab@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
2014-01-21 15:50:09 -05:00
Tom Rini 2fc1125c3c am43xx_evm.h: Correct SPL max size
Upon further inspection of relevant parts of the architecture, the
maximum SPL binary size is 220KiB.

Cc: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tom Rini <trini@ti.com>
2014-01-20 10:10:51 -05:00
Tom Rini ae92bf32bc ti_armv7_common.h: Correct ubi parameters
We do not support sub-page on NAND on any of these parts so we must
always provide the location of the VID header offset and this is always
our page size.

Signed-off-by: Tom Rini <trini@ti.com>
2014-01-17 09:41:18 -05:00
Dan Murphy c322a12578 spl: common: Remove raw image support for spl_usb
Raw image support is not currently supported as a valid
image type so remove the code until it is needed to not confuse
developers.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2014-01-16 16:30:25 -05:00
Dan Murphy 91861598eb arm: am43xx/am335/omap5: Add usb root and args
Adding the usbargs macro for OMAP5, AM43xx and the AM335
As well as add the usbroot to be sda2

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2014-01-16 16:30:25 -05:00
Nishanth Menon ef236f2929 DRA7: Add support for ES1.1 silicon ID code
ES1.1 silicon is a very minor variant of ES1.0. Add priliminary support
for ES1.1 IDCODE change.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Tom Rini <trini@ti.com>
2014-01-16 16:30:25 -05:00
SRICHARAN R c00b09218c ARM: DRA7: Add is_dra7xx cpu check definition
A generic is_dra7xx cpu check is useful for grouping
all the revisions under that. This is used in the
subsequent patches.

Signed-off-by: Sricharan R <r.sricharan@ti.com>
2014-01-16 16:30:25 -05:00
Dave Gerlach e2176acbb4 ARM: AM43xx: GP-EVM: Correct GPIO used for VTT regulator control
Schematic indicates GPIO5_7 is to be used for VTT regulator control
rather than GPIO0_21 so modify enable_vtt_regulator to reflect this.
Without this some boards will experience DDR3 corruption and fail to
boot.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
2014-01-15 14:50:50 -05:00
Satyanarayana, Sandhya ebd5028336 ARM: AM335x: Enable DDR dynamic IO power down
This patch enables dynamically powering down the
IO receiver when not performing a read.
This optimizes both active and standby power consumption.
This bit is not set on EVM SK and EVM 1.5 and later boards.
Setting the same.

This has been tested on PG2.0 EVM1.5, EVM1.2, EVM-SK, BBB.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Satyanarayana, Sandhya <sandhya.satyanarayana@ti.com>
2013-12-20 10:57:09 -05:00
Lokesh Vutla b2b97e8282 ARM: AM43xx: Enable DDR dynamic IO power down
This patch enables dynamically powering down the
IO receiver when not performing a read.
This optimizes both active and standby power consumption.
This is derived from a patch that is done on AM335x[1]

[1] http://arago-project.org/git/projects/?p=u-boot-am33x.git;a=commit;h=6a9ee4bc72ece53fabf01825605fba3d71d5feb2

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-12-20 10:57:09 -05:00
Afzal Mohammed 562aa88643 ARM: AM43xx: relocate dtb
It has been observed that with default Kernel and dtd load address, if
dtb is not relocated on AM43x, Kernel doesn't boot - probably due to
Kernel image getting overwritten by dtb.

Fix it by relocating dtb as is done for other platforms so that defaults
will make AM43x boot.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
2013-12-17 08:46:43 -05:00
Lokesh Vutla 310aa487aa ARM: OMAP5: clocks: Update MPU settings for OPP_NOM
As per the latest 0.6 version of DM for OMAP5430 ES2.0,
MPU_GCLK is given as 1000MHz. In order to achieve this DPLL_MPU
should be locked at 2000MHz. Fixing the same and cleaning the
previously used dpll values.

Reported-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2013-12-12 12:04:04 -05:00
Dan Murphy 4c677486ec arm: ti-armv7-common: Fix NAND and MMC boot command
When porting the NAND and MMC boot CMD it was developer
error not porting over the contents of the NAND and MMC
boot commands as they existed in the tree.

Therefore need to update the common boot commands to what
was already available for the platforms.

Also removed the NANDARGS from the platform files so that
they do not cause confusion.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
[trini: Add omap5_common.h change]
Signed-off-by: Tom Rini <trini@ti.com>
2013-12-11 10:23:39 -05:00
Dan Murphy f5d5782636 arm: am437x: Adopt the am437 config file to boot order
Adopt the am437x evm config to the common boot script.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2013-12-10 12:33:32 -05:00
Dan Murphy 1ef9df10b7 TI: configs: Commonize the boot of different devices
Commonize in the ti_armv7_common.h the boot scripts for
USB, MMC and NAND.

Each board file can then select which BOOT_TARGETS are applicable
for the target board.
And any parameters based on that.

Finally removed the findfdt from the common file and made this more board
specific as omap4_common should not reference panda.

This implemenation was adopted from the tegra-common-post.h file.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2013-12-10 12:33:32 -05:00
Dan Murphy 001419954b arm: am437x: Enable the USB boot device
Enable the USB host boot support for the AM437 evm

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2013-12-10 12:33:32 -05:00
Dan Murphy e71e70bf45 common: spl: add USB mass storage as a boot device
Add the ability to load a u-boot off a USB mass storage device
from the SPL

Signed-off-by: Dan Murphy <dmurphy@ti.com>
2013-12-10 12:33:31 -05:00
Pekon Gupta 8e636ad2a2 dra7xx_evm: remove unused MTD partitions
removed u-boot.backup1 and u-boot-spl-os.backup1 partitions

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-10 12:15:26 -05:00
Pekon Gupta 670d917a05 am43xx_evm: remove unused MTD partitions
removed u-boot.backup1 and u-boot-spl-os.backup1 partitions

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-10 12:15:26 -05:00
Pekon Gupta a4b006efe3 am335x_evm: remove unused MTD partitions
removed u-boot.backup1 and u-boot-os-spl.backup1 partitions

Signed-off-by: Pekon Gupta <pekon@ti.com>
2013-12-10 12:15:26 -05:00
Sourav Poddar 532a80c9a9 spi: ti_qspi: Add delay for successful bulk erase.
Bulk erase is not happening properly on dra7 due to erase timing constraints,
add a delay so that erase timing constraints are properly met.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Tested-by: Yebio Mesfin <ymesfin@ti.com>
2013-12-10 10:09:56 -05:00
Tom Rini 530106aac1 am335x_evm: Fix NOR booting
All parts of the pinmux information must be in the first 4 KiB.  In
order to avoid some rather ugly linker script changes to ensure a
specific data segment was early enough, go back to asm for these pinmux
changes.

Signed-off-by: Tom Rini <trini@ti.com>
2013-12-10 10:08:28 -05:00