[U-Boot] [PATCH v3 2/6] dm: x86: Allow TSC timer to be used before DM is ready

Bin Meng bmeng.cn at gmail.com
Sat Sep 16 06:29:14 UTC 2017


On Wed, Sep 6, 2017 at 9:49 AM, Simon Glass <sjg at chromium.org> wrote:
> 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 at chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
> Changes in v3: None
> Changes in v2:
> - Update to support the early timer
>
>  arch/x86/include/asm/global_data.h |  1 +
>  drivers/timer/tsc_timer.c          | 30 +++++++++++++++++++++++++-----
>  2 files changed, 26 insertions(+), 5 deletions(-)
>

applied to u-boot-x86, thanks!


More information about the U-Boot mailing list