rockchip: arm64: rk3399: revise timeout-handling for DRAM PHY lock
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 31 May 2017 16:16:34 +0000 (18:16 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 7 Jun 2017 13:29:23 +0000 (07:29 -0600)
commitfbecb94e4b06a385adc860870ebd64e57f521b9f
treec15fdfb952cea6f95c1311c7a6687a65d583567d
parenta1c29d4b43dc1bdc57878204bf3e4316fdb1b8b0
rockchip: arm64: rk3399: revise timeout-handling for DRAM PHY lock

Revise the loop watching for a timeout on obtaining a DRAM PHY lock to
clearly state a timeout in milliseconds and use get_timer (based on
the ARMv8 architected timer) to detect a timeout.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-rockchip/rk3399/sdram_rk3399.c