imls: Add support to list images in NAND device

This patch adds support to list images in NAND flash through imls

Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
nand: fix nand read.option parsing

"nand read.part addr off size" would be treated as "nand read.raw addr off 1"
It now fails as intended stating "Unknown nand command suffix '.part'"

Signed-off-by: Harvey Chapman <hchapman@3gfp.com>
mtd: nand: Check if NAND is locked tight before lock cmds

If the NAND is locked tight, commands such as lock and unlock will not
work, but the NAND chip may not report an error.  Check the lock tight
status before attempting such operations so that an error status can be
reported if we know the operation will not succeed.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
env_nand.c: clarify log messages when env reading fails

The single message is misleading, since there is no equivalent success
note when reading the other copy succeeds. Instead, warn if one of the
redundant copies could not be loaded and emphasise on the error when
reading both fails.

Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
common/env_nand.c: calculate crc only when readenv was OK

Calculating the checksum of incompletely read data is useless.

Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
[scottwood@freescale.com: minor formatting fix]
Signed-off-by: Scott Wood <scottwood@freescale.com>
.gitignore: update path for generated u-boot.lst

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
ARM: cache: declare set_section_dcache

We declare the set_section_dcache function globally in the cache header, for
later use by e.g. machine specific code.

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Cc: Tom Rini <trini@ti.com>
ARM: cache: Introduce weak dram_bank_setup function

Introduce a weak version of dram_bank_setup function
to allow a platform specific redefinition.

This is used in the subsequent patch to setup dram region
without 'XN' attribute in order to enable the region
under client permissions.

Signed-off-by: R Sricharan <r.sricharan@ti.com>
Cc: Vincent Stehle <v-stehle@ti.com>
Cc: Tom Rini <trini@ti.com>
ARM: mmu: Set domain permissions to client access

The 'XN' execute never bit is set in the pagetables. This will
 prevent speculative prefetches to non executable regions. But the
 domain permissions are set as master in the DACR register.
 So the pagetable attribute for 'XN' is not effective. Change the
 permissions to client.

 This fixes lot of speculative prefetch aborts seen with CORTEX A15
 otherwise.

Signed-off-by: R Sricharan <r.sricharan@ti.com>
Cc: Vincent Stehle <v-stehle@ti.com>
Cc: Tom Rini <trini@ti.com>
Hack! Print reloc_off for debug

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
omap5: mux: Mux gpio8_234 pin to MSECURE mode.

This is required for enabling the RTC functionality
on GP devices.

Signed-off-by: J Keerthy <j-keerthy@ti.com>
OMAP5: trim DDR i/o for 4 lots only

Only 4 lots missed the h/w production trim on OMAP5. Trace them through
CONTROL_DIE_ID_1 and apply DDR i/o trim values, but only for those. Otherwise,
leave the trimming values unchanged.

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Hack! Enable all clocks

Prevents Linaro kernel v3.4.10+ to complain about lots of clocks when booting
on PandaBoard 5.

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Hack! Grab USB EHCI bits from old, working u-boot OMAP5

This "repairs" USB with Linaro kernel v3.4.10+ on PandaBoard 5.

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Hack! Disable ulpi_reset

Fixes link issue.

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Hack! Adapt omap5 USB EHCI to new lowlevel API

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
omap: 5432: remove non-essential padconf settings

We want to get rid off the non-essential padconf settings from bootloader,
so start by not handling them at least for 5432 (handled as required within
kernel).
Will have to remove the entry completely when the equivalent will be
implemented for 5430.

Signed-off-by: Sebastien Jan <s-jan@ti.com>

[Do that for all OMAP5.]
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Hack! Detect and disable faulty EMIF dynamically

This is a quick hack to quickly detect if EMIF1 or EMIF2 is faulty, and disable
it in LISA_MAP accordingly. We leave the faulty EMIF "on", to avoid later
kernel crash at boot.

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
Marquette changes for ES2, rebased

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
omap5: More 5430 ES2 additions

Signed-off-by: Vincent Stehlé <v-stehle@ti.com>