Commit 906d6fe3033910a5eca72ef6fc9b47a957b113e5

Authored by Fabio Estevam
Committed by Tom Rini
1 parent fa840b0921

mx25: Fix boot hang by avoiding vector relocation

Since commit 3ff46cc42b9d73d0 ("arm: relocate the exception vectors") mx25pdk
hangs like this:

CPU:   Freescale i.MX25 rev1.2 at 399 MHz
Reset cause: WDOG
Board: MX25PDK
I2C:   ready
DRAM:  64 MiB
(hangs)

Add a specific relocate_vectors macro that skips the vector relocation, as the
i.MX25 SoC does not provide RAM at the high vectors address (0xFFFF0000), and
(0x00000000) maps to ROM.

This allows mx25 to boot again.

Acked-By: Bill Pringlemeir <bpringlemeir@nbsps.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

Showing 2 changed files with 27 additions and 0 deletions Side-by-side Diff

arch/arm/cpu/arm926ejs/mx25/Makefile
... ... @@ -5,4 +5,8 @@
5 5 # SPDX-License-Identifier: GPL-2.0+
6 6  
7 7 obj-y = generic.o timer.o reset.o
  8 +
  9 +ifndef CONFIG_SPL_BUILD
  10 +obj-y += relocate.o
  11 +endif
arch/arm/cpu/arm926ejs/mx25/relocate.S
  1 +/*
  2 + * relocate - i.MX25-specific vector relocation
  3 + *
  4 + * Copyright (c) 2013 Albert ARIBAUD <albert.u.boot@aribaud.net>
  5 + *
  6 + * SPDX-License-Identifier: GPL-2.0+
  7 + */
  8 +
  9 +#include <linux/linkage.h>
  10 +
  11 +/*
  12 + * The i.MX25 SoC is very specific with respect to exceptions: it
  13 + * does not provide RAM at the high vectors address (0xFFFF0000),
  14 + * thus only the low address (0x00000000) is useable; but that is
  15 + * in ROM, so let's avoid relocating the vectors.
  16 + */
  17 + .section .text.relocate_vectors,"ax",%progbits
  18 +
  19 +ENTRY(relocate_vectors)
  20 +
  21 + bx lr
  22 +
  23 +ENDPROC(relocate_vectors)