arm64: zynqmp: Access timestamp_ref_ctrl register only if running in el3
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Thu, 7 Dec 2017 09:35:30 +0000 (15:05 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 18 Dec 2017 08:32:07 +0000 (09:32 +0100)
commitec60a279ec6138d9d9f8e73b12625e0052ec4793
treed7b4c3cadb681822ffff440deae07a11cd20afc9
parent6d0cbbd5967b42100253e4d8ceff610d1edf3897
arm64: zynqmp: Access timestamp_ref_ctrl register only if running in el3

Access the timestamp ref ctrl register only if runinng
at el3 level otherwise just return. This change fixes
the issue when CRL APB is marked as secure and accessing
when not in el3 causes exception.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynqmp/zynqmp.c