armv8: add simple sdelay implementation
authorAndre Przywara <andre.przywara@arm.com>
Mon, 2 Jan 2017 11:48:32 +0000 (11:48 +0000)
committerJagan Teki <jagan@openedev.com>
Wed, 4 Jan 2017 15:37:41 +0000 (16:37 +0100)
commit8ed02bc2d969bcab140f33f235b512194ab17d47
tree8baa968ea59438ecdfaf28d01af02c73e9630c92
parent11e1479b9e672661fcc2ea69f7e9cbaa6f07ecf5
armv8: add simple sdelay implementation

The sunxi DRAM setup code needs an sdelay() implementation, which
wasn't defined for armv8 so far.
Shamelessly copy the armv7 version and adjust it to work in AArch64.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
arch/arm/cpu/armv8/cpu.c