arc: emsdp: Read real CPU clock value from hardware
authorAlexey Brodkin <alexey.brodkin@synopsys.com>
Tue, 27 Nov 2018 06:46:59 +0000 (09:46 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Mon, 3 Dec 2018 11:26:35 +0000 (14:26 +0300)
commit4e86c7e3cd21fdab46416284665dbb589f110b94
treee10f1d7f4ad499d6559d6e4cd1fb6eddb39297bb
parent7f25b72a78bf3f42c6e8ced74a7da972e8c1a633
arc: emsdp: Read real CPU clock value from hardware

We do real CPU clock measurement with help of built-in
counters. Thus we may accommodate different real clock values
that appear in different FPA images instead of relying on
something hard-coded in the .dtb.

And while at it make make SDIO base address define
look similar to others with casting to "(void *)".

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
board/synopsys/emsdp/emsdp.c