]> git.baikalelectronics.ru Git - uboot.git/commit
dm: x86: Allow TSC timer to be used before DM is ready
authorSimon Glass <sjg@chromium.org>
Wed, 6 Sep 2017 01:49:46 +0000 (19:49 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Sat, 16 Sep 2017 06:57:44 +0000 (14:57 +0800)
commitdb6e50d7c2fb310b12015e8f3aed927f7ace8167
tree9272443ed20aae4ffbdbfee71edfc24926cf18c4
parentb91c7e484e00bd62edaa70adf2a6e1aa5976bb68
dm: x86: Allow TSC timer to be used before DM is ready

With bootstage we need access to the timer before driver model is set up.
To handle this, put the required state in global_data and provide a new
function to set up the device, separate from the driver's probe() method.

This will be used by the 'early' timer also.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/global_data.h
drivers/timer/tsc_timer.c