xen/arm: Pass the timer "clock-frequency" to DOM0 in make_timer_node()
authorSuriyan Ramasami <suriyan.r@gmail.com>
Mon, 14 Apr 2014 08:14:00 +0000 (01:14 -0700)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 16 Apr 2014 16:10:57 +0000 (17:10 +0100)
commit94191dcee8ff9f8b925824e54741f28b954bf95e
treeb757b3c8ea1e334697d72c3c325ff4da2e43cad3
parentb1dfc531d8adbb6a1dfe541b398cb30bf143316f
xen/arm: Pass the timer "clock-frequency" to DOM0 in make_timer_node()

If the DT representing the ARM generic timer mentions a clock-frequency,
propragate it to the DT that is built for DOM0.

This is necessary as a workaround for boards (Odroid-XU) where CNTFRQ is not
set or returns a wrong value.

Ideally CNTFRQ should be set by the boot loader. The bootloader should respect
the ARM ARM (see B.8.1.1):
    "The CNTFRQ register is UNKNOWN at reset, and therefore the counter
    frequency must written to CNTFRQ as part of the system boot process."

For the Odroid-XU the SPL BL2 code is entered in NS HYP mode which prevents
the execution of the mcr call to set CNTFRQ.

Signed-off-by: Suriyan Ramasami <suriyan.r@gmail.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/domain_build.c