u-boot-brain/arch/arm/cpu/armv8
Andre Przywara 68fd5c136c armv8: define get_ticks() for the ARMv8 Generic Timer
For 64-bit ARM systems we provide just a timer_read_counter()
implementation and rely on the generic non-uclass get_ticks() function
in lib/time.c to call the former.
However this function is actually not 64-bit safe, as it assumes a
"long" to be 32-bit. Beside the fact that the resulting uint64_t
isn't bigger than "long" on 64-bit architectures and thus combining two
counters makes no sense, we get all kind of weird results when we try
to OR in the high value shifted by _32_ bits.
So let's avoid that function at all and provide a straight forward
get_ticks() implementation for ARMv8, which also is in line with ARMv7.

This fixes occasional immediate time-out expiration issues I see on the
Pine64 board. The root cause of this needs to be investigated, but this
fix looks like the right thing anyway.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2016-11-05 07:27:45 -04:00
..
fsl-layerscape armv8: fsl-layerscape: Move DDR config options to Kconfig 2016-10-06 09:59:11 -07:00
hisilicon hisilicon: hi6220: Add a hi6220 pinmux driver. 2015-08-12 20:48:00 -04:00
s32v234 armv8: mmu: Add support of non-identical mapping 2016-07-15 09:01:43 -07:00
zynqmp ARM64: zynqmp: Fix USB ulpi phy sequence 2016-09-22 07:33:21 +02:00
cache_v8.c armv8: mmu: Detect page table overflow in emergency pt creation 2016-08-05 20:55:18 -04:00
cache.S arm64: rename __asm_flush_dcache_level to __asm_dcache_level 2016-05-27 15:47:55 -04:00
config.mk ARM: move -march=* and -mtune= options to arch/arm/Makefile 2015-03-27 16:55:22 +01:00
cpu-dt.c ARMv8/PSCI: Fixup the device tree for PSCI 2016-07-19 11:34:07 -07:00
cpu.c arm64: core support 2014-01-09 16:08:44 +01:00
exceptions.S arm64: Allow exceptions to return 2016-03-15 21:30:10 -04:00
fwcall.c efi_loader: Rename EFI_RUNTIME_{TEXT, DATA} to __efi_runtime{, _data} 2016-10-19 09:01:54 +02:00
generic_timer.c armv8: define get_ticks() for the ARMv8 Generic Timer 2016-11-05 07:27:45 -04:00
Kconfig arm: Provide common PSCI based reset handler 2016-10-19 09:01:31 +02:00
Makefile Merge git://git.denx.de/u-boot-fsl-qoriq 2016-07-19 16:38:57 -04:00
sec_firmware_asm.S ARMv8: add the secure monitor firmware framework 2016-07-19 11:33:03 -07:00
sec_firmware.c ARMv8/sec-firmware: fix a compile error 2016-10-06 20:57:36 -04:00
spin_table_v8.S arm64: add better and more generic spin-table support 2016-07-14 18:22:16 -04:00
spin_table.c arm64: add better and more generic spin-table support 2016-07-14 18:22:16 -04:00
start.S ARM: Add save_boot_params for ARMv8 2016-07-21 09:31:30 -07:00
tlb.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
transition.S remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
u-boot-spl.lds arm64: define _image_binary_end to fix SPL_OF_CONTROL 2016-03-14 19:18:52 -04:00
u-boot.lds efi_loader: Add runtime services 2016-03-15 18:03:10 -04:00