u-boot-brain/arch
Alison Wang a1399534f1 arm: ls1021a: Ensure Generic Timer disabled before jumping into the OS
This patch addresses a problem mentioned recently on this mailing list:
[1].

In that posting a LS1021 based system was locking up at about 5 minutes
after boot,but the problem was mysteriously related to the toolchain
used for building u-boot.Debugging the problem reveals a stuck
interrupt 29 on the GIC.

It appears Freescale's LS1021 support in u-boot erroneously sets the
64-bit ARM generic PL1 physical time CompareValue register to all-ones
with a 32-bit value.This causes the timer compare to fire 344 seconds
after u-boot configures it.Depending on how fast u-boot gets the
kernel booted,this amounts to about 5-minutes of Linux uptime before
locking up.

Apparently the bug is masked by some toolchains. Perhaps this is
explained by default compiler options, word sizes, or binutils versions.

To fix the above issue, the generic physical timer is disabled
before jumping to the OS.

[1]
https://lists.yoctoproject.org/pipermail/meta-freescale/2015-June/014400.html

Signed-off-by: Chris Kilgour <techie@whiterocker.com>
Signed-off-by: Alison Wang <alison.wang@freescale.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: York Sun <yorksun@freescale.com>
2015-11-30 08:53:01 -08:00
..
arc board: axs10x switch serial port and Ethernet to driver model 2015-11-18 00:39:22 +03:00
arm arm: ls1021a: Ensure Generic Timer disabled before jumping into the OS 2015-11-30 08:53:01 -08:00
avr32 avr32: Use the generic bitops headers 2015-11-05 10:52:31 -05:00
blackfin Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
m68k Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
microblaze microblaze: Fix C99/gnu99 compatiblity for inline functions 2015-11-19 13:09:41 +01:00
mips Merge branch 'master' of git://git.denx.de/u-boot-mips 2015-11-06 09:17:17 -05:00
nds32 nds32: Use the generic bitops headers 2015-11-05 10:52:21 -05:00
nios2 nios2: 10m50: change to ns16550 uart 2015-11-21 21:50:18 -05:00
openrisc openrisc: updating build tools naming convention 2015-11-12 18:13:20 -05:00
powerpc ns16550: unify serial_ppc 2015-11-21 21:50:04 -05:00
sandbox dm: test: usb: sandbox: Add keyboard tests for sandbox 2015-11-19 20:27:52 -07:00
sh Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
sparc Move console definitions into a new console.h file 2015-11-19 20:27:50 -07:00
x86 ns16550: unify serial_x86 2015-11-20 20:41:30 -05:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig arm, powerpc: select SYS_GENERIC_BOARD 2015-10-24 13:50:38 -04:00