ARM: invalidate caches thoroughly

The data caches should be invalided once during startup. This should
also be done when we do not have the MMU enabled in barebox because
the Kernel does not invalidate the caches during start.

To make this sure this patch enables the arm_early_mmu_cache_invalidate
function even if MMU support is disabled. Additionally this patch adds
calls to arm_early_mmu_cache_invalidate in start.c and uncompress.c.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
bootstrap: Add missing include

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
ARM: dts: i.MX6q: cpus/cpu nodes dts updates

Add device_type = "cpu", otherwise a v3.10 kernel boots with only
one CPU enabled.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
pwm: sanity check values before passing them to the drivers

Check for valid period size before calling ops->config. This fixes
the pxa driver which otherwise does a division by zero. While at
it, also check for duty_ns being smaller or equal to period_ns.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Robert Jarzmik <robert.jarzmik@free.fr>
ARM: pfla02: Fix compiler warning

PUTC_LL no longer exists. Use putc_ll instead.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
detect command: Add missing help text for -a option

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
ata: ide-sff: Add missing wait for ready in write function

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
lib: Fix copy_file when filesize is FILESIZE_MAX

Using tftp command does not work proper when files
have FILESIZE_MAX, as copy_file and show_progress
can not handle it. Check the file size for FILESIZE_MAX
and handle it as file size = 0.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
copy_file: Add missing O_TRUNC

Without it, when copying a smaller file over a larger file the
resulting file still has the remaining space from the larger file.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>